On Thu, 2004-05-13 at 19:03, Raymond Norton wrote:

> > If you could muster up a partition strictly for /home it would make
> > things easier.

> Sure would. Is it as simple as adding another drive, mounting it at /home,
> and moving everything from the  old /home to the new one?

Yes it is. There are a couple of basic things you need to understand but
it is that simple. I'm not sure where you are at but you need to know
how to install the drive in your box, how the drive devices are named,
how to format the drive, and how to make your drive mount where you want
it with /etc/fstab.

Understand that you usually have 2 IDE channels to install a drive to,
Primary and secondary. each channel can have two drives, a master and a
slave. 

each drive and each partition on the drive has a device files associated
with it in linux.

/dev/hda = Primary Master IDE drive 
/dev/hdb = Primary Slave IDE drive 
/dev/hdc = Secondary Master IDE drive 
/dev/hdd = Secondary Slave IDE drive

likewise each partition has its own device name. 

/dev/hdc0 =  1st partition on the Secondary Master IDE drive 
/dev/hdc2 =  3rd partition on the Secondary Master IDE drive 

I use fdisk to format drives,

as an example if you have the drive installed Secondary Master IDE drive
 
# fdisk /dev/hdc

add a partition then format it. let me know if you need help with fdisk.

then mount the drive to a temporary location and copy /home to it.

# mount /dev/hdc0 /mnt
# cp -av /home/* /mnt/
# umount /mnt

then tell /etc/fstab where you want the drive to mount at boot time by
adding this line. (man fstab or write me for more help) (Assuming you
formated it as ext3)

/dev/hdc0              /home                 ext3    defaults        1 2

# reboot

once you are sure everything is working you can recover some space on
your / partition by removing the old files on / partition ...

# umount /home
# df                 ## to make sure /home partition is unmounted so you
can remove the /home that is on /

Before you run the next command you might want to comment out this line
in /root/.bashrc
alias rm='rm -i'

# rm -r /home/*

*DISCLAIMER* :-)
Make sure you understand clearly exactly what you are doing each step of
the way. It is very easy to trash a system with fdisk and "rm -r *"
commands.

good luck,

- Tom

 



-- 
Tom Penney <blots at visi.com>


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list