It depends.
First, a technical distinction -- you don't "format ... the hd" -- you
create partitions on a hard disk, then "format" (create filesystems on) the
partitions.
Once you have formatted partitions, you mount them somewhere ... a mount
point is simply an empty directory, and you mount on it with the "mount"
command. "man mount" will give you the details, but a couple of examples
will show you how it is done:
mount /dev/hdb1 /mount/extra_drive
^ ^
| |
| |
the device the mount point
with the
filesystem
More familiar (probably) examples of the same procedure are:
mount /dev/cdrom /cdrom
mount /dev/fd0 /mnt/floppy
For still more examples, look at the file /etc/fstab, which contains the
filesystems that will be mounted as part of the boot/init sequence. You'll
want to add a line here for your new filesystem once you've figured out
where yoyu want to use it ...
... and that's the tricky part. You probably want to move part of your
existing filesystem to the new filesystem. Wihout knowing something about
how your system is currently set up, I can't suggest any specifics here, but
the parts of the overall filesystem that people commonly put on separate
filesystems are:
/home
/var
/usr
/tmp
/opt (not all Linux variants use /opt)
Another possibility is some specialized subset of stuff, for example
/home/www if you have a big Web site
/home/mp3 if you have a big mp3 collection
I can only try to give you an idea of the possibilities, since the actual
decision depends entirely on the details of your system -- what is on it and
how you use it.
At 12:23 AM 3/11/00 +0800, Alexander A. Basa wrote:
>I am out of disk space and I am planning to add another hd. After
>formating the hd to ext2fs what must I do?
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA [EMAIL PROTECTED]
----------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs