View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Hard Drive question
PostPosted: Thu Dec 07, 2006 8:25 pm 
Offline
Joined: Mon Feb 28, 2005 8:02 am
Posts: 14
Location: Halifax, Nova Scotia, Canada
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 08, 2006 8:09 am 
Offline
Joined: Fri Aug 26, 2005 9:54 pm
Posts: 617
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 08, 2006 10:21 am 
Offline
Joined: Mon Feb 28, 2005 8:02 am
Posts: 14
Location: Halifax, Nova Scotia, Canada
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 09, 2006 5:11 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu