LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-15-2020, 03:48 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Rep: Reputation: Disabled
Post 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?

Thank you.
 
Old 11-15-2020, 04:10 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,879

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
you can mount /dev/whatever /<mount_point> at any time.
 
Old 11-15-2020, 04:20 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,591
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
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.
 
Old 11-15-2020, 06:14 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
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.

Last edited by GazL; 11-15-2020 at 06:15 AM.
 
1 members found this post helpful.
Old 11-15-2020, 06:43 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,591
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by GazL View Post
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.
 
Old 11-15-2020, 07:20 AM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
All I ask is an xterm, and a window manager to focus it by. ¹


I turned my back on the big desktop environments long ago.

---
¹ Apologies to John Masefield
 
Old 11-15-2020, 11:18 AM   #7
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,141

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remount filesystem without mount command? SeveQ Linux - General 1 01-05-2013 02:12 PM
[SOLVED] RedHat lvm extend without remount PoleStar Red Hat 1 11-29-2011 09:54 PM
Removing KDE apps, without removing kde? Proszbje Debian 2 12-22-2007 08:42 PM
"errors=remount-ro" auto fsck, then remount-rw possible? Sepero Linux - Hardware 0 03-28-2007 03:23 AM
Can I remount '/' partition without a reboot? benr77 Linux - General 8 08-22-2006 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration