LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2005, 11:12 PM   #1
derek8128
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Rep: Reputation: 0
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....
 
Old 10-23-2005, 12:19 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
e2label /dev/hdc1 myth


Cheers,
Tink
 
Old 10-23-2005, 11:07 PM   #3
derek8128
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 10-24-2005, 12:02 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 10-24-2005, 09:46 AM   #5
derek8128
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Makes sense...sorry, newbie at work!

I will try it tonight....

Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I mount my secondary hard drive on boot? Scorlibrian Linux - Hardware 1 02-26-2005 12:36 PM
formatting a secondary hard drive Bronzzy Linux - Newbie 2 03-27-2004 12:02 PM
linux can't see my hard disk on secondary master csvke Linux - Hardware 6 03-19-2004 07:29 PM
Mounting a hard-drive on secondary ide linuxjuggler Linux - Newbie 1 12-16-2003 01:15 AM
URGENT!!! adding ide(hdb-secondary hard-disk) to redhat 7.1 gigya Linux - Software 3 05-02-2002 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration