Personal computing discussed

Moderators: renee, SecretSquirrel, notfred

 
FireGryphon
Darth Gerbil
Topic Author
Posts: 7729
Joined: Sat Apr 24, 2004 7:53 pm
Location: the abyss into which you gaze

can't mount hdd on laptop

Tue Dec 11, 2007 9:00 pm

So I'm trying to boot some form of Linux off of a CD on a Dell laptop so that I can pull data off its hard drive. So far I've tried using the file utils and Linux boot disk options on the Ultimate Boot CD. Unfortunately, whenever I try to mount hda or hda1 from those apps, it tells me the device doens't exist or is not recognized.

Is there something special I have to do to mount hard drives off of a live install, or on a Dell laptop, or somethin'? Any help is appreciated.
Sheep Rustlers in the sky! <S> Slapt | <S> FUI | Air Warrior II/III
 
enigma59
Gerbil
Posts: 44
Joined: Thu Dec 29, 2005 8:11 pm

Tue Dec 11, 2007 9:06 pm

you could try mounting /dev/sda
 
bitvector
Grand Gerbil Poohbah
Posts: 3293
Joined: Wed Jun 22, 2005 4:39 pm
Location: San Francisco, CA

Tue Dec 11, 2007 9:14 pm

cat /proc/partitions

That will tell you the currently recognized disk partitions and block devices.

fdisk -l /dev/sda (or /dev/hda or whatever valid hard disks you find)

That will list the partition table of a block device and tell you what the partition types are marked as.

Generally you're going to want to mount /dev/sdaN where N is a number (or /dev/hdaN or hdbN, etc.), because /dev/sda is the block device for the entire disk (including the MBR), while /dev/sda1 would be the first partition.
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Tue Dec 11, 2007 9:16 pm

As root, execute the command: /sbin/fdisk -l
(that's a lowercase 'L', not a number '1')

That should list the partitions on any disk devices visible to the system.

As enigma59 noted, the disk(s) may be /dev/sd<something> instead of /dev/hd<something>, depending on whether the disks are PATA or SATA and on how recent a Linux kernel you're running.
Last edited by just brew it! on Tue Dec 11, 2007 9:18 pm, edited 2 times in total.
Nostalgia isn't what it used to be.
 
notfred
Maximum Gerbil
Posts: 4610
Joined: Tue Aug 10, 2004 10:10 am
Location: Ottawa, Canada

Tue Dec 11, 2007 9:16 pm

If it is a SATA drive it will appear as /dev/sda and not /dev/hda. You then need to mount the appropriate partition, so probably need to do something like
mount /dev/sda1 /mnt

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On