LinHES Forums http://forum.linhes.org/ |
|
Hard Drive question http://forum.linhes.org/viewtopic.php?f=11&t=12889 |
Page 1 of 1 |
Author: | Tengu [ Thu Dec 07, 2006 8:25 pm ] |
Post subject: | Hard Drive question |
Hello everyone, Firstly Hats off to all the people who work on KnoppMyth. I wanted to put a 15 gig hd into my myth system to hold all system files and use my 250 gig for the Myth directory. My question is this, Is it possible to move everything over to the 15 gig?I believe that would be my HDA and HDB partitions. I have no problem looking for the information on how to do it, but wanted to know first is it possible? if it's a waste of time then I'd rather know then spend days searching and trying different things. The other option is starting from scratch, but everything is working so "if it ain't broke, don't fix it" Thank you in advance. |
Author: | ryanpatterson [ Fri Dec 08, 2006 8:09 am ] |
Post subject: | |
Give us details about your setup. You already have a box setup or this is a new install? You have PATA harddrives or SATA harddrives? Assuming you are using PATA drives. The two drives will be /dev/hda and /dev/hdb. The partitions on the drives will be like /dev/hda1, /dev/hda2, /dev/hda3, etc. the file that tells linux where to mount all the different partitions is /etc/fstab. If this is a new install you just need to do a manual install and setup one big partition on /dev/hdb and mount it under /myth. If you need to save your current recordings it is more complicated. |
Author: | Tengu [ Fri Dec 08, 2006 10:21 am ] |
Post subject: | |
Thanks for your reply. I already have a box. with 1 250gig PATA hard drive. I would like to install the 15 gig PATA hard drive and have all "System" files run off of that and then use the 250 gig for recordings and such. I believe that where I currently have only one hard drive, it would be set up as /dev/hda1, /dev/hda2, /dev/hda3. I want to move /dev/had1 and /dev/hda2 to the new one, and then increase /dev/hda3 to the full 250gig's. Is that possible? Thanks again for everyone's help |
Author: | mac [ Sat Dec 09, 2006 5:11 am ] |
Post subject: | |
Its fairly painless. Frist pop your 15G drive into the system on the secondary channel or as a slave on the primary channel For the sake of these instructions, we can say it shows up as hdb. In an xterm as root run "fdisk -l /dev/hdb" just to make sure that your going mucking with the correct drive. You don't want to repartition the wrong one. Repartition the drive with a swap partition and one for the new /. Format the new partitions and copy the data over from /. Assume swap is /dev/hdb1 and / is /dev/hdb2. mkswap /dev/hdb1 mkfs.ext3 /dev/hdb2 mount /dev/hdb2 /mnt cp -axv / /mnt/ When the copy is finished: Setup lilo on your new drive by opening /mnt/etc/lilo.conf with nano and running lilo. Fix up /mnt/etc/fstab to reflect the new mount locations. Swap the 15 Gig to be new primary master and move the /myth drive to its new channel and reboot. If the system fails to boot you probably messed something up with the lilo config or in editing of the fstab. Just swap the drives back to there orginal locations and fix things up after mounting the new drive and swap the drives back and give it another shot.. After your get things up and going on the new drive fix up the partitions on the orginal dirve wiith the gparted livecd: http://gparted.sourceforge.net/livecd.php Don't forget edit your /etc/fstab to reflect the new partition layout. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |