LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need to mount a hard drive with my pre existing file system and data (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-mount-a-hard-drive-with-my-pre-existing-file-system-and-data-797358/)

kizoin 03-23-2010 01:32 PM

Need to mount a hard drive with my pre existing file system and data
 
I had a drive that kept kernel panic'ing so my data center recommended using the spare hard drive to reinstall OS on, and import the data from the old drive. (they checked the hardware, it wasn't the hardware)

The new install is done, and I need to mount the old drive and get backups off it since my data center does not provide management whatsoever.

It's the same OS on both (Cent OS 5.4 32-bit)

I'm an advanced user on windows, but linux gets me. I can ssh in, do basic stuff like setup IP ranges and restart services. I normally navigate the box through SFTP so I have a gui.

WHM shows me my drives as such

Found Disk: hda
Found Disk: sdb

so I'm assuming SDB is my old drive and the drive I need to access. I attempted to follow instructions on

cyberciti.biz/faq/freebsd-adding-second-hard-disk-howto/

but I'm assuming FreeBSD would work differently and I wasn't totally sure what the labels of the file systems should be.

Basically I'm stuck and I need a linux guy to help me out!

thanks in advance everyone.

Ghostcore 03-23-2010 02:38 PM

First create a directory to mount the drive to:
Code:

mkdir -pv /mnt/disk/old-hdd
then mount the drive

Code:

mount -t <the file system on the disk> /dev/sdb /mnt/disk/old-hdd
replace the "<the file system on the disk>" with for example ext3 if its that type of file system.

refer to the mount man pages for valid file system switches

after which you should be able to view the drive in the directory you mounted it to


All times are GMT -5. The time now is 12:29 AM.