LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 02-05-2016, 07:37 AM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
External drives not being seen


I have 2 external drives.

About 50% of the time, they are not seen.

I then have to reboot and eventually they do appear.

What is going on ?
 
Old 02-05-2016, 09:56 AM   #2
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Rep: Reputation: 3
Plug and unplug them in directly to the computer.
 
Old 02-05-2016, 10:10 AM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I did so and only one drive showed and it was unmounted. ??

I use a bash script to backup files...it will not work if the drive is not mounted.

Would the drives mount more reliably if I made 2 partitions on each drive ?

One a ntfs and the other ext3.

I need a ntfs because that is where my disk images are stored.
 
Old 02-06-2016, 06:03 AM   #4
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Rep: Reputation: 3
Ok I have had a lot of problems with this. Use these commands fdisk -l, DMESG ,lsusb and more. If you see evidence of the drives they are good. If you see no evidence of the drive they are probably bad or need to be plugged in. Are these thumb drives or disk drives. Good Luck.
 
Old 02-07-2016, 10:09 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
More information might be helpful.

What distro/version and what make/model external drives (I am assuming they are USB drives)?

Are they in /etc/fstab or are you relying on automount?

What are the contents of /etc/mtab before and after they mount?

Have you looked in /var/log/dmesg and /var/log/messages, and, if so, what have you found?
 
Old 02-08-2016, 07:22 AM   #6
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by frankbell View Post
More information might be helpful.

What distro/version and what make/model external drives (I am assuming they are USB drives)?

Are they in /etc/fstab or are you relying on automount?

What are the contents of /etc/mtab before and after they mount?

Have you looked in /var/log/dmesg and /var/log/messages, and, if so, what have you found?
I use Slacko 6.3.0

Quote:
VendorID=0480 ProductID=b001 Rev=01.00
Manufacturer=Toshiba
Product=Ext HDD
--
VendorID=1058 ProductID=0837 Rev=10.72
Manufacturer=Western Digital
Product=My Passport 0837

USB DRIVES (parted)

Model: Toshiba Ext HDD (scsi)
Drive: /dev/sdc: 500GB
--
Model: WD My Passport 0837 (scsi)
Drive: /dev/sdd: 1000GB
They are in fstab.

mtab after mounting

Quote:
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,relatime,errors=continue,user_xattr,barrier=1,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1503500k,nr_inodes=218079,mode=755 0 0
none /proc proc rw,relatime 0 0
none /dev/pts devpts rw,relatime,gid=2,mode=620,ptmxmode=000 0 0
none /sys sysfs rw,relatime 0 0
shmfs /dev/shm tmpfs rw,relatime,size=746816k 0 0
tmpfs /tmp tmpfs rw,relatime,size=746816k 0 0
none /dev/shm tmpfs rw,relatime,size=1048576k 0 0
/dev/sda5 /mnt/sda5 ext3 rw,relatime,errors=continue,user_xattr,barrier=1,data=ordered 0 0
/dev/sdc2 /mnt/sdb2 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
/dev/sdc5 /mnt/sdb5 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
/dev/sda1 /mnt/sda1 fuseblk rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096 0 0
/dev/sdb2 /mnt/sdb2 fuseblk rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096 0 0
Before mounting
Quote:
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,relatime,errors=continue,user_xattr,barrier=1,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1503500k,nr_inodes=218079,mode=755 0 0
none /proc proc rw,relatime 0 0
none /dev/pts devpts rw,relatime,gid=2,mode=620,ptmxmode=000 0 0
none /sys sysfs rw,relatime 0 0
shmfs /dev/shm tmpfs rw,relatime,size=746816k 0 0
tmpfs /tmp tmpfs rw,relatime,size=746816k 0 0
none /dev/shm tmpfs rw,relatime,size=1048576k 0 0
/dev/sda5 /mnt/sda5 ext3 rw,relatime,errors=continue,user_xattr,barrier=1,data=ordered 0 0
/dev/sda1 /mnt/sda1 fuseblk rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096 0 0

Last edited by Fixit7; 02-08-2016 at 07:24 AM.
 
Old 02-08-2016, 07:36 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I have a RPi2 and it sometimes mounts my usb drive, sometimes not. It depends on the order, how the devices are detected. Something like a race condition.
 
Old 02-08-2016, 07:37 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
USB drives rely in part on the "hotplug" configuration/daemon to respond to the USB-device-inserted event by mounting the disk (if it is determined to be a disk). Most distros "do this magic for you automagically," since you typically expect such things to "just work," but it's possible that yours did not.
 
Old 02-08-2016, 01:33 PM   #9
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I just manually mount it if it does not automatically mount.

Then I re-run by backup scripts.

I will see if there is a bash method of determining if a partition is mounted.
 
Old 02-08-2016, 01:35 PM   #10
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by pan64 View Post
I have a RPi2 and it sometimes mounts my usb drive, sometimes not. It depends on the order, how the devices are detected. Something like a race condition.
You are right.

Sometimes a partition is sdb2 or it may be sdc2.

So in my backup scripts, I do this so I know the files get copied.

cp -u Puppy_6.3.0_Bash_Scripts.zip /mnt/sdc2/Linux_Files
cp -u Puppy_6.3.0_Bash_Scripts.zip /mnt/sdb2/Linux_Files
 
Old 02-08-2016, 08:37 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Try identifying the partitions in /etc/fstab by UUID and let us know whether that makes a difference. At the least, it should keep them from changing mount points.

http://www.cyberciti.biz/faq/linux-f...-update-fstab/
 
Old 02-16-2016, 08:25 PM   #12
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I found the problem.

My two USB 3.0 ports went bad.

This is what I have.

http://www.ebay.com/itm/USB-3-0-PCI-...EAAOSweW5VZojO
 
  


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
mounting external drives siawash Linux - Software 35 05-21-2010 10:28 PM
External drives not getting autodetected gtgoku Fedora 2 06-07-2007 10:57 PM
mounting external drives thelonius Linux - Hardware 2 04-01-2007 09:08 AM
Will ANY external drives work? Micro420 Linux - Hardware 0 10-08-2004 06:14 PM
External Drives (iPod and Pen Drives) dhbiker Slackware 13 04-08-2004 06:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

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