Quote:
Originally posted by akilhoffer
I have a 30 gig drive in my laptop running Fedora Core 2. Right now, I have lots of free space that is not allocated. The mount command results as follows:
/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/shm type tmpfs (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
Output of cat /etc/fstab:
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
Output of fdisk -l /dev/hda:
Disk /dev/hda: 30.0 GB, 30005821440 bytes
15 heads, 63 sectors/track, 62016 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13003 6143886 83 Linux
/dev/hda2 13004 62016 23158642+ 5 Extended
/dev/hda5 13004 15222 1048446 82 Linux swap
How can I create a new /home partition in the 'Extended' portion? Thanks in advance for your help!
-Tony
|
If you have cfdisk installed then
cfdisk /dev/hda then when the screen pops up use the up/down arrow keys to select the unused space on the drive then right/left arrow keys to move to the new option now use the enter key to select it. You may as well use an extended for the type of partition when it asks. Select the amount of space you want to use for your home and make it type 83 save and exit the program and reboot. Then once rebooted format with the file system of your choice and put a line in your /etc/fstab for the new partition (hda6) with /home as the mount point. you will want to copy all your current settings so either boot with linux single at the lilo prompt or once booted use
init 1 to go to single user mode then
mount /dev/hda6 /mnt and
cp -Rp /home/* /mnt/ to copy the files to the newly formattted partition. Once completed use
umount /mnt then
mount /dev/hda6 /home and
init 5 (IIRC the default runlevel for Fedora/Redhat) to get back to graphical user mode and login. You can delete the directories that would still be left in the old /home if you want after confirming the new working setup by going back to the init 1 and unmounting the new /home to prevent mistakes. All steps as root from a console login.