Adding New Hard Drive as Secondary Master
I recently set up a linux box to act as my PVR. I have the OS installed on a 5 gig hard drive (primary Master). I divided this drive into a boot partition, swap partition, and a partition for everything else. The CD ROM set up as the slave on the primary channel. I also had a 20gig drive installed the Secondary Channel as the Master, and set it to have a boot point of /myth (which would hold mythtv related stuff.
After I got everything running (OS installed, myth installed, etc) I noticed that my 20 gig drive was only recognizing 10 gigs worth of space. I don't really know why, but I suspect I made a mistake when I created the partition and only set it to 10 gigs. Either way, I thought I would fix it by removing the partition on the drive, and reformat it (to ext3) to include the entire drive. To accomplish this, I (1) Went into /etc/fstab and commented out the /dev/dhc drive so it would not mount at boot time, resulting in this file... ============================================== # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 #LABEL=/myth /myth ext3 defaults 1 1 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 LABEL=a/lang/Object swap swap defaults 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto, managed 0 0 /dev/hdb /media/cdrom auto pamconsole,exec,noauto,managed 0 0 =============================================== (2) Rebooted 3) fdisk 'd and reformatted and now for the question..... I figured I could just go back to fstab and just uncomment /dev/hdc/ so that the drive gets mounted, but when I do this the system complains and won't load. How do I add my drive back into the system??? Thanks in advance.... |
e2label /dev/hdc1 myth
Cheers, Tink |
Well, I tried adding the line as you suggested and it didn't work.
============================================ # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 e2label /dev/hdc1 myth #LABEL=/myth /myth ext3 defaults 1 2 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 LABEL=a/lang/Object swap swap defaults 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0 /dev/hdb /media/cdrom2 auto pamconsole,exec,noauto,managed 0 0 ============================================ When it loads, it cannot mount the drive. When I try this: mount /dev/hdc1 I get: mount: unknown filesystem type 'myth' Any idea what I should try next? Thanks. |
That line doesn't go into fstab. It's being run from
a shell as root. I assume that you didn't use any GUI tools to re-create the partition? If you didn't it won't have a label, which is what you're referencing from the fstab. The alternative would be to just change the line from LABEL=/myth /myth ext3 defaults 1 1 to /dev/hdc /myth ext3 defaults 1 1 All of that of course assumes that when you said you formatted it you used ext3 as the file-system as well. Cheers, Tink |
Makes sense...sorry, newbie at work!
I will try it tonight.... Thanks again. |
All times are GMT -5. The time now is 11:36 PM. |