LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-06-2004, 10:25 AM   #1
Ohmn
LQ Newbie
 
Registered: Jun 2004
Posts: 28

Rep: Reputation: 15
Safe to resize root partition with PM8?


I have madk 10 official on a computer that only has a 12 gig hardrive. In the install it alloted just over 6gigs for /home and ~5 gigs for /root. I have only used 1.1 gigs of my /root but 5.2 gigs for /home. I want to take 2 gigs from /root and make /home 2 gigs bigger. This would still leave me a gig free for /root.

I have partition 8 (maybe even 9 I am at work now so dont have the disk in front of me), it is the version that re-sizes NTFS partitions. Is it safe to make this change? I dont understand why I need 3 gigs free for /root. Wouldn't 1 gig free be enough? Thanks
 
Old 07-07-2004, 02:45 AM   #2
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
You can try parted (although it cannot manage ntfs partitions).

I think PM8 should do the job.

You don't need 3 gb for /root! (...you are speaking of /root and not /, aren't you?) I think 200-300 mb should be more than enough, I'd suggest you follow this guide in order to make a well partitioned system (although partition sizes are not covered).

bye.

Last edited by Goala; 07-07-2004 at 03:07 AM.
 
Old 07-07-2004, 10:19 AM   #3
Ohmn
LQ Newbie
 
Registered: Jun 2004
Posts: 28

Original Poster
Rep: Reputation: 15
I just let the install program for mandrake 10 official make all the partition choices. It is not a dual boot windows/linux. It is just a linux machine.

I was a little confused myself at why /root would be given ~6 gigs. When I browsed in KDE gui and checked the size of the /root folder it reported 6 gigs. But, when I was using PM8 (just to see what was reported) it reported the following partitions:

* Linux ext3 6 gigs 1.2 gigs used 4.8 gigs free Primary Active
* Linux ext3 6.9 gigs 6.1 gigs used 900 meg free Primary none
Linux swap 500 megs Logical

Linux ext3 6.4 gigs 5.9 gigs used 900 meg free Logical

The last logical partiton that corresponds to /home which needs more space is part of the second primary partition. It seems the 6 gig partition that has 4.8 gigs free is the / partition ? So regardless of what the KDE GUI reported, the 6 gig partition that has so much space free must be /. But since I have 4.8 gigs free, even if I resize / down 2 gigs I wold still have 2.8 gigs free. Then I would add the 2 gigs to the last partition listed above the logical partition that corresponds to my /home. Would this be a good idea? I sure could use the space.

Last edited by Ohmn; 07-07-2004 at 10:25 AM.
 
Old 07-08-2004, 04:30 AM   #4
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
Hi again!.

why don't you merge the partitions?.... in other words, if you have only a partition, you will get rid of these troubles.... you will have free space for installing programs (into / partition), and you will have free space for whatever you want to do.... well you can get into others (serious) troubles if you fill up the files system, but if you are careful....

Respect to your question, you can enlarge/reduce the partitions. You have to consider that all the programs you install will go to the / partition, and temporary data, mail spool, almost everything will reside into that partition, so if you reduce this partition you will be limited somewhat too.

bye.
 
Old 07-08-2004, 09:43 AM   #5
Ohmn
LQ Newbie
 
Registered: Jun 2004
Posts: 28

Original Poster
Rep: Reputation: 15
Merging sounds like a good idea. But, wont that mess up my fstab entries? and thanks for the advice
 
Old 07-09-2004, 04:43 AM   #6
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
well, you would need to follow several steps:

0) make backup of important data !!!!

1) make a directory into your / partition called /home2 (for example).

2) copy the contents from /home to /home2. To do that you have two options:
a) cp -a /home/* /home2/
b) cd /home2 && tar cvf home.tar /home/* && tar xvf home.tar && rm home.tar

3) comment the /etc/fstab line with the /home entry (putting a # at the beginning of the line).

4) umount /home and rename /home to /home_bak (for example).

5) rename /home2 to /home

6) reboot and check that all is ok.

6) Empty your old /home partition and merge with / partition.


....That would be all..... more or less
 
Old 07-09-2004, 09:29 AM   #7
Ohmn
LQ Newbie
 
Registered: Jun 2004
Posts: 28

Original Poster
Rep: Reputation: 15
Woot thanks for the detailed answer
 
  


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
resize root partition after install Phyrexicaid SUSE / openSUSE 2 08-31-2005 03:38 AM
Safe to resize linux partition? Mackentack Linux - Newbie 4 05-02-2005 06:18 AM
Resize root partition via reinstall dubya Fedora 0 12-05-2004 01:00 PM
how to resize my /root partition Perfekt Linux - Software 4 12-23-2003 09:22 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM

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

All times are GMT -5. The time now is 06:50 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