On 15 Aug, Sandy wrote:
I'm not well versed with the Linux file hierarchy and could use some advice.
I have a new 4G HD that I want to add to my P-133, which presently has a single 2G HD. Is it possible with the new drive to add 'space' to the existing partitions (ie: /usr, /home, etc.)? Or do I start from scratch and reconfigure based upon the combined size?
Here is an example of moving your /home partition to a new (IDE) drive. I am writing from memory, so take it with a grain of salt :-) 1. Install the second disk as a slave drive on the primary IDE controller. Reboot Linux, check to make sure the second drive is recognized when the kernel boots. 2. Run fdisk on the new drive, and create how ever many partitions you want: /sbin/fdisk /dev/hdb 3. Make filesystems on the new drive. Assuming you made one partition, /sbin/mke2fs /dev/hdb1 Read the man page for mk2fs first. 4. Drive is now ready for use. Mount it on the filesystem: mount -t ext2 /dev/hdb1 /mnt 5. Copy all files under /home onto the new drive. There are several ways to do this, tar, cp -R, etc. Here is a crude (untested!) example: cd /home tar -cvf /mnt/newhome.tar * <== can't remember if this gets the hidden files... cd /mnt tar -xvf newhome.tar rm newhome.tar There are better ways to do this - this is just off the top of my head :-) 6. Edit /etc/fstab, and mount the new partition at boot. You will add a line something like /dev/hdb1 /home ext2 defaults 1 1 7. Move your old /home out of the way: cd / mv /home /home-old 8. umount the new partition: umount /mnt 9. Reboot, check that the new /home looks Ok, the rm -rf /home-old -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Robert S. Mallozzi 256-544-0887 Mail Code ES 84 Work: <A HREF="http://crazyhorse.msfc.nasa.gov/"><A HREF="http://crazyhorse.msfc.nasa.gov/</A">http://crazyhorse.msfc.nasa.gov/</A</A>> Marshall Space Flight Center Play: <A HREF="http://cspar.uah.edu/~mallozzir/"><A HREF="http://cspar.uah.edu/~mallozzir/</A">http://cspar.uah.edu/~mallozzir/</A</A>> Huntsville, AL 35812 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e