LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to: mount existing partition on 2nd drive (https://www.linuxquestions.org/questions/linux-general-1/how-to-mount-existing-partition-on-2nd-drive-26710/)

atljam 07-28-2002 12:10 PM

how to: mount existing partition on 2nd drive
 
RH 7.3 installed on hde
I have a second hard drive that I previously had mounted in the first install of RH, ( now re-installed RH) I now need to access that drive with the data intact,
it shows up on fdisk -l
as /dev/hdc2 start 128 end 2491 blocks 18988830 ID 83 System Linux


I then tried the command:
mkfs /dev/hdc2: /dev/hdc2

the error message is: mkfs.ext2: bad blocks count - /dev/hdc2

what is the proper way for me to proceed to gain access to this hard drive partition, and be able to mount it as /stage11i

thanks

Dan

Half_Elf 07-28-2002 12:17 PM

do NOT try mkfs, this will format the partition, so all data will be lost!!!

try to mount it.
command should be:
/mount /dev/hdc2 /stage11i

atljam 07-28-2002 12:32 PM

yes now I have read up on that (mkfs)

what I did was add a line to the /etc/fstab

/dev/hdc2 /stage11i ext3 defaults 1 1
rebooted and now the root shows my partition in all its glory
I tried the mount command before but I see that you have a / in front of mount which I didn't try. any way, all is well and thanks for the quick response.

Dan


All times are GMT -5. The time now is 11:05 AM.