LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-22-2005, 05:24 PM   #1
MichaelH23
LQ Newbie
 
Registered: Jul 2004
Distribution: fedora core, CentOS, OpenSuse
Posts: 4

Rep: Reputation: 0
Adding 2nd hard drive with data on it


Hi, I'm running CentOS 4.2 on hard drive a. I have hard drive b (formatted with ext3 from a previous fedora PC) and I want to add the 2nd hard drive to the system w/o wiping out the files on it. Last time I just added a line (just like hda, but hdb) to the /etc/fstab file and was subsequently unable to boot back into that OS, so I installed CentOS 4.2...

Anyway, I'm looking into an emergency boot floppy so I can change back any stupid changes I make to fstab so I can use it to change back w/o reinstalling a new OS :-)

The gui Hardware Browser can see the 2nd hard drive by the way as /dev/hdb. The system is set up with LVM.
 
Old 11-22-2005, 05:44 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I have hard drive b (formatted with ext3 from a previous fedora PC) and I want to add the 2nd hard drive to the system w/o wiping out the files on it."

Create an empty directory for each new partition that you want to mount. Add a line to /etc/fstab for each partition on the new hard drive and set the new directories as the mountpoints for the additional partitions. Make sure that the new entries in /etc/fstab are somewhere after the entry for /.

-----------------------------
Steve Stites
 
Old 11-23-2005, 01:10 AM   #3
MichaelH23
LQ Newbie
 
Registered: Jul 2004
Distribution: fedora core, CentOS, OpenSuse
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Steve, thanks for the reply. Here's what I did to fstab:
/dev/hdb/ /dvr ext3 defaults 1 1

I copied the settings for the line that has the /dev/VolGroup00/LogVol00 and put it after the /
directory. The /dvr means I think that I want the drive to show up as /dvr directory.

It didn't get mounted however, even tho it's visible. I'm familiar with Windows formatting and mounting of hard drives. Is the LVM getting in the way? I think I'm going to mess around with trying to manually mount it if I can.

Michael
 
Old 11-23-2005, 01:28 AM   #4
MichaelH23
LQ Newbie
 
Registered: Jul 2004
Distribution: fedora core, CentOS, OpenSuse
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Steve again! I got it this time. I was just playing with the mount command from the command line and figured out that I had to create a dir as a mount point before I could mount the device (because running the command gave me the error that the mount point doesn't exist--so I googled around til I got a page that told me some details and I got it). So I just created /dvr, then ran the mount command, and voila! access.

Then I rebooted and it comes up now automagically. Thanks! Michael.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2nd Hard Drive snutz411 Linux - Hardware 3 03-24-2004 12:52 PM
2nd hard drive naflan Debian 4 02-22-2004 02:55 PM
2nd hard drive neo.sarcastic Linux - Hardware 4 09-22-2003 11:22 PM
2nd Hard Drive Tad Linux - Hardware 6 05-22-2003 12:47 PM
2nd hard drive jarrodatt Linux - Hardware 1 11-12-2002 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration