Hard drive won't mount

Hi all,

I’ve got some old family computers and I’m trying to take an image of the hard drives onto my modern machine for archival purposes. I’ve had success for the most part, but one particular hard drive is giving me issues.

I have a USB to IDE/SATA converter, so I am removing the hard drives and powering them with a power supply, but they interface with my fedora machine over USB.

One particular hard drive will not mount. It appears to be recognized but I can’t figure out it’s filesystem. It appears to have multiple partitions, but the computer the drive came out of is very old (Compaq Presario 1672) so I don’t recall anything about how it is set up. Anyone ran into something like this before?

Here’s the output of lsblk, the hard drive I am trying to access is sdc

josh@Desktop:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0   1.8T  0 disk 
└─sda1        8:1    0   1.8T  0 part /run/media/josh/HDD
sdb           8:16   0 931.5G  0 disk 
└─sdb1        8:17   0 931.5G  0 part /mnt/SSD
sdc           8:32   0     6G  0 disk 
├─sdc1        8:33   0   4.5G  0 part 
├─sdc2        8:34   0     1K  0 part 
└─sdc5        8:37   0   1.5G  0 part 
zram0       251:0    0     8G  0 disk [SWAP]
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0   600M  0 part /boot/efi
├─nvme0n1p2 259:2    0     1G  0 part /boot
└─nvme0n1p3 259:3    0 236.9G  0 part /home
                                      /

When I attempt to find the filesystem of sdc I do not see any information.

josh@Desktop:~$ lsblk -f
NAME        FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                 
└─sda1      ext4   1.0   HDD    f96e3257-074f-4589-a8b4-141664a89228    1.5T    10% /run/media/josh/HDD
sdb                                                                                 
└─sdb1      ext4   1.0   SSD    6784ce89-b265-4f50-8688-aa26d7124d9f  237.3G    69% /mnt/SSD
sdc                                                                                 
├─sdc1                                                                              
├─sdc2                                                                              
└─sdc5                                                                              
zram0       swap   1     zram0  e621e98b-68b5-4b1a-b30f-2854f13a8885                [SWAP]
nvme0n1                                                                             
├─nvme0n1p1 vfat   FAT32        3898-5A41                             579.5M     3% /boot/efi
├─nvme0n1p2 ext4   1.0          2f7c7ee9-a803-4359-a8b1-a4ba70fd7152  409.8M    51% /boot
└─nvme0n1p3 btrfs        fedora 5cb1cd6d-77e2-4a1a-8af7-727ca6ae47d6    201G    14% /home

sdc does not appear to show up when I run df -T

josh@Desktop:~$ df -T
Filesystem     Type      1K-blocks      Used  Available Use% Mounted on
/dev/nvme0n1p3 btrfs     248394752  34917292  210742292  15% /
devtmpfs       devtmpfs   16344560         0   16344560   0% /dev
tmpfs          tmpfs      16387408        12   16387396   1% /dev/shm
efivarfs       efivarfs        384        62        318  17% /sys/firmware/efi/efivars
tmpfs          tmpfs       6554964      2180    6552784   1% /run
tmpfs          tmpfs          1024         0       1024   0% /run/credentials/systemd-journald.service
tmpfs          tmpfs      16387412        16   16387396   1% /tmp
/dev/nvme0n1p3 btrfs     248394752  34917292  210742292  15% /home
/dev/sdb1      ext4      960302096 662648444  248799228  73% /mnt/SSD
/dev/nvme0n1p2 ext4         996780    508344     419624  55% /boot
/dev/nvme0n1p1 vfat         613184     19764     593420   4% /boot/efi
tmpfs          tmpfs          1024         0       1024   0% /run/credentials/systemd-resolved.service
tmpfs          tmpfs       3277480       124    3277356   1% /run/user/1000
/dev/sda1      ext4     1921724608 195456080 1628576472  11% /run/media/josh/HDD
tmpfs          tmpfs       3277480         0    3277480   0% /run/user/0

If I try to open a partition manager (tried KDE Partition manager and GParted), it gets stuck on scanning sdc. Also if I try to mount via cli it locks up as well.

Thanks for any and all help in getting this drive mounted.

I don’t know if it will shed any more light, but maybe worth posting the output of sudo fdisk -l /dev/sdc as well.

3 Likes

This command does not appear to be working unfortunately. Terminal was locked up after I typed my password. Eventually (15 minutes later) it spat out a response.

josh@Desktop:~$ sudo fdisk -l /dev/sdc
[sudo] password for josh: 
fdisk: cannot open /dev/sdc: Input/output error

Worth noting, the old laptop does boot with the hard drive installed so the drive is functional.

I did just run file -s and got a “no read permission” output so maybe that’s what’s going on. Not sure how to fix that yet.

josh@Desktop:~$ file -s /dev/sdc
/dev/sdc: no read permission

If you run mount | grep sdc is will display if any of the partitions on the drive are mounted or not, as well as the mount point. (no results means not mounted)
Run that command first with the device not attached, then attach it and repeat the mount command to see if there is a difference.

Most times fedora will mount a usb device at /run/media/$USER/device. However, when there are multiple partitions it may be that not all or even none may be mounted. It is even worthwhile to note that unplugging and reattaching a usb device may result in a different device name being assigned to the same device.

The best tool to identify if the drive is even seen is sudo fdisk -l which should show the details of every attached drive. Then use that information to verify the mount or mount it manually see what the content is.

Note that the ‘lsblk’ command you used clearly showed sdcX partitions were not mounted, which was also shown with lsblk -f which provides details of mounted file systems.

Similarly df is only able to show details of mounted file systems.

Thus it appears that the device is probably properly seen but is not automatically mounted so you must manually mount each partition before you can access the content.

Thanks for the information on how these tools work, makes a little more sense now.

Manually mounting does not appear to work. Using the mount command just locks up the terminal and there’s is no GUI elements showing the drive to try mounting anywhere but the command line.

Try that with sudo ?

The man page for fdisk says:

In a DOS-type partition table the starting offset and the size of each partition is stored in two ways: as an absolute number of sectors (given in 32 bits), and as a Cylinders/Heads/Sectors triple (given in 10+8+6 bits). The former is OK — with 512-byte sectors this will work up to 2 TB. The latter has two problems. First, these C/H/S fields can be filled only when the number of heads and the number of sectors per track are known. And second, even if we know what these numbers should be, the 24 bits that are available do not suffice. DOS uses C/H/S only, Windows uses both, Linux never uses C/H/S. The C/H/S addressing is deprecated and may be unsupported in some later fdisk version.

I wonder if a disk from a machine of this vintage (probably running Windows 98?) uses partitioning that modern Linux tools struggle to read.

Hi PG,

You might check to see if that old disk is using disk compression … As I recall, when running W98(?) you could set the system to compress the contents of the disk to save space …I think it was either call DriveSpace or DoubleSpace … either way, you can’t read the disk contents directly with Linux (or at least I haven’t found a way to do that… :-)) What you can do is make a raw disk image of the drive start the image as a QEMU/KVM virtual machine in Linux …

Something like:

  1. dd if=/dev/sdc of=/home/FOO/Windows98.DD <==== this file would be your raw disk image
  2. use KVM/QEMU to create a VM from the disk image and see where things go from there
    3)(?) use SAMBA to mount a local FS from W98 and copy your stuff there?
    3)(?) use putty in the W98 VM and sftp/scp your files to a Linx FS?

You probably have a Windows 8 FAT filesystem, but there were many variants — see:https://en.wikipedia.org/wiki/File_Allocation_Table#FAT16B.
If you can find an OS installer you might be able to run the original OS in a VM. Then try to create a image of the drive for use in the VM.

Thanks everyone for all the help. Still no luck unfortunately. Here’s what I have tried between my last comment and this one.

Locks up the terminal, never gives an output unfortunately.

The first command locks up the terminal as well so I haven’t been able to get to the VM stage.

I tried troubleshooting via dmesg so here is that output after connecting the device. Note that this is a different hard drive from the original message, but it’s a very similarly aged computer running the same operating system and it is behaving identically to what I have already posted. It is a larger size however. I thought I may have better luck with a different hard drive (these are the 2 trouble drives, all others have worked great).

[34919.672363] sd 8:0:0:0: [sdc] Attached SCSI disk
[35190.437358] usb 2-3: new SuperSpeed USB device number 18 using xhci_hcd
[35190.453321] usb 2-3: New USB device found, idVendor=1f75, idProduct=0611, bcdDevice= 0.06
[35190.453326] usb 2-3: New USB device strings: Mfr=4, Product=5, SerialNumber=6
[35190.453329] usb 2-3: Product: XT-U33502
[35190.453331] usb 2-3: Manufacturer: XinTop
[35190.453333] usb 2-3: SerialNumber: 20480810
[35190.463637] usb-storage 2-3:1.0: USB Mass Storage device detected
[35190.463796] scsi host8: usb-storage 2-3:1.0
[35191.493220] scsi host8: scsi scan: INQUIRY result too short (5), using 36
[35191.493228] scsi 8:0:0:0: Direct-Access     XinTop   XT-U33502             PQ: 0 ANSI: 0
[35191.493500] sd 8:0:0:0: Attached scsi generic sg2 type 0
[35221.960500] usb 2-3: reset SuperSpeed USB device number 18 using xhci_hcd
[35221.986435] sd 8:0:0:0: [sdc] 160086528 512-byte logical blocks: (82.0 GB/76.3 GiB)
[35221.987992] sd 8:0:0:0: [sdc] Write Protect is off
[35221.987995] sd 8:0:0:0: [sdc] Mode Sense: 3b 00 00 00
[35221.989964] sd 8:0:0:0: [sdc] No Caching mode page found
[35221.989967] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[35252.170286] usb 2-3: reset SuperSpeed USB device number 18 using xhci_hcd
[35282.382570] usb 2-3: reset SuperSpeed USB device number 18 using xhci_hcd
[35312.585611] usb 2-3: reset SuperSpeed USB device number 18 using xhci_hcd

The “reset SuperSpeed USB device number 18 using xhci_hcd” comes through approximately once a minute. I could confirm with the original devices booted that this hard drive belongs to a Windows XP machine (it did not come with XP), and the drive is formatted FAT32 but I can’t see that anywhere in Fedora.

I understand I can grab files from the original computers when they are booted but I would really like to be able to image the whole drive to be consistent with my archival methods.

I’ve had USB 3.0+ disconnects with a USB-C dock on two computers with the included cables (been over a year but they were fine before); switching to a short unrelated cable seems fine. Had to redo a couple overnight NAS restores to figure that out :stuck_out_tongue: (dmesg had a flood of USB and filesystem errors after a while)

If USB-C is involved anywhere I’d try flipping the end. One of my laptops only does USB 3 speeds if the C cable itself is connected a certain way in the C-to-A adapter on the laptop and the HDD itself (my other native-C laptop handles any direction; HDD transfers seemed fine on the longer cables at slower USB2 speed)

There are data recovery experts at r/datarecovery: https://ww.reddit.com/r/datarecovery/rising/.

My experience (years ago) with SCSI drives (from PC, VAX, and SGI systems) was that “standards” were not honoured. Some drives didn’t work with some SCSI controllers. USB adapters were problematic, but we had access to several SCSI controller cards we could swap into PC’s. There were also issues with bus termination and proper grounding for external drives when using multiple power sources. We had one known good ground point and connections to that from each separately powered unit.