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-28-2023, 05:58 PM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
why does my usb stick unmount whenever I mount my external drive?


why does my usb stick unmount whenever I mount my external drive?
I am able to remount the usb stick again whilst the external drive is mounted.

Since the files in Kate editor were left open while the usb got unmounted, when I mount and try to save a box pops up saying
Code:
Do you really want to save?Both the open file and the file on the disk were changed. There could be some data lost. Save nevertheless or cancel.
Should I click save nevertheless? Thanks in advance.

Last edited by linux-man; 11-28-2023 at 06:07 PM.
 
Old 11-28-2023, 06:15 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,728

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

Last edited by scasey; 11-28-2023 at 06:18 PM.
 
Old 11-28-2023, 08:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
Power issue?
 
1 members found this post helpful.
Old 11-28-2023, 11:16 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,728

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by jefro View Post
Power issue?
Good thought. OP, are you using a usb hub?
 
Old 11-29-2023, 10:15 PM   #5
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
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: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Good thought. OP, are you using a usb hub?
Yes the same usb hub for both, but I don't have to as I have usb slots in the machine.
 
Old 11-30-2023, 04:13 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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.
 
1 members found this post helpful.
Old 12-01-2023, 01:26 AM   #7
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
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: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
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 View Post
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 View Post
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 View Post
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 View Post
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 saved it
 
Old 12-01-2023, 04:04 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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.
 
Old 12-01-2023, 05:51 AM   #9
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.
 
Old 12-01-2023, 11:56 AM   #10
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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.
 
1 members found this post helpful.
Old 12-01-2023, 05:10 PM   #11
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
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: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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?

Last edited by linux-man; 12-01-2023 at 05:41 PM.
 
Old 12-01-2023, 05:40 PM   #12
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
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: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
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.

Last edited by linux-man; 12-01-2023 at 05:42 PM.
 
Old 12-01-2023, 06:01 PM   #13
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,728

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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.
 
Old 12-02-2023, 11:16 AM   #14
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
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.
 
Old 12-06-2023, 05:50 PM   #15
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
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: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
...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.
 
  


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
shutdown tumbleweed: failed to unmount /home; failed to unmount /var JZL240I-U Linux - Software 3 04-03-2017 07:23 AM
[SOLVED] USB drive fails to mount – “Mount denied…..”, also deletes data on unmount ronells2000 Linux - Software 14 11-15-2016 11:03 PM
[SOLVED] Can't mount nor unmount USB stick PeterW2 Slackware 9 04-08-2016 09:13 AM
Missing unmount and unmount.cifs johnmccarthy Linux - Newbie 3 11-19-2011 07:01 AM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 06:33 AM

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

All times are GMT -5. The time now is 09:16 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