External HD backup not mounting

Forum rules
Before you post please read this
TomP
Level 1
Level 1
Posts: 10
Joined: Wed Jan 25, 2017 7:12 pm
Location: Missouri

External HD backup not mounting

Postby TomP » Fri Jun 02, 2017 11:28 pm

I have a USB HD dock with my old HD in it that I use to store my backup files. After the last update on Mint 18 I can no longer access this HD. I keep getting the message Unable to mount Hard Drive.

Log Entry for the last attempt.

Can anyone help me sort this out?

Code: Select all

Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.104025] usb 1-2.1: new high-speed USB device number 5 using ehci-pci
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.331270] usb 1-2.1: New USB device found, idVendor=152d, idProduct=1561
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.331274] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.331277] usb 1-2.1: Product: SABRENT
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.331280] usb 1-2.1: Manufacturer: SABRENT
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.331283] usb 1-2.1: SerialNumber: DB98765432143
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.333251] scsi host7: uas
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.337278] scsi 7:0:0:0: Direct-Access     SABRENT                   0104 PQ: 0 ANSI: 6
Jun  2 08:02:00 tom-OptiPlex-755 mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-2/1-2.1"
Jun  2 08:02:00 tom-OptiPlex-755 mtp-probe: bus: 1, device: 5 was not an MTP device
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.341732] sd 7:0:0:0: Attached scsi generic sg2 type 0
Jun  2 08:02:00 tom-OptiPlex-755 kernel: [74664.379149] usb 1-2.1: stat urb: status -71
Jun  2 08:02:04 tom-OptiPlex-755 colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74694.884029] sd 7:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74694.884036] sd 7:0:0:0: tag#0 CDB: Test Unit Ready 00 00 00 00 00 00
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74694.884052] scsi host7: uas_eh_bus_reset_handler start
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74694.956036] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74695.182404] scsi host7: uas_eh_bus_reset_handler success
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74695.186404] sd 7:0:0:0: [sdb] 156250000 512-byte logical blocks: (80.0 GB/74.5 GiB)
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74695.186409] sd 7:0:0:0: [sdb] 4096-byte physical blocks
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74695.195147] sd 7:0:0:0: [sdb] Write Protect is off
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74695.195153] sd 7:0:0:0: [sdb] Mode Sense: 5f 00 00 08
Jun  2 08:02:31 tom-OptiPlex-755 kernel: [74695.197273] sd 7:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Last edited by WharfRat on Sat Jun 03, 2017 12:16 am, edited 1 time in total.
Reason: Code tagged the log listing

User avatar
WharfRat
Level 20
Level 20
Posts: 10245
Joined: Thu Apr 07, 2011 8:15 pm

Re: External HD backup not mounting

Postby WharfRat » Sat Jun 03, 2017 12:15 am

Does the drive show with sudo blkid :?:
Image ImageImage

TomP
Level 1
Level 1
Posts: 10
Joined: Wed Jan 25, 2017 7:12 pm
Location: Missouri

Re: External HD backup not mounting

Postby TomP » Sat Jun 03, 2017 3:26 pm

There is no return in terminal for that command.

Not even a prompt

TomP
Level 1
Level 1
Posts: 10
Joined: Wed Jan 25, 2017 7:12 pm
Location: Missouri

Re: External HD backup not mounting

Postby TomP » Sat Jun 03, 2017 3:31 pm

PROBLEM SOLVED. BAD USB CABLE. ON A HUNCH I CHENGED THE CABLE AND THE DAMN THING WORKED. :D

telegiovi
Level 1
Level 1
Posts: 31
Joined: Tue Dec 13, 2016 4:14 am
Location: South Tyrol

Re: External HD backup not mounting

Postby telegiovi » Mon Jun 19, 2017 2:01 pm

I have the same problem but the cable is very good; someone told me that the external HD does not mount because of the different partition. The new PC is UEFI (?) or something like that and "does not match" with the external HD (?).
In fact, if I connect the external HD while the pc is running, the mount occours. Can I simply re-format the external HD? Thank you

User avatar
WharfRat
Level 20
Level 20
Posts: 10245
Joined: Thu Apr 07, 2011 8:15 pm

Re: External HD backup not mounting

Postby WharfRat » Mon Jun 19, 2017 8:57 pm

telegiovi wrote:I have the same problem but the cable is very good; someone told me that the external HD does not mount because of the different partition. The new PC is UEFI (?) or something like that and "does not match" with the external HD (?).
In fact, if I connect the external HD while the pc is running, the mount occours. Can I simply re-format the external HD? Thank you

If the HD is mounting then that should mean that there's nothing wrong with it right :?:

Is there another problem that you're having with the HD :?:
Image ImageImage

telegiovi
Level 1
Level 1
Posts: 31
Joined: Tue Dec 13, 2016 4:14 am
Location: South Tyrol

Re: External HD backup not mounting

Postby telegiovi » Tue Jun 20, 2017 4:20 am

Sorry for not having explained correctly the problem. The problem is that the external HD is not being "seen" if I leave it connected. I have to connect it while the pc is working in order to be mounted, otherwise it does not exist for the pc. I would like to have it connected and "ready for use" all the time without having to disconnect it and connect it again.

User avatar
WharfRat
Level 20
Level 20
Posts: 10245
Joined: Thu Apr 07, 2011 8:15 pm

Re: External HD backup not mounting

Postby WharfRat » Tue Jun 20, 2017 8:31 am

telegiovi wrote:Sorry for not having explained correctly the problem. The problem is that the external HD is not being "seen" if I leave it connected. I have to connect it while the pc is working in order to be mounted, otherwise it does not exist for the pc. I would like to have it connected and "ready for use" all the time without having to disconnect it and connect it again.

OK, that's a lot clearer.

What you can try is making an entry in fstab to have the external mount when its plugged in on startup.

Paste back the results of sudo blkid when you plug in the external.
Image ImageImage

telegiovi
Level 1
Level 1
Posts: 31
Joined: Tue Dec 13, 2016 4:14 am
Location: South Tyrol

Re: External HD backup not mounting

Postby telegiovi » Tue Jun 20, 2017 9:58 am

This is:
sudo blkid
/dev/sda1: UUID="cbb64712-689d-45d6-a6ac-9a9c7bb1689b" TYPE="ext4" PARTUUID="cc5599fc-01"
/dev/sda5: UUID="367a9cba-f492-4eac-9a29-157203bf7147" TYPE="swap" PARTUUID="cc5599fc-05"
/dev/sdb1: LABEL="SAMSUNG" UUID="1216-0844" TYPE="vfat" PARTUUID="fdcfa450-01"

User avatar
WharfRat
Level 20
Level 20
Posts: 10245
Joined: Thu Apr 07, 2011 8:15 pm

Re: External HD backup not mounting

Postby WharfRat » Tue Jun 20, 2017 10:47 am

telegiovi,

Your external is formatted vfat which has certain limitations and cannot preserve linux file modes/permissions.

If you're backing up files from your linux file system I would recommend formatting it to an ext file system.

You can do this to use it as it is.

Make a folder sudo mkdir /media/backup and addUUID=1216-0844 /media/backup vfat rw,nofail,user 0 0 to /etc/fstab

Your files will be available at /media/backup

I would strongly recommend using a linux ext file system.

If you do decide to do so just change the UUID to the new assignment and sudo chown $USER:$USER /media/backup after formatting and mounting the partition.

Good luck :wink:
Image ImageImage

telegiovi
Level 1
Level 1
Posts: 31
Joined: Tue Dec 13, 2016 4:14 am
Location: South Tyrol

Re: External HD backup not mounting

Postby telegiovi » Tue Jun 20, 2017 11:42 am

Thank you WharfRat for the help! If I understand it correctly, I have two possibilities; with the first one I will have "files available at /media/backup" . Being little skilled in pc programming, I do not understand the real meaning of this sentence; does it mean that the backupped files will be stored in a new directory inside the external hd?

Is the second choice to format the external hd using a linux ext file system?

User avatar
austin.texas
Level 20
Level 20
Posts: 11702
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: External HD backup not mounting

Postby austin.texas » Tue Jun 20, 2017 12:32 pm

"files available at /media/backup" means that if you follow the instructions:
Make a folder sudo mkdir /media/backup and addUUID=1216-0844 /media/backup vfat rw,nofail,user 0 0 to /etc/fstab

your external hard drive will be mounted at /media/backup, and any files you have on that drive will be accessible in that folder.

Changing to an ext file system would be desirable, in my opinion, but it would require a different line in /etc/fstab.
You can see that the line provided: UUID=1216-0844 /media/backup vfat rw,nofail,user 0 0 references vfat
If you change to ext4, it would be: UUID=1216-0844 /media/backup ext4 rw,nofail,user 0 0
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

User avatar
WharfRat
Level 20
Level 20
Posts: 10245
Joined: Thu Apr 07, 2011 8:15 pm

Re: External HD backup not mounting

Postby WharfRat » Tue Jun 20, 2017 12:52 pm

austin.texas wrote:If you change to ext4, it would be: UUID=1216-0844 /media/backup ext4 rw,nofail,user 0 0

Thanks for catching my mistake.

telegiovi wrote:does it mean that the backupped files will be stored in a new directory inside the external hd?

The vfat reference for the fstab entry would have to be changed to ext4, in addition to the UUID, when/if you format the partition to ext4.

The /media/backup folder is going to serve as a mountpoint for the external HDD's partition in order to access the files on it.

If the partition is not mounted to /media/backup, the folder will show as empty.

When the external partition is mounted to /media/backup then the files on that partition will be available.

Sorry for the mistake, but luckily is was quickly caught.
Image ImageImage

User avatar
austin.texas
Level 20
Level 20
Posts: 11702
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: External HD backup not mounting

Postby austin.texas » Tue Jun 20, 2017 1:03 pm

Please note that if you want to change the file system from vfat to ext4, you have to have all the data backed up to a different location. The file system change will erase all data on that partition.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

telegiovi
Level 1
Level 1
Posts: 31
Joined: Tue Dec 13, 2016 4:14 am
Location: South Tyrol

Re: External HD backup not mounting

Postby telegiovi » Tue Jun 20, 2017 1:32 pm

I think I would prefer the solution you are pointing as being the best; ext. But I need step by step indications to do it. Otherwise I can't do it. Thanks

User avatar
WharfRat
Level 20
Level 20
Posts: 10245
Joined: Thu Apr 07, 2011 8:15 pm

Re: External HD backup not mounting

Postby WharfRat » Tue Jun 20, 2017 1:48 pm

telegiovi wrote:I think I would prefer the solution you are pointing as being the best; ext. But I need step by step indications to do it. Otherwise I can't do it. Thanks

With the external plugged in and not mounted use sudo mke2fs -v -t ext4 -m 1 /dev/sdb1 to format the partition.

Make sure it's not mounted with mount|grep ^/dev/sdb

You should not see /dev/sdb1 in the results.
Image ImageImage

telegiovi
Level 1
Level 1
Posts: 31
Joined: Tue Dec 13, 2016 4:14 am
Location: South Tyrol

Re: External HD backup not mounting

Postby telegiovi » Tue Jun 20, 2017 1:59 pm

I got the following :

Code: Select all

  mke2fs 1.42.13 (17-May-2015)
The file /dev/sdb1 does not exist and no size was specified 

User avatar
austin.texas
Level 20
Level 20
Posts: 11702
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: External HD backup not mounting

Postby austin.texas » Tue Jun 20, 2017 2:25 pm

What is the result of:

Code: Select all

sudo parted --list
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

telegiovi
Level 1
Level 1
Posts: 31
Joined: Tue Dec 13, 2016 4:14 am
Location: South Tyrol

Re: External HD backup not mounting

Postby telegiovi » Tue Jun 20, 2017 2:32 pm

here:

Code: Select all

     
Modello: ATA SanDisk X400 M.2 (scsi)
Disco /dev/sda: 128GB
Dimensione del settore (logica/fisica): 512B/512B
Tabella delle partizioni: msdos
Flag del disco:

Numero  Inizio  Fine   Dimensione  Tipo      File system     Flag
 1      1049kB  120GB  120GB       primary   ext4            avvio
 2      120GB   128GB  8447MB      extended
 5      120GB   128GB  8447MB      logical   linux-swap(v1)
 

User avatar
austin.texas
Level 20
Level 20
Posts: 11702
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: External HD backup not mounting

Postby austin.texas » Tue Jun 20, 2017 2:41 pm

telegiovi wrote: if I connect the external HD while the pc is running, the mount occurs.

What is the result of sudo parted --list if you connect the external HD while the PC is running?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017


Return to “Mounting Partitions”