LinHES Forums
http://forums.linhes.org/

Adding Second Hard Drive
http://forums.linhes.org/viewtopic.php?f=1&t=641
Page 1 of 2

Author:  Netsurge [ Mon Feb 02, 2004 7:17 pm ]
Post subject:  Adding Second Hard Drive

After many weeks of playing around I finally have my Myth box working with my Dishnetwork box and with the IR Blaster. I have also worked out all of the bugs that were haunting me.

For the above reasons I ask all of you experts this ...

Can I add a second hard to my current setup ? What I mean is this ..

I currently have a 40 gig drive in the box. I have also purchased a 120 gig drive, now I don't want to go through all the pain I had to with starting from scratch I'd just like to add the second hard drive to the system and move the /mythtv partition over to the 120 gig'r. Is this possible ? And if so how ?

Ns

Author:  micsaund [ Mon Feb 02, 2004 8:07 pm ]
Post subject: 

Yep, you can do that.

Basically, you'll just install the drive, partition (fdisk) and format it (with mkext2fs/makefs.ext2 or equivalent depending on whether you want ext2, ext3, xfs, etc.). Something like:
Quote:
fdisk /dev/hdb
<make your new huge partition>
mkfs.ext2 /dev/hdb1


You may also be interested in copying your current /mythtv/* onto the new drive. Just do this after the format and before the reboot. You'll have to mount the new drive temporarily (probably somewhere in /mnt). Something like this (of course, adjust the /dev/hdXX to your actual devices if different):
Quote:
mkdir /mnt/newdisk
mount -t ext2 /dev/hdb1 /mnt/newdisk
cp -p /mythtv/* /mnt/newdisk
umount /mnt/newdisk
rm -fr /mnt/newdisk


Then, edit your /etc/fstab and change the /mythtv partition from /dev/hdaX to /dev/hdbX (or whatever your real /dev/hd's are set to).

Then, when the system boots, it will automatically mount the new disk as /mythtv and everything should be rockin' :D

Mike

Author:  Netsurge [ Mon Feb 02, 2004 8:49 pm ]
Post subject: 

Awesome. Thanks. What would the best file system be ? I'm guessing ext3.

Author:  micsaund [ Mon Feb 02, 2004 8:56 pm ]
Post subject: 

I believe that ext3 is the default for KnoppMyth auto-install. I have heard many people praise XFS also.

I'd probably just go with ext3 unless you want to do a bit of digging and look into XFS.

Mike

Author:  Xsecrets [ Mon Feb 02, 2004 10:16 pm ]
Post subject: 

I would stick with ext3 since I think the devs have mentioned possibly taking xfs support out in future releases.

Author:  zardoz [ Wed Feb 04, 2004 3:45 am ]
Post subject: 

I love ReiserFS ! Why ?
because it is fast, and it is silent !
really I made the experience that reiser makes less noise the ext2/3. please dont ask me why :-)


z

Author:  frustrated [ Wed Feb 18, 2004 11:29 am ]
Post subject: 

I used lvm for my second drive, I edited the /etc/fstab file and now I'm afraid to reboot :?

The lvm how-to page describes how to create a script (/etc/init.d/lvm) and then perform update-rc.d lvm start 26 S . stop 82 1 . for a Debian installation. But the script /etc/init.d/lvm was allready there. So I guess I'm wondering if the script is allready started at boot time and if i should perform that update-rc.d command?

Author:  cesman [ Wed Feb 18, 2004 11:32 am ]
Post subject: 

No, LVM isn't started at boot. The only daemon that start are daemons needed for MythTV to run and Apache.

Author:  frustrated [ Wed Feb 18, 2004 11:37 am ]
Post subject: 

Do you recommend using the lvm script that was allready there, or creating it they way the specify in the lvm how-to?

Would the update-rc.d command cause the lvm script to start at boot?

Author:  cesman [ Wed Feb 18, 2004 11:47 am ]
Post subject: 

As I have not used LVM, I cannot recommend anything. Yes, doing update-rc.d will cause LVM to start on boot. update-rc.d lvm defaults

Author:  frustrated [ Wed Feb 18, 2004 12:38 pm ]
Post subject: 

IT WORKED!!! WOHOO. Thanks again.

Author:  cesman [ Wed Feb 18, 2004 1:32 pm ]
Post subject: 

Posting an LVM howto in the Usage/Howto section would be nice...

Author:  masonjd [ Wed Feb 18, 2004 1:47 pm ]
Post subject: 

Yes, a LVM howto would be great. If you've got the time frustrated please do so.

Author:  frustrated [ Wed Feb 18, 2004 8:20 pm ]
Post subject: 

No problem, just got back from class. I write one up tomorrow after work :) I was going to post everything I needed to do in R4V2 to get pvr 350 tv-out, and all the other bells and whistles to work.

Author:  weremichael [ Thu Nov 18, 2004 9:44 pm ]
Post subject: 

After searching the forum for second hard drive information I came upon this thread. I see that one can turn the new hard drive into the myth partition, but is it possible to keep the original myth partition and have the secondary drive as a second myth partition?

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/