Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
"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 /.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.