LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-13-2015, 10:27 PM   #1
Average
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Rep: Reputation: Disabled
Hard drive mounting woes


Hello everyone!

I needed to transfer 1TB (SATA; MBR; EXFAT) drive to a 2TB drive (SATA; GPT; EXFAT). I connected both via USB 2.0 to my laptop running Debian Wheezy. ETA: few days.
I decided I will speed things up by building a Debian 8.1 box and hooking up both drives with SATA instead of USB 2.0.


I installed the drives. Installed exfat-fuse and exfat-utils. Mounting the 1TB drive was a breeze.
But then mounting the 2TB proved to be a two day failing endevour:


Code:
root@vox:/home/o# sfdisk -l

Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1          0+ 121601- 121601- 976759808    7  HPFS/NTFS/exFAT
/dev/sda2          0       -       0          0    0  Empty
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty

Disk /dev/sdc: 243201 cylinders, 255 heads, 63 sectors/track
sfdisk: Warning: The partition table looks like it was made
  for C/H/S=*/256/63 (instead of 243201/255/63).
For this listing I'll assume that geometry.
Units: cylinders of 8257536 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdc1          0+ 266305- 266306- 2147483647+  ee  GPT
/dev/sdc2          0       -       0          0    0  Empty
/dev/sdc3          0       -       0          0    0  Empty
/dev/sdc4          0       -       0          0    0  Empty

Disk /dev/sdb: 30401 cylinders, 255 heads, 63 sectors/track
sfdisk: Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1   *      0+  29442-  29443- 236495872   83  Linux
/dev/sdb2      29442+  30401-    959-   7700481    5  Extended
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
/dev/sdb5      29442+  30401-    959-   7700480   82  Linux swap / Solaris

here is the output from GParted on my Debian 8.1 box:
http://s11.postimg.org/y8w7i1rv7/Scr...3_22_37_15.png

Code:
root@vox:/home/o# mount -t exfat /dev/sdc1 /home/o/2tb/
FUSE exfat 1.1.0
ERROR: failed to open '/dev/sdc1': No such file or directory.
Just to be sure I tried:

Code:
root@vox:/home/o# mount -t exfat /dev/sdc2 /home/o/2tb/
FUSE exfat 1.1.0
ERROR: failed to open '/dev/sdc2': No such file or directory.
root@vox:/home/o# mount -t exfat /dev/sdc3 /home/o/2tb/
FUSE exfat 1.1.0
ERROR: failed to open '/dev/sdc3': No such file or directory.
root@vox:/home/o# mount -t exfat /dev/sdc4 /home/o/2tb/
FUSE exfat 1.1.0
ERROR: failed to open '/dev/sdc4': No such file or directory.

What's going on?



To be sure, I disconnect the drive and put it back into the usb enclosure and connect it back to my laptop: Voila! It even automounts!

Code:
root@laptop:# sfdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util sfdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 243201 cylinders, 255 heads, 63 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/256/63 (instead of 243201/255/63).
For this listing I'll assume that geometry.
Units = cylinders of 8257536 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1          0+ 266305- 266306- 2147483647+  ee  GPT
/dev/sdb2          0       -       0          0    0  Empty
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
here is the output from GParted on my laptop:

http://s17.postimg.org/s0nkae3pr/Scr...3_22_27_26.png

Last edited by Average; 07-13-2015 at 10:38 PM.
 
Old 07-13-2015, 10:40 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
Did you run an "ls" on /dev/ to see if sdc# was there?

I've only run into something like this once, it was with a RAID, but the symptoms were similar: fdisk reports a partition that doesn't exist in /dev/.

Here is my thread on the issue, nobody responded but I managed to fix it on my own:
http://www.linuxquestions.org/questi...ng-4175444903/

Cliffnotes: "partprobe /dev/md126" (or in your case "partprobe /dev/sdc") was able to restore a corrupt GPT table and created the /dev/md126p# (/dev/sdc# in your case) partitions so that I could mount them and go about my business.

Last edited by suicidaleggroll; 07-13-2015 at 10:41 PM.
 
Old 07-13-2015, 10:50 PM   #3
Average
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Did you run an "ls" on /dev/ to see if sdc# was there?

I've only run into something like this once, it was with a RAID, but the symptoms were similar: fdisk reports a partition that doesn't exist in /dev/.

Here is my thread on the issue, nobody responded but I managed to fix it on my own:
http://www.linuxquestions.org/questi...ng-4175444903/

Cliffnotes: "partprobe /dev/md126" (or in your case "partprobe /dev/sdc") was able to restore a corrupt GPT table and created the /dev/md126p# (/dev/sdc# in your case) partitions so that I could mount them and go about my business.

Thanks suicidaleggroll!

"ls" shows only sdc! Mystery is starting to unravel!

I tried "partprobe /dev/sdc" and then "ls" and it is still the same.

Also please note how simply the drive mounts on my laptop...

I'm just flored at the mystery.
 
Old 07-13-2015, 11:46 PM   #4
Aia
Member
 
Registered: Jun 2006
Posts: 66

Rep: Reputation: 21
According to the snapshot you posted the drive is /dev/sdc and does not contain any filesystem. You cannot mount it without a filesystem on it.

lsblk will show you a tree like of the drives that your system sees, mounted and unmounted.
cat /proc/partitions will also show you what the kernel sees for devices.
 
Old 07-13-2015, 11:53 PM   #5
Average
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Aia View Post
According to the snapshot you posted the drive is /dev/sdc and does not contain any filesystem. You cannot mount it without a filesystem on it.

lsblk will show you a tree like of the drives that your system sees, mounted and unmounted.
cat /proc/partitions will also show you what the kernel sees for devices.
Thank you! Please note that there are two "snapshots" of the same drive: one on my debian box ("vox") via SATA cable and another on my laptop attached via USB (external enclosure). The drive automounts on my laptop.

Here is the output on the "vox" (Debian 8.1 box):

Code:
root@vox:# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
sda1   8:1    0 931.5G  0 part 
sdb      8:16   0 232.9G  0 disk 
sdb1   8:17   0 225.6G  0 part /
sdb5   8:21   0   7.4G  0 part [SWAP]
sdc      8:32   0   1.8T  0 disk
Code:
root@vox:# cat /proc/partitions
major minor  #blocks  name

   8       16  244198584 sdb
   8       17  236495872 sdb1
   8       21    7700480 sdb5
   8        0  976762584 sda
   8        1  976759808 sda1
   8       32 1953514584 sdc

here is the output of the same commands on the laptop:

Code:
root@laptop:# lsblk
sdb                                   8:16   0   1.8T  0 disk  
sdb1                                8:17   0   128M  0 part  
sdb2                                8:18   0   1.8T  0 part  /media/2tb_temp
Code:
root@laptop:# cat /proc/partitions
   8       16 1953514584 sdb
   8       17     131072 sdb1
   8       18 1953382400 sdb2

Last edited by Average; 07-14-2015 at 12:02 AM.
 
Old 07-14-2015, 12:02 AM   #6
Aia
Member
 
Registered: Jun 2006
Posts: 66

Rep: Reputation: 21
Quote:
Originally Posted by Average View Post
Thank you! Please note that there are two "snapshots" of the same drive: one on my debian box ("vox") via SATA cable and another on my laptop attached via USB (external enclosure). The drive automounts on my laptop.

Here is the output on the "vox" (Debian 8.1 box):

Code:
root@vox:/dev# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
sda1   8:1    0 931.5G  0 part 
sdb      8:16   0 232.9G  0 disk 
sdb1   8:17   0 225.6G  0 part /
sdb5   8:21   0   7.4G  0 part [SWAP]
sdc      8:32   0   1.8T  0 disk
Code:
root@vox:/dev# cat /proc/partitions
major minor  #blocks  name

   8       16  244198584 sdb
   8       17  236495872 sdb1
   8       21    7700480 sdb5
   8        0  976762584 sda
   8        1  976759808 sda1
   8       32 1953514584 sdc
Notice the red.
Your system is not seeing any partitions on that drive. As far as it is concerned, it does not have a partition.

Last edited by Aia; 07-14-2015 at 12:05 AM. Reason: Removed the question.
 
Old 07-14-2015, 12:11 AM   #7
Average
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Average View Post
Thanks suicidaleggroll!

"ls" shows only sdc! Mystery is starting to unravel!

I tried "partprobe /dev/sdc" and then "ls" and it is still the same.

Also please note how simply the drive mounts on my laptop...

I'm just flored at the mystery.

As you see here, it was already established above that the partitions arent recognized. Now how to fix this issue?
 
Old 07-14-2015, 12:15 AM   #8
Aia
Member
 
Registered: Jun 2006
Posts: 66

Rep: Reputation: 21
Quote:
Originally Posted by Average View Post
As you see here, it was already established above that the partitions arent recognized. Now how to fix this issue?
I'll say that since the issue appears to be due to how you are connecting the device differently. Connect it via USB and not SATA.
 
Old 07-14-2015, 12:20 AM   #9
Average
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Aia View Post
I'll say that since the issue appears to be due to how you are connecting the device differently. Connect it via USB and not SATA.

Brilliant suggestion! I assume you can tell me how to get SATA speeds with USB 2.0?
(The original goal, as stated, is to increase the transfer speed from USB 2.0 speeds to SATA speeds.)
 
Old 07-14-2015, 12:25 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,086

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
What distro (version) are you running on the laptop (is it older) ?.
Has the problem disk been used on Win10 ?.
 
Old 07-14-2015, 12:32 AM   #11
Average
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
What distro (version) are you running on the laptop (is it older) ?.
Has the problem disk been used on Win10 ?.
I'm junning Debian 7 on the laptop. The drive has never touched a Windows 10 box.


Also I wanted to confirm that the drive in question automounts on "vox" via external USB enclosure (just as it automounts on the laptop).

This issue specifically arrises when the drive is connected in "vox" via SATA cable.
 
Old 07-14-2015, 12:43 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,086

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
The reason I asked is that Win10 (preview) appears to mangle gpt disks - it force mounts as MBR but leaves (and ignores) the gpt header (might only occur on re-install).
Confuses the hell out of the Linux tools.
Not sure if Win8{.1} does likewise as I never allowed it in the house.

Older versions of the Linux tools may not be so particular about the gpt header.
 
Old 07-14-2015, 12:49 AM   #13
Average
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks syg00! I figured Windows 10 did something weird to the MBR.
 
Old 07-14-2015, 01:34 AM   #14
Aia
Member
 
Registered: Jun 2006
Posts: 66

Rep: Reputation: 21
Quote:
Originally Posted by Average View Post
Brilliant suggestion! I assume you can tell me how to get SATA speeds with USB 2.0?
(The original goal, as stated, is to increase the transfer speed from USB 2.0 speeds to SATA speeds.)
I was trying to tell you gracefully that your plans to use a SATA interface on it would not work. Not if you care about your data.
 
Old 07-14-2015, 07:36 AM   #15
Average
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Aia View Post
I was trying to tell you gracefully that your plans to use a SATA interface on it would not work. Not if you care about your data.
Thanks! But that's not the linux way
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hard drive mounting woes Average Linux - Newbie 1 07-14-2015 10:23 AM
Help on mounting Hard Disk Drive and CD-ROM drive in Dapper. ussr_1991 Ubuntu 2 08-18-2007 11:33 PM
Hard drive woes, something's borked FliesLikeABrick Linux - Hardware 6 12-09-2005 05:02 PM
hard drive woes FliesLikeABrick Linux - Hardware 3 10-10-2005 02:12 AM
Hard Drive Woes jwchanman Linux - Hardware 11 02-12-2003 12:28 PM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration