• Can't access files in an external hard drive


    Hello,

    This is my first time asking a question here, so I am not sure what information to include, but I can add more information if necessary.

    I am trying to access some files in an external hard drive (it is an old hard drive), but the device is not being properly recognized by my computer.

    Before connecting the device through a usb port, I get:

    [user]$ ls /dev/ | grep sd
    sda
    sda1
    sda2
    sdb
    sdb1
    sdb2
    

    And after connecting the device, I get:

    [user]$ ls /dev/ | grep sd
    sda
    sda1
    sda2
    sdb
    sdb1
    sdb2
    sdc
    

    The first one, LaCie, Ltd, is the hard drive that I am trying to access:

    [user]$ lsusb
    Bus 001 Device 039: ID 059f:105e LaCie, Ltd 
    Bus 001 Device 002: ID 8087:8000 Intel Corp. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 002 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
    Bus 002 Device 002: ID 0bda:57b5 Realtek Semiconductor Corp. 
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    

    Immediately after connecting I get:

    [user]$ dmesg | tail -n 20
    [78264.734631] audit: type=1130 audit(1556837095.004:508): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    [78275.121316] audit: type=1131 audit(1556837105.391:509): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    [78297.442330] wlp3s0: disconnect from AP 9c:1c:12:ec:f6:21 for new auth to 9c:1c:12:b2:15:61
    [78297.448559] wlp3s0: authenticate with 9c:1c:12:b2:15:61
    [78297.460504] wlp3s0: send auth to 9c:1c:12:b2:15:61 (try 1/3)
    [78297.463092] wlp3s0: authenticated
    [78297.464942] wlp3s0: associate with 9c:1c:12:b2:15:61 (try 1/3)
    [78297.469985] wlp3s0: RX ReassocResp from 9c:1c:12:b2:15:61 (capab=0x431 status=0 aid=1)
    [78297.470089] wlp3s0: associated
    [78314.571671] usb 1-1.3: new high-speed USB device number 39 using ehci-pci
    [78315.573783] usb 1-1.3: New USB device found, idVendor=059f, idProduct=105e, bcdDevice= 0.01
    [78315.573789] usb 1-1.3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
    [78315.573793] usb 1-1.3: Product: d2 Quadra USB 3.0
    [78315.573796] usb 1-1.3: Manufacturer: LaCie
    [78315.573799] usb 1-1.3: SerialNumber: 0000000035e54ab10000
    [78315.574255] usb-storage 1-1.3:1.0: USB Mass Storage device detected
    [78315.576825] scsi host4: usb-storage 1-1.3:1.0
    [78316.589330] scsi 4:0:0:0: Direct-Access     LaCie    d2 Quadra v3C    051E PQ: 0 ANSI: 6
    [78316.590026] sd 4:0:0:0: Attached scsi generic sg2 type 0
    [78316.593640] sd 4:0:0:0: [sdc] Attached SCSI removable disk
    

    However, when I do:

    [user]$ sudo fdisk -l
    

    I get the other two hard drives in my computer (931.5 GiB is a normal hard drive, and the 465.8 GiB is a solid state drive from which I am running Antergos), but I can’t see the LaCie hard drive.

    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
    Disk model: HGST HTS541010A9
    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: 77543598-DC35-4260-8D13-D1C9E09B81A4
    
    Device       Start        End    Sectors  Size Type
    /dev/sda1     2048    1050623    1048576  512M EFI System
    /dev/sda2  1050624 1953523711 1952473088  931G Linux filesystem
    
    
    Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Disk model: CT500MX500SSD1  
    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: 9D470620-A2AB-4979-9F28-22312E320B1A
    
    Device      Start       End   Sectors   Size Type
    /dev/sdb1    2048    526335    524288   256M EFI System
    /dev/sdb2  526336 976771071 976244736 465.5G Linux LVM
    
    
    Disk /dev/mapper/AntergosVG-AntergosRoot: 29.3 GiB, 31457280000 bytes, 61440000 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
    
    
    Disk /dev/mapper/AntergosVG-AntergosSwap: 5.8 GiB, 6236930048 bytes, 12181504 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
    
    
    Disk /dev/mapper/AntergosVG-AntergosHome: 430.4 GiB, 462140997632 bytes, 902619136 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
    

    So, my computer is recognizing the hard drive, but there is no file folder to access the files in it. It seems like my computer is not mounting the hard drive, but I don’t know how to fix that. (I already tried manually mounting sdc but it didn’t work).

    Thanks!

  • @AGFM09 said in Can’t access files in an external hard drive:
    So my computer is recognizing the hard drive, but there is no file folder to access the files in it. It seems like my computer is not mounting the hard drive, but I don’t know how to fix that. (I already tried manually mounting sdc but it didn’t work).

    Thanks!

    You say you tried mounting it or do you mean you just clicked on it to open it or try to access it? Was there any information? Saying it doesn’t work… can you be more specific? Any error messages or info? Looks like it’s recognizing it as a hard drive. What file system was on that drive? Also did you try restarting the computer after plugging it in when it wouldn’t access it?

  • @ricklinux after connecting the device, it seems like the disk is in sdc. When I go to my folder /dev/disk/by-id I can see it:

    lrwxrwxrwx 1 root root  9 May  2 17:45 usb-LaCie_d2_Quadra_v3C_0000000035e54ab10000-0:0 -> ../../sdc
    

    So I tried to mount it by doing:

    [user]$ sudo mount /dev/sdc /mnt
    mount: /mnt: no medium found on /dev/sdc.
    

    This is the only error message I am getting, besides that the drive is not showing up in my file system.

    I have also just noticed that, if I wait like 10 minutes after connecting the drive, dmesg shows me this:

    [81895.073386] usb 3-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
    [81895.090464] usb 3-1: New USB device found, idVendor=059f, idProduct=105e, bcdDevice= 0.01
    [81895.090467] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
    [81895.090469] usb 3-1: Product: d2 Quadra USB 3.0
    [81895.090470] usb 3-1: Manufacturer: LaCie
    [81895.090472] usb 3-1: SerialNumber: 0000000035e54ab10000
    [81895.091450] usb-storage 3-1:1.0: USB Mass Storage device detected
    [81895.091544] scsi host4: usb-storage 3-1:1.0
    [81896.100520] scsi 4:0:0:0: Direct-Access     LaCie    d2 Quadra v3C    051E PQ: 0 ANSI: 6
    [81896.101236] sd 4:0:0:0: Attached scsi generic sg2 type 0
    [81896.101950] sd 4:0:0:0: [sdc] Attached SCSI removable disk
    [82029.791321] audit: type=1130 audit(1556845747.012:537): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    [82059.860918] audit: type=1131 audit(1556845777.082:538): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    [82199.468604] audit: type=1130 audit(1556845916.689:539): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    [82210.110989] audit: type=1131 audit(1556845927.333:540): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    [82648.916476] audit: type=1130 audit(1556846366.141:541): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    [82659.110227] audit: type=1131 audit(1556846376.334:542): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
    [82744.287855] wlp3s0: disconnect from AP 9c:1c:12:b2:15:61 for new auth to 9c:1c:12:ec:f6:21
    [82744.294135] wlp3s0: authenticate with 9c:1c:12:ec:f6:21
    [82744.306114] wlp3s0: send auth to 9c:1c:12:ec:f6:21 (try 1/3)
    [82744.315530] wlp3s0: authenticated
    [82744.317403] wlp3s0: associate with 9c:1c:12:ec:f6:21 (try 1/3)
    [82744.390443] wlp3s0: RX ReassocResp from 9c:1c:12:ec:f6:21 (capab=0x431 status=0 aid=1)
    [82744.390577] wlp3s0: associated
    [82778.800579] wlp3s0: disconnect from AP 9c:1c:12:ec:f6:21 for new auth to 9c:1c:12:b2:15:61
    [82778.806796] wlp3s0: authenticate with 9c:1c:12:b2:15:61
    [82778.818670] wlp3s0: send auth to 9c:1c:12:b2:15:61 (try 1/3)
    [82778.821089] wlp3s0: authenticated
    [82778.823754] wlp3s0: associate with 9c:1c:12:b2:15:61 (try 1/3)
    [82778.827406] wlp3s0: RX ReassocResp from 9c:1c:12:b2:15:61 (capab=0x431 status=0 aid=1)
    [82778.827512] wlp3s0: associated
    
  • @AGFM09 Can you check that you have ntfs-3g installed. What is the file system on the disc? Can you also check with gparted to see what it shows.

  • @AGFM09 This is a USB 3.1 drive that requires a certain amount of power to run it. Do you have it plugged into the proper port that is a 3.1 usb? USB 2 only puts out 2.5 watts and you need 4.5 so that could be one issue. Blue usb port is version 3

  • @AGFM09 Since the drive loads see if gparted can see the partitions and delete them and recreate a GPT partition and format it ext4. I think these lacie drives come with some software on them to set up but it’s Windows designed. It may not be able to read the file system.

  • @AGFM09 said in Can't access files in an external hard drive:

    [user]$ sudo mount /dev/sdc /mnt
    mount: /mnt: no medium found on /dev/sdc.

    Also you can not mount the device you need to mount partition like

    /dev/sdc1
    

    But as the partitions are not listed with fdisk it is maybe unformatted or/and not partitioned?
    If you have data on the drive, do not format it again, may needs recovering then!!!

  • @AGFM09

    @joekamprad has great points.

    So is there already data on the external disk? Is it a Windows formatted disk? Can you see the data with Windows?
    If so, do not format it nor create a new partition table, since that will erase all data on the disk.

    You may want to try other USB ports, sometimes that helps.

    Also, if you see the data with Windows (with some Windows disk manager tool), could you show a picture about it?

  • @AGFM09 said in Can't access files in an external hard drive:

    I am trying to access some files in an external hard drive (it is an old hard drive), but the device is not being properly recognized by my computer.

    Sorry, @joekamprad and @manuel are right i totally missed that you were trying to access some files and it’s an old drive. I was thinking maybe it had no file system on it or an unreadable file system. So no you don’t want to delete the partition and format it or it will erase the data. Hoepfully you haven’t done that. 😟

  • @ricklinux I have not deleted the partitions. I checked and I do have ntfs-3g installed. I am able to access the files in other (newer) hard drives just fine.

    I have tried connecting the hard drive to other usb ports, but the result is the same.

    @joekamprad and @manuel, I do have important data in that hard drive. It has been connected to a Mac computer in an office for the past 7 years, but now the Mac stopped working and I tried connecting the hard drive to other computers to access the files. I tried connecting it to another Mac and a Windows computer, but none of them can recognize the hard drive.

    My best guess so far is that the hard drive has been formatted in a way that makes it inaccessible to Linux and maybe to Windows and newer Macs.

  • @AGFM09 I doubt whether it has the newer Apple File System so it either has Mac OS Extended (HFS+) or it was Fat32 or Exfat. It seems that the drive is showing up but it doesn’t recognize the partitions and file system? Did you try a new cable? Sometimes the cables go bad.

  • @ricklinux thanks, that’s a good suggestion. I haven’t tried a new cable. I will look for one.

  • @AGFM09
    One thing to try is installing package hfsprogs from AUR.
    Note that I don’t have any Mac disks so I haven’t tested it.

    This article may help: https://wiki.archlinux.org/index.php/File_systems
    This thread may also help: https://superuser.com/questions/961401/mounting-hfs-partition-on-arch-linux

  • @manuel I think that’s a good suggestion to try the hfsprogs because the drive is showing. But it just seems like it doesn’t recognize the partitions or file system so possibly it is Mac Os extended HFS file system. I have also used test disk before also but for a different purpose trying to recover file system on a usb drive that was destroyed by plugging into an xbox. 😖 Darn kids…again.

  • If you manage to have a read-only access to the disk, I suggest you backup it as soon as possible. Then you can reformat it to some suitable common format for your computers.

  • Hm… As far as i know drivers should be available from kernel for hfs and hfs+…
    But may i am wrong…

    https://fosswire.com/post/2007/09/dealing-with-mac-formatted-drives-on-linux/

  • @AGFM09 So we are not sure what the file system is. It’s a guess that it may be an apple file system? So i think you should try like @manuel say’s. Install the hfsprogs from the AUR and try the following.

    sudo fdisk -l

    and or

    sudo fdisk -l /dev/sdc

    See if you get any info on the screen that would tell you the file system. If it does then the partition should be /dev/sdc1 i would think?

    Then create a mount point.

    sudo mkdir /media/external

    sudo mount -t hfsplus -o force,rw /dev/sdc1 /media/external

    Of course if it doesn’t show you anything i guess you could still try it? But i don’t know then if it’s another issue? I don’t know that this would hurt anything?

    You could also try test disk and use it to get info only. You would need to be careful as test disk is a very powerful tool.

    What do @manuel and @joekamprad think?

  • @joekamprad
    That article is 12 years old and relies on package hfsutils that Antergos doesn’t have. I guess it is the same as hfsprogs but not sure.
    Anyway, gparted supports many different filesystems, but hfs is greyed (unusable) because I don’t have hfsprogs installed.

  • @ricklinux
    After installing hfsprogs I guess the first thing is to reboot.
    Then I’d try starting gparted only to see if the disk and partitions are detected.

  • @manuel hfsprogs: is to create and check hfs partitons …

    Arch-Kernel seems to include filesystemsupport for HFS+:

    /usr/lib/modules/5.0.10-arch1-1-ARCH/build/fs/hfsplus
    /usr/lib/modules/5.0.10-arch1-1-ARCH/build/fs/hfsplus/Kconfig
    /usr/lib/modules/5.0.10-arch1-1-ARCH/build/include/config/hfsplus
    /usr/lib/modules/5.0.10-arch1-1-ARCH/build/include/config/hfsplus/fs.h
    /usr/lib/modules/5.0.10-arch1-1-ARCH/kernel/fs/hfsplus
    /usr/lib/modules/5.0.10-arch1-1-ARCH/kernel/fs/hfsplus/hfsplus.ko.xz
    

    https://www.kernel.org/doc/Documentation/filesystems/hfsplus.txt

mount27 hardware10 hard disk2 Posts 30Views 162
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.