Web Hosting Talk







View Full Version : RH Linux 7.1: Mounting hard drive


Fremont Servers
04-25-2003, 02:07 AM
Hello,

Let's say I have a computer running RH Linux 7.1 for awhile, and now I have data on another hard drive that I want to put on my computer.

How do I mount the 2nd hard drive to my computer, and move data from the 2nd hard drive to the hard drive in my computer?

Is it as simple as put the 2nd hard drive to my computer and turn the computer on? What command do I need to execute to mount the 2nd hard drive?

I am using RH Linux 7.1

Slidey
04-25-2003, 03:33 AM
depending on the file system on the second drive, it'll be:

mount -t fs /dev/hda2 /mnt/point

where hda2 is the partition with the filesystem on it

hda is the device, the number starts at 1 and is the partition number i think from the beginning of the drive

Fremont Servers
04-25-2003, 01:46 PM
The 2nd hard drive also has RH Linux 7.1 installed, so both hard drives ( one in the computer and the 2nd hard drive) have RH Linux 7.1 installed.

I have SCA hard drive, meaning I can swap hard drive while running.

Should I connect the 2nd hard drive to computer, then turn on the computer. Will the computer confuse which hard drive to boot on?

neil
04-25-2003, 08:57 PM
make sure primary and slave are set properly and you shuold be fine.. as for the above that's for IDE drives since you have scsi drives it'd be


mkdir /mnt/drive2
mount /dev/sda2 /mnt/drive2

after that you everything should accesible via /mnt/drive2