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.
The mount command is issued for the mountpoint, not for the device file.
If I want to mount /dev/sdc1, I have to have a mountpoint (usually) in /mount or /media to mount it to.
For example, I could do the following:
Code:
mkdir /media/ralph <---must be issued as root
mount /dev/sdc1 /media/ralph <---this may need to be issued as root depending on a lot of stuff I'm to sleepy to go into here.:)
cd /media/ralph
If it's a removable device that does not have a designated mountpoint, the current thing all the cool new distros are doing is to put it in /media/run/[username]. See this.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491
Rep:
Can't help with your script directly, but if you 'label' your pendrive or use its 'UUID', instead of its file descriptor, you should get consistent mounting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.