PuppyThis forum is for the discussion of Puppy Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
No in the sense that you can't control the letter that is assigned to the block device (Ex: /dev/sdb vs /dev/sdc)
There are however other options. You can symlink sdd or sdc (whichever the pendrive takes on) to a known value everytime it's inserted by using udev rules on your device. You could insert your pendrive and know that it is symlinked, for example, to /dev/mapper/my_drive1 for mounting. You can find an article on by searching for 'udev symlinks', I found one here.
Other options include labeling (by using e2label for example, but that's specifically for ext based filesystems, and may not be what your wanting. While it will control how your pen drive appears within the desktop environment, it won't change the block device name for mounting.
Last edited by roger_heslop; 06-08-2015 at 03:36 AM.
you can add label to the partitions, filesystem and that will be used for mount points (so for example if the label is mydrive, the mount point will be /media/mydrive). But probably it won't work on all distros.
It would be safer to run a mount command specifying the exact device. You could use the -U option of mount to mount by UUID - or the -L option to mount by label.
The label is a filesystem feature, so use e2label if it's ext3/4 or mlabel if it's fat32, then:
Code:
mount -L [label] /mount/point
If you prefer UUID, you can get it via:
Code:
blkid /dev/sdX
(Where X is b or c, depending on how your drive is recognized when you run the command.)
what is that test.sh? How should we know what caused that error message?
You used the mount command improperly:
remove [ and ], just enter the label itself.
do not add the device to the command, but the mount point (an empty dir)
mount -L label /mount/dir
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.