Getting root access to a hard drive connected via USB?

5,346

You'll have to set the filesystem permissions on the filesystem, not the block device. So, you'll run chmod on /media/mountpoint, not on /dev/sdx. In any case, root always has complete access to everything, so if you run gksudo nautilus, you won't have any problems accessing any files.

It is not unusual for users to have the /home on a different partition. This enables you to reinstall Ubuntu without loosing any personal files or settings. That may be the case. You should look through the other partitions and see what they contain.

You can run a smart-test on the drive to see how badly damaged it is. From what information you provide, it is not possible to know much about the state of the disks. "died" doesn't say anything at all.

Share:
5,346

Related videos on Youtube

mnb
Author by

mnb

Updated on September 18, 2022

Comments

  • mnb
    mnb over 1 year

    Friend's old laptop running ubuntu has 'died' (too old to be worth repairing), but he wanted to save some family photos from the hard drive, so I took the drive out and connected it to my laptop(running ubuntu 11.04) with an IDE-to-USB adapter.

    1. How do I get permissions to access all the files on the filesystem? I tried with sudo chown -R username /dev/devicename, sudo chmod -R 755 /dev/devicename, but it doesn't work. I also tried booting the whole system from the USB-connected drive, but it doesn't seem to work either.
    2. There seems to be nothing inside the /home folder. Is this because I don't have permissions to view the content, or does this mean that the hard drive is corrupt/there's nothing there and all my effort is in vain anyway?
    • qbi
      qbi over 12 years
      I have some questions: Could you describe what died exactly means? What happend when you connected the drive to your computer? Was it mounted automatically or did you mount it? It would be helpful to see the mountpoint of the /home. So please paste the output of the command grep home /etc/fstab.
  • Jo-Erlend Schinstad
    Jo-Erlend Schinstad over 12 years
    I haven't personally tested a disk with Gparted, so I don't know what it does. What I can recommend is to use the "disk tool" or whatever its label is. It's actual name is "palimpsest" and it's installed by default. It will enable you to run tests on the disk, far beyond a simple surface scan. You can also use smartctl from the package smartmontools, but it's CLI only. As far as I'm aware, palimpsest does the same thing but with a good GUI.
  • Matt
    Matt over 12 years
    gparted is the GUI front end to parted, it's a partitioner