I have an external 10Tb Seagate drive. It's an NTFS drive with two partitions as the factory default. I've been mounting it on my Ubuntu 18.04.03 server. Today it stopped working. I tested it on my other Linux box and it mounts fine.
On my server, here's the fdisk -l
entry:
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sdc: 9.1 TiB, 10000831348224 bytes, 19532873727 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: D8EE6550-DE3E-472E-AC52-9E16518097F0
Device Start End Sectors Size Type
/dev/sdc1 34 262177 262144 128M Microsoft reserved
/dev/sdc2 264192 19532871679 19532607488 9.1T Microsoft basic data
Partition 1 does not start on physical sector boundary.
When I try sudo mount /dev/sdc2 /media/seagate
it executes without any errors, but then ls /media/seagate/
returns nothing and a df -h
shows it as unmounted.
dmesg
shows
sd 4:0:0:0: [sdc] Spinning up disk...
[819935.907806] usb 1-1-port2: Cannot enable. Maybe the USB cable is bad?
(The USB cable is the one that shipped with the drive and works on my other box. But I tried using a different port on the server). Then a bunch of empty lines, then:
[819955.420373] ready
[819955.420705] sd 4:0:0:0: [sdc] 19532873727 512-byte logical blocks: (10.0 TB/9.09 TiB)
[819955.446378] sd 4:0:0:0: [sdc] Write Protect is off
[819955.446383] sd 4:0:0:0: [sdc] Mode Sense: 4f 00 00 00
[819955.446544] sd 4:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[819955.446748] sd 4:0:0:0: [sdc] Optimal transfer size 33553920 bytes
[819955.536627] Alternate GPT is invalid, using primary GPT.
[819955.536635] sdc: sdc1 sdc2
[819955.537583] sd 4:0:0:0: [sdc] Attached SCSI disk
[820292.456857] blk_partition_remap: fail for partition 2
[820292.456864] Buffer I/O error on dev sda2, logical block 786545, async page read
The weirdest thing of all is that when I use sudo mount /dev/sdc2 /media/seagate
on the server, it mounts fine! Both of those directories exist in my /media
folder. I've tried deleting and recreating them. Same problem.
I want it mounted to /media/seagate
because that's where various things on my system point to.
Can anyone help me understand why it's mounting to one folder but not another? Also why is the buffer I/O error affecting sda2, not sdc2, when I'm mounting sdc2?
sudo cat /etc/fstab
andls -l /media
– oldfred Nov 27 '20 at 22:57UUID=a45d6d3e-80f1-4eaf-b5d0-283970624679 / ext4 defaults 0 0 UUID=DEC9-0F4E /boot/efi vfat defaults 0 0 /swap.img none swap sw 0 0 /dev/sdc1 /media/external ext4 defaults 0 0 192.168.1.73:/mnt/HD/HD_a2/Public /mnt/public nfs defaults 0 0
– RubyNoob Nov 30 '20 at 15:32drwxr-xr-x 2 root root 4096 Sep 19 03:27 backup drwx------ 10 danny danny 4096 Nov 27 20:58 external drwxr-xr-x 3 root root 4096 Nov 27 21:27 seagate
Looks like you're right about the permissions issue, given the difference in ownership between external (the only thing I can mount to) and the other dirs. Thanks for this - I will go and do some reading.
– RubyNoob Nov 30 '20 at 15:32