>My hard disk is full - I have another i want to add
Depending on the size of the two hard disks, you may want to
consider splitting the filesystem rationally by moving /home
or /usr entirely to the new hard drive, rather than just
slopping extraneous files around like you would on a Windows
machine.
Quote:>Help needed:
>Either tell me what docs to read (i cant find any) or
"man commandname" will probably be all the docs you need.
"man -k keyword" is a good place to start if you don't know
what commands you need.
Quote:>How do I do it?
>- Fdisk ? - how do i look at at hdb1
>- format ? - how do i format hdb1
>- /etc/fstab ? - should i add a line before /proc
All of the above. First partition, then format, then copy
data to, then mount the new disk.
You want to use fdisk to break the new hard disk into
partitions, the size of which depends on whether you want
to use it for swap, home, usr, or whatever. If you'll post
and mail me hard drive sizes I can suggest a layout for the
new disk, or you can check
/usr/doc/HOWTO/mini/Multiple-Disks-Layout
for suggestions (probably way more info than you need, though).
Then, you want to format it as an extended 2 filesystem.
"mkfs -t ext2 /dev/hdb1" for example.
Then, you want to copy all your files in /usr, for example, to
the new partition.
"mount /dev/hdb1 /mnt/usr"
"cp -a /usr /mnt/usr"
(I think; someone please correct me if this misses something)
Then, you want to mount the new partition over /usr, by adding
the line:
"/dev/hdb1 /usr ext2 defaults 1 2"
to /etc/fstab
Finally, reboot or
"umount /dev/hdb1"
"mount /dev/hdb1 /usr"
Test things out, then
"umount /dev/hdb1"
"rm -Rf /usr"
"mount /dev/hdb1 /usr"
As always, when playing around with big deletes, etc., backups
are good to have just in case.
---
Roy Stogner