LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2006, 09:17 PM   #1
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Rep: Reputation: 15
changing the /home size of partition


right now i have it set at 600 mbs

i want to change it to alot more can this be done , im using manrake 9.1 thx
 
Old 08-05-2006, 09:38 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Check a bootable CD containing a tool called qtparted. http://freshmeat.net/projects/systemrescuecd/

Read up on parted at their homepage and make sure you can make partition changes based on the type of filesystem you have the partition as. Some partitions cannot move their start point because of filesystem used. Example of this is reiserfs filesystem.

One note you can not modify a mounted partition. It must be unmounted before it can be resized.

Brian1
 
Old 08-05-2006, 09:43 PM   #3
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,349

Rep: Reputation: 225Reputation: 225Reputation: 225
Quote:
Originally Posted by adamf4i
right now i have it set at 600 mbs

i want to change it to alot more can this be done , im using manrake 9.1 thx
Could you post your partition table, use something like:
#fdisk -l /dev/hda for IDE drives, or
#fdisk -l /dev/sda for SCSI drives.

Last edited by jens; 08-05-2006 at 09:46 PM.
 
Old 08-05-2006, 09:47 PM   #4
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Original Poster
Rep: Reputation: 15
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 6.1G 1.8G 4.0G 30% /
/dev/hda6 595M 79M 517M 14% /home
[root@localhost adamf4i]#
 
Old 08-05-2006, 10:04 PM   #5
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,349

Rep: Reputation: 225Reputation: 225Reputation: 225
Quote:
Originally Posted by adamf4i
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 6.1G 1.8G 4.0G 30% /
/dev/hda6 595M 79M 517M 14% /home
[root@localhost adamf4i]#
Is that the output you get from fdisk -l ??
It should normally give you the number of the filesystem(s) you're using as well (I don't really remember if this was different in Slack9.1).
It's probably either EXT3/2 or Reiserfs.
If you're not familiar with fdisk, you're probably better of using that "live CD" Brian1 pointed out.
I'm no Parted(the core app it uses) fan myself though, but it's much more user friendly (but also less stable and easier to screw things up).

Last edited by jens; 08-05-2006 at 10:07 PM.
 
Old 08-05-2006, 10:07 PM   #6
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Original Poster
Rep: Reputation: 15
Disk /dev/ide/host0/bus0/target0/lun0/disc: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 796 6393838+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 797 1031 1887637+ 5 Extended
/dev/ide/host0/bus0/target0/lun0/part5 797 954 1269103+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part6 955 1031 618471 83 Linux
 
Old 08-05-2006, 11:40 PM   #7
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,349

Rep: Reputation: 225Reputation: 225Reputation: 225
Quote:
Originally Posted by adamf4i
Disk /dev/ide/host0/bus0/target0/lun0/disc: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 796 6393838+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 797 1031 1887637+ 5 Extended
/dev/ide/host0/bus0/target0/lun0/part5 797 954 1269103+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part6 955 1031 618471 83 Linux
That still doesn't seem to fill the 60GB.
Notice that your extra space needs be their (this usually means deleting existing partitions to create more space).

The main tools you'll need are resize2fs and fdisk.
While resize2fs can resize ext2/3 (ext3 needs to be remounted as ext2) it can't actually resize the partition they're on. You'll need fdisk to create a bigger partition for it. I'm not aware of an easy solution for this.
An other option would be creating a 2nd home partition and link them. Whatever you do, be sure to back up everything.
 
Old 08-06-2006, 12:01 AM   #8
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,117

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
I wouldn't mess with resizing partitions. I'd just drop it and recreate it larger. You only have 79Mb of /home used. You can easily copy that small amount of data elsewhere or burn it to a CD. There's plenty of available room on your first partition for only 79Mb of data.

Copy /home somewhere else, unmount /home, drop the current /home partition (/dev/hda6), recreate a new larger partition on hda6, mount the new partition as /home, and then copy the data back. You shouldn't need to mess with you fstab since /home will still be on hda6. No reboots or anything like that either. You can do this all from within your current Mandrake. No real need to find and install parted. fdisk or cfdisk would be just fine for this simple task. You've already got fdisk installed, maybe even cfdisk (cfdisk is just a curses-based fdisk program - somewhat more GUI-like than command line fdisk).
 
Old 08-06-2006, 12:01 AM   #9
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Original Poster
Rep: Reputation: 15
ya how can i just create a 2nd home parttition this is just so i can download a diff , distro and install it so how can this be done walk through please
 
Old 08-06-2006, 12:20 AM   #10
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Original Poster
Rep: Reputation: 15
i dont know how to do any of that , anu walk me through each step of wht to execute at cmd
 
Old 08-06-2006, 01:40 AM   #11
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Original Poster
Rep: Reputation: 15
need help dont know the commands to do this please walktrough
 
Old 08-06-2006, 02:14 AM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
It looks like you created a very small extended parition (the container of /dev/hda5 and /dev/hda6) and you have a lot of space empty beyond this.

If so, you can create a new home partition at the end of the drive. This is one case where you might need to log in as root, so that you can umount the /home partition. The Mandrake partitioner should make working on your partitions easier.

You could open up konsole and enter the command:
umount /home
mv /home /home-old

Now you could run the partitioner program and create a new /home partition. Be sure to make it an extended partition. This will increase the size of the container /dev/hda2. You might consider changing the mount point of your old /dev/hda6 to /tmp. Make sure that you don't format /dev/hda6. When this is done, copy your home directory from what is now the /tmp/ partition to the new /home partition.

Last edited by jschiwal; 08-07-2006 at 05:02 AM. Reason: fixed typo
 
Old 08-06-2006, 05:41 AM   #13
adamf4i
Member
 
Registered: Jun 2006
Location: kansas city,mo
Distribution: kubuntu
Posts: 95

Original Poster
Rep: Reputation: 15
where is the partition program
 
Old 08-06-2006, 07:05 PM   #14
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
The partition program is loacted in /sbin and is called fdisk if this is what you are referring to.

From what I can see from the provided info that you are not fully using the harddrive. I would do as others have said and copy the partition info of /home to a temp location. Here is what I would do.

1. Login as root from the start. No su or any other way.
2. Make a directory in the root of the drive. ' mkdir /backup '
3. Copy the contents of /home to /backup. ' cp -r /home /backup '
4. Verify the contents of /home and /backup/home are the same. The following will wipe the contents of /home.
5. Unmount /home ' umount /dev/hda6
6. Turn off swap ' swapoff '
7. Fdisk the drive ' fdisk /dev/hda '
8. Delete /dev/hda5 and /dev/hda6 logical paritions. d 6, d 5
9. Delete /dev/hda4 Extented parition. d 4
10. Create new Extended partition using the maximum amount. n
11. Create /dev/hda5 and /dev/hda6 partitions to the sizes you want.
/dev/hda5 Swap problably 128meg would be fine.
/dev/hda6 to maximum if you wish. Or leave room for more partitions for later.
12. Set the ID type of each partition. 83 for the /dev/hda6 aka /home and 82 to /dev/hda5 aka swap
13. Write and exit.
14. Format /dev/hda6 ' mkfs -t ext2 /dev/hda6 '. You might print out your /etc/fstab and see what format the partition is set to to mount.
14. For ext3 change ext2 to ext3 and same applies for reiserfs.
15. Format swap drive. ' mkswap /dev/hda5
16 Turn on Swap ' swapon '
17. Mount /dev/hda6 aka /home. ' mount /dev/hda6 /home '
18. Copy data backup to new /home ' cp -r /backup/home /home '
19. Verify contents of new /home.
20. Done. Keep /backup/home for a while to make a reboot works fine.

This is the manually command way. If it was me once you have delete the /dev/hda4-6 I would exit and save. Reboot with the Rescue CD I mentioned earlier and then use the qtparted tools from it. Might as well enlarge /dev/hda1 before making any new partitions.

Brian1
 
Old 08-07-2006, 05:06 AM   #15
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Mandrake has a graphical partitioner program. You can find it by starting in the MCC. I think that it is called /sbin/diskdrake but I'm not using Mandrake any more and my memory might be failing me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Changing partition size agentchange SUSE / openSUSE 4 06-06-2006 06:44 AM
how to increase the size of home partition srnerkar1 Linux - Software 1 12-05-2005 06:28 AM
Changing size of Partition in Linux? wardialer Linux - Newbie 4 04-22-2005 06:51 AM
Changing /home partition disinformation Linux - General 5 01-29-2004 06:57 AM
Reasonable size for a /home partition? eurleif Linux - General 9 12-26-2003 04:44 PM


All times are GMT -5. The time now is 08:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration