jamielinux / bashmount Goto Github PK
View Code? Open in Web Editor NEWTool to mount and unmount removable media from the command-line
License: GNU General Public License v2.0
Tool to mount and unmount removable media from the command-line
License: GNU General Public License v2.0
An 'invalid option' error is issued:
mx@mx-lin ~/Downloads/bashmount-3.2.0 $ ./bashmount
lsblk: invalid option -- 'p'
Usage:
lsblk [options] [ ...]
One line looks suspicious:
mx@mx-lin ~/Downloads/bashmount-3.2.0 $ grep -n 'lsblk -p' bashmount
500: all=( $(lsblk -plno NAME) )
The '-p ' option does not exist, according to 'man lsblk'.
Using here Ubuntu 14.04
I have been running bashmount
for a long time with colorize disabled. After updating to 4.3.1 from a much older version, bashmount
no longer runs with colorize='0'
. I get the error:
line 213: BOLD: unbound variable
I find that in line 116-130, BOLD (and other variables) are being set only if colorize is enabled.
I got bashmount
to work by adding an else clause is needed that sets all these variables to ""
else
declare -r ALL_OFF=""
declare -r BOLD=""
declare -r BLUE=""
declare -r GREEN=""
declare -r RED=""
Command: 3o
==> Opening /dev/sdd1 ...
[alad@arbellen BACKUP USB] $ cd
[alad@arbellen ~]$ bashmount
Command: 3u
Error unmounting /dev/sdd1: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error unmounting /dev/sdd1: Command-line `umount "/media/BACKUP USB"' exited with non-zero exit status 32: umount: /media/BACKUP USB: target is busy
If you use "exit" to first terminate $SHELL bashmount launched, it works as intended. Not quite sure how to handle this, unless you opened a new terminal... something like
cd "${1}" && (setsid "$SHELL" &)
forks a new shell and exits bashmount, but the user doesn't see it.
udisks has been moved to udisksctl. Not sure yet if anything else is different.
When trying out bashmount, I discovered that when I attempt to unmount the device, I get
Error unmounting /dev/sdf1: GDBus.Error:org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting /dev/sdf1: target is busy
When I check lsof, I find that bashmount is keeping the target busy, preventing itself from unmounting it
bashmount 24464 dfowl cwd DIR 8,81 16384 1 /run/media/dfowl/DFO_USB
lsblk is from util-linux-2.21.2
Maybe it is too old?
I tried to find a manpage in google that did so I could guess what it was for and fix, but I can't find one.
Ubuntu 14.03 LTS
doas is a sudo replacement, originated from OpenBSD and now present in many Unix environments.
Hi. First thanks for your great effort. second i have a suggestion. It'll be very useful if we can format disks, like this:
sudo mkfs.ntfs /dev/sdb1
Command: 8e
==> Ejecting /dev/sdd2 ...
eject: cannot open /dev/sdd: Permission denied
Press [enter] to continue:
Doesnt seem to eject device without sudo password. Mounting and unmount works fine though without any password requirements.
using: udisk2
Hi,
This issue is more to get some help than a real issue.
I am a long term, very satisfied user of bashmount.
I have two computers, one is running xmonad installed after a lubuntu install. Bashmound works fine on it.
I have been obliged to reinstall my system on the other computer with a kubuntu install DVD, and then installed xmonad.
On this one, bashmount gives me a "no devices" message when invoked. It works perfectly as root.
The user account I log into is the member of the following groups. They are the same as on my lubuntu box.
less /etc/group |grep plainuser 8 adm:x:4:syslog,plainuser 7 cdrom:x:24:plainuser 6 sudo:x:27:plainuser 5 dip:x:30:plainuser 4 plugdev:x:46:plainuser 3 lpadmin:x:121:plainuser 2 lxd:x:131:plainuser 1 plainuser:x:1000: 0 sambashare:x:132:plainuser
Any idea to fix this problem ?
Hi, I was wondering if it would be possible for bashmount
to read /etc/fstab and determine if there is a desired mount point for the device, by reading either UUID or label.
I have been using bashmount for weeks, it is a really nice tool.
But recently I convert my Manjaro to Archlinux using third party script, it made a lot of changes and uninstallation.
Now when I try to mount the second SSD in my PC, it asks for password
==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount-system ====
Authentication is required to mount _SSD model_ (/dev/nvme1n1p1)
Authenticating as: user
Password:
I'm not familiar with this udisks2 (already installed), how can I solve this issue, I mean mount/umount drive without permission like old days?
LVM : logic volum manager
wish support.
Would it be possible to allow to specify options only for specific file systems.
For example, I would like to use compress=zstd
on btrfs
.
Using this options give errors on other fs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.