LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - General (http://www.linuxquestions.org/questions/forumdisplay.php?f=1)
-   -   How do I mount a linux partition that was not originally installed on my current comp (http://www.linuxquestions.org/questions/showthread.php?t=224386)

sgf2 08-30-2004 01:24 PM

How do I mount a linux partition that was not originally installed on my current comp
 
I had a laptop running Win XP and Redhat 7.2. The laptop crashed and all I am left with is HD. I want to mount my old linux distro, Redhat 7.2, and grab the files I need off it before I format the HD. Does anybody have any tips on how I can do this. Right now on a different computer I am running Slackware 10.0 and that is what I want to use to mount the laptop HD, I just don't know what commands to put in the /etc/fstab. I also have IDE connector /dev/hdd open right now that I can use to plug the laptop HD onto. Any information or help would be greatly appreciated. Thank you.

sgf2

b0uncer 08-30-2004 01:35 PM

I guess it's simple and you don't need fstab necessarily...

first, plug the HD in. it becomes /dev/hdd if I read your post right, so next we'll simply mount it. create a mountpoint to your /mnt (be root):

mkdir /mnt/backup

the next step is to mount the device. you can add an fstab entry if you wish (if you want to access the disk afterwards simply with one short mount command) but it's not necessary:

mount -t ext2 /dev/hdd /mnt/backup

if ext2 is the filesystem on the HD you want to mount. you can try to mount without the "-t ext2" option too...now if all went well, you can access all the files in /mnt/backup that are in the HD. then simply copy them from /mnt/backup to some other place on your other HD or burn them to cds or something...after you're done,

umount /mnt/backup

and you're done. or then don't umount, but format the disk right away :)

sgf2 08-30-2004 01:41 PM

Will this mount option allow me to see all the Linux partitions on the HD?

btmiller 08-30-2004 02:46 PM

No, you'll need to mount each partition on hdd separately. So make multiple mount points and mount each partition in turn.

sgf2 08-30-2004 03:08 PM

Should I run 'fdisk /dev/hdd' to find out what all of my Linux partitions are?

Tinkster 08-30-2004 03:11 PM

fdisk -l should show them

Cheers,
Tink

sgf2 08-30-2004 03:49 PM

Thanks for all the help, I will give this a try when I get home from work and let you know if it works.


All times are GMT -5. The time now is 03:34 AM.