My ubuntu laptop has died, and so I am attempting to recover some files off the hard drive using a raspberry pi. I have removed my laptop's hard drive and attached it to my raspberry pi via usb. I am now trying to figure out how I can
cd into it to view my files.
online, various forums say to use
sudo fdisk -l but this apparently cannot read GPT. When I run the command, a message says "The util fdisk doesn't support GPT. Use GNU Parted."
Gparted is a graphical application. I would like a way to do this using the terminal alone.
I do not wish to modify the hard drive, only read from it.
How can I do this and access my files?
Update: So I figured out
sudo parted -l outputs
Model: ST500LT0 32-1E9142 (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 538MB 537MB fat32 boot 2 538MB 492GB 491GB ext4 3 492GB 500GB 8483MB linux-swap(v1)
I want to cd into the 492GB partition. I tried
sudo mount /dev/sda2 /mnt but that gives me
mount: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error
Any ideas as to what I'm doing wrong?