0

I attached my working 3,5" 3TB HDD to my Raspberry Pi 4. I'm using an old case from a HDD called Seagate Freeagent, the actual drive is a WD Blue with 3TB. So after attaching it to the pi, I get those infos:

dmesg:

[88997.015075] usb 1-1.2: new high-speed USB device number 4 using xhci_hcd
[88997.116113] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=3008, bcdDevice= 1.32
[88997.116148] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[88997.116165] usb 1-1.2: Product: FreeAgent
[88997.116179] usb 1-1.2: Manufacturer: Seagate
[88997.116192] usb 1-1.2: SerialNumber: 2GEWEWQW
[88997.118560] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[88997.119669] scsi host1: usb-storage 1-1.2:1.0
[88998.123842] scsi 1:0:0:0: Direct-Access     Seagate  FreeAgent        0132 PQ: 0 ANSI: 4
[88998.124704] sd 1:0:0:0: Attached scsi generic sg1 type 0
[88998.125068] sd 1:0:0:0: [sdb] 1565565872 512-byte logical blocks: (802 GB/747 GiB)
[88998.125518] sd 1:0:0:0: [sdb] Write Protect is off
[88998.125537] sd 1:0:0:0: [sdb] Mode Sense: 2d 08 00 00
[88998.125985] sd 1:0:0:0: [sdb] No Caching mode page found
[88998.126002] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[88998.147844] sd 1:0:0:0: [sdb] Attached SCSI disk

In blkid I can only see my others drives.

Then sudo fdisk -l tells me there is something, but the Size seems totally wrong?

Disk /dev/sdb: 746.52 GiB, 801569726464 bytes, 1565565872 sectors
Disk model: FreeAgent
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x16a10371

Device     Boot Start        End    Sectors Size Id Type
/dev/sdb1           1 4294967295 4294967295   2T ee GPT

Mounting doesn't work though, as there are no partitions in /dev/:

pi@pihole4:~ $ sudo mount -t ntfs -o nls=utf8,umask=0222 /dev/sdb1 /media/nashdd
ntfs-3g: Failed to access volume '/dev/sdb1': No such file or directory

Only the device is there:

pi@pihole4:~ $ ls -l /dev/sdb*
brw-rw---- 1 root disk 8, 16 Dec  8 15:36 /dev/sdb

I checked in Windows - the partition table is GPT. There is also a free space in of 129MB, which is not partitioned. What am I doing wrong?

edit: Just tried out a different device (same SATA adapter), which was freshly formatted as NTFS under Windows. And it works without a problem. It's output is a little bit different in fdisk:

Disk /dev/sdb: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk model: FreeAgent
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb31087ab

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdb1        2048 625141759 625139712 298.1G  7 HPFS/NTFS/exFAT

So I don't have a second drive which can hold my 2TB of data for a fresh formatting, is it possible to repair the partition table without wiping my data?

1
  • 2
    NTFS is a proprietary standard belonging to Microsoft, which is why it works fine with Windows and is problematic elsewhere. The linux implementation is essentially reverse engineered; the end result of this is that MS can make whatever normal and minor tweaks to the standard, but those are not public and they certainly don't call up the linux driver folks and say, "Hey, we've made some changes..." etc. Meaning: There can be no guarantees of stability using NTFS in this context. If you want stable and predictable behaviour don't use NTFS.
    – goldilocks
    Dec 8, 2022 at 17:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.