LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-01-2004, 06:18 PM   #1
akilhoffer
LQ Newbie
 
Registered: Aug 2004
Location: North Carolina
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
Creating new partition with my free space


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
 
Old 09-01-2004, 07:43 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: Creating new partition with my free space

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition used/free space elbriga Linux - General 2 09-24-2004 12:36 PM
Can't free space on root partition AThomsen Fedora 1 06-18-2004 02:58 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM
Partition Free Space? Gerardoj Linux - General 16 06-02-2003 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration