Is it possible to remount a USB Stick without removing and reinserting it?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Is it possible to remount a USB Stick without removing and reinserting it?
Hello,
Is it possible to remount a USB Stick without removing and reinserting it? When I remove a USB Stick then I can't see it in the output of "lsusb" command. Any command exist to remount it?
Not only do you not need to remove and reinsert it, you don't even need to unmount it. You can remount any mounted filesystem simply by using the mount command with the -o remount option. Of course you need to have the necessary access rights, which means either being root or applying the command to a device that is marked as user-mountable in fstab. But I assume a plug-in usb device would be so marked.
If you or your gui's unmounter(thunar does this) uses something like udisksctl power-off or the older udisks --detach to power the usb stick down, then both the /dev/sdb and the usb device entry under /sys/bus/usb will no longer exist.
Trying to reattach it by echoing the usb device identifier into /sys/bus/usb/bind doesn't work.
In the old days you had more control over the power of each usb port, but since they added auto-suspend/resume to the usb subsystem, much of that stuff no longer works.
Moral of the story, don't use clever unmounters that power things off by default, especially if you intend to remount something later. They think they're helping by powering things down, but they're not.
Moral of the story, don't use clever unmounters that power things off by default, especially if you intend to remount something later. They think they're helping by powering things down, but they're not.
Moral of the story is don't use clever software that tries to turn Linux into Windows. The Windows philosophy is to do everything for the user, because the user is assumed to be an idiot who can't be expected to do anything for herself. And so the user is never given the opportunity to learn anything about how the system works and remains the next best thing to an idiot.
Linux was supposed to be different; it was supposed to allow the user to do what he or she wants when he or she wants to do it. I don't like what it's turning into.
The Windows philosophy is to do everything for the user, because the user is assumed to be an idiot who can't be expected to do anything for herself. And so the user is never given the opportunity to learn anything about how the system works and remains the next best thing to an idiot.
Reminds me of a signature I saw somewhere here I think. Can't recall the user. Something like this...
Quote:
Windows assumes every user is an idiot. Linux demands that they prove it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.