At 10:39 PM 6/7/99 -0400, Dan Raneri wrote:
>I am fairly new to the Linux world (about 120 hours or so all in the
>last couple weeks) and soon ran out of space on my 1gig drive. I would
>like to add a second drive and move the /usr,/home directory structures
>to the new drive. I've checked the man pages, and a couple resource
>books, but haven't found anything specific to 'adding more dasd'.
Not as easy as MS, but not too hard. Attach the new drive and make sure the machine
boots. As a sanity check, boot the machine in DOS and make sure you can see the new
drive in DOS fdisk. You may need to fiddle with jumpers on the drive.
Reboot into linux and run the linux fdisk (or disk druid) to partition the drive as
you desire. Sounds like you want two partitions -- one for /home, one for /usr (or
did you mean /usr/local?). If you don't have much memory, then consider adding
another swap partition on the new drive at this time.
Run mkfs to make the filesystems on the new partitions. Type "info mkfs" (or "man
mkfs") for the options. You want to create ext2 partitions for your directories.
Depending on the size of the drive, mkfs can run for a while. You'll see a bunch of
numbers as it writes superblocks. (Don't worry if that doesn't make sense.)
Transfer the information by using tar. DO NOT USE "cp"!!!! Change to the root
directory, and type:
# tar cvzf /path/to/home.tgz home
# tar cvzf /path/to/usr.tgz usr
Leave the old directories in case something goes wrong. If you have a CD burner, burn
a copy of the tgz files.
Modify /etc/fstab to mount the new entries. ("info fstab" and "info mount") Just
comment out the previous lines, in case you need to go back to what you had before.
Reboot the system to see if the new filesystems get mounted. Yes, I know you can do
this without rebooting, but it's a more valid test. If all goes well, the new
filesystems will be mounted over the older ones, making the older ones invisible.
When you're satisfied that all has gone well, blow away the old ones.
I think that's all. Hope it helps. If I've missed something, let me know.
Travis
Travis Low - [EMAIL PROTECTED]
MindQ Publishing 11490 Commerce Park Drive #400 Reston VA 20191-1532 USA
http://www.mindq.com
+1 703 262 6616 (direct)
+1 703 716 0237 (fax)
"The sager is off the ping!" -- Tiernan Low
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]