[SOLVED] why does my usb stick unmount whenever I mount my external drive?
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.
Show us, please.
Show the usb stick when mounted. (lsblk?)
Show us the command used to mount the external drive.
Show the status (lsblk) afterwards.
Maybe also after remounting the stick.
Whether or not you should save the file in Kate depends on whether or not you want to save what’s there, in Kate. It’s your call.
You were asked several questions in post 2 and did not answer any of them even though answers would have likely given information needed for someone to help you. Being unresponsive will tend to have members not bother trying to help.
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872
Original Poster
Rep:
Quote:
Originally Posted by scasey
Show us, please.
Show the usb stick when mounted. (lsblk?)
Below is just the usb stick when mounted and connected to a usb hub.
Code:
──╼ $lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 29.3G 0 disk
└─sda1 8:1 1 29.2G 0 part /media/asus/781E-438F
Quote:
Originally Posted by scasey
Show us the command used to mount the external drive.
No command used by me for either, to mount any usb stick or external drive I use my mouse instead and click mount icon on the gui bottom far right corner near the time (clock)KDE
Quote:
Originally Posted by scasey
Show the status (lsblk) afterwards.
Below is status afterwards using lsblk with the external drive named One Touch (4.5T) connected to usb hub but not mounted yet
Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 29.3G 0 disk
└─sda1 8:1 1 29.2G 0 part /media/asus/781E-438F
sdb 8:16 0 4.5T 0 disk
├─sdb1 8:17 0 200M 0 part
└─sdb2 8:18 0 4.5T 0 part
Quote:
Originally Posted by scasey
Maybe also after remounting the stick.
I didn't have to remount the usb stick because for the first time it didn't unmount when I mounted the external drive alongside it. It's never happened before. Both appear mounted at the same time whilst connected to the usb hub neither unmounted at any point as of writing so far. Why is that? In other words it appears solved but I don't know why or for how long this will last?
Code:
sda 8:0 1 29.3G 0 disk
└─sda1 8:1 1 29.2G 0 part /media/asus/781E-438F
sdb 8:16 0 4.5T 0 disk
├─sdb1 8:17 0 200M 0 part
└─sdb2 8:18 0 4.5T 0 part /media/asus/One Touch
Quote:
Originally Posted by scasey
Whether or not you should save the file in Kate depends on whether or not you want to save what’s there, in Kate. It’s your call.
I can think of several possibilities for the problem but I think in the current situation, just go along using your hub and take care when monunting and plugging in. As suggested above, it could be a power issue or a bad hub. If it is fairly new, you might be able to have it replaced. I had a situation where I had a laptop replaced when a hardware part failed within a month after it was purchased so things like that happen.
Is this hub externally powered? If not, unpowerd hubs can cause this issue. I use only externally power hubs, they cost a little bit more and work reliably.
What I would do in that situation is to save the file under a new name and then look through all the versions of the file to come up with a way to untangle the mess.
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872
Original Poster
Rep:
Quote:
Originally Posted by camorri
Is this hub externally powered? If not, unpowerd hubs can cause this issue. I use only externally power hubs, they cost a little bit more and work reliably.
It's an unpowered hub i.e. uses my computer for power, I think that makes it internal.
Is there way to to negate the issue of the unpowered hub playing up via some command in terminal? Or is the only solution to buy an external hub or just connect both the usb stick and the external drive directly to the computer?
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872
Original Poster
Rep:
Quote:
Originally Posted by scasey
Show us, please.
Show the usb stick when mounted. (lsblk?)
Show us the command used to mount the external drive.
Show the status (lsblk) afterwards.
Maybe also after remounting the stick.
Why did the usb stick not unmount whilst I mounted the external drive to the unpowered usb hub whilst I ran lsblk as above? In other words it worked fine just as it would if both usb devices were connected to the computer diectly. i.e. mounting one did not force the other to unmount. The lsblk process you provided actually solved it albeit temporarily that one time.
lsblk didn’t “solve” anything. It just lists (ls) the state of block devices (blk).
I’d conclude that it’s because of the hub. Unpowered hubs can be flaky…which is to say, may have very intermittent problems. That can be power related. It can be rare (a new issue for you, yes? Everything used to always work?)
As suggested, you can just be aware of the issue, and be cautious: Save open files on the stick before connecting the external drive, for example.
Or you can invest in a powered hub,
Or you can connect directly and not use a hub at all, if you have the available USB ports.
+1 to jailbait’s advice. That’s an excellent practice.
What is the external 'One Touch' drive power demands?
Is it an HDD or SDD.? The power draw is significantly different.
Are you using a usb2 or usb3 port? Usb3 is rated for a minimum of 1.1 amp as compared to 500 MA for usb2.
Also note that that power rating is for ALL attached devices on the bus, not just each device individually nor for each port individually.
If the drive draws the voltage below the minimum for the usb stick during startup it may interfere with operation, even if the drop is minimal in time such as when first connecting it.
I strongly suggest using a powered hub as previously suggested since this really does seem to be a power issue related to the drive.
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872
Original Poster
Rep:
Quote:
Originally Posted by scasey
...Unpowered hubs can be flaky…which is to say, may have very intermittent problems. That can be power related. It can be rare (a new issue for you, yes? Everything used to always work?)
yes, it's a new issue only because I have never used the external drive attached to usb hub together with the usb stick.
If the usb stick is attached to the machine directly first, then connecting the external drive alone to the usb hub will not needlessly unmount the usb stick and both devices work fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.