LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-15-2008, 05:23 PM   #1
riccisit
Member
 
Registered: Jun 2004
Posts: 59

Rep: Reputation: 15
a too small root partition:(


Hi

I had a dual boot installation XP/Opensuse: this allowed me to test Opensuse while having XP. Today I got rid of xp and formatted its partition.

Therefore now I have a root partition of 8gb, a /home/myusername of 13 gb and 50 gb as ext3 (former windows ntfs). I didn't want to format everything to keep my data and linux software installations.

But now I have a problem: the root partition is almost full, as I installed more software. Now, I got this situation: about 60 gb empty and a tiny root partition full. And I need to be root while using Linux on this PC.

How to solve this situation? Is it possible that I have to stop installing software when the hd is practically empty???

Thanks
Fabio
 
Old 01-15-2008, 05:40 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Well, first of all, congrats on getting rid of the Evil One...
Depending on your partition layout, it may be possible for you to boot from gparted live CD and shrink your 60G partition and extend your / partition using the freed space. Back up first, of course.
 
Old 01-15-2008, 05:42 PM   #3
KnightHawk
Member
 
Registered: Aug 2005
Posts: 128

Rep: Reputation: 15
What you can do, is free up a partition perhaps your former windows partition... convert it into an LVM volume, then create 4 virtual partitions for

/
/usr
/home
/var


Copy all the files from your existing / /usr /home /var partitons over to the new LVM partitions. Then set your system up to boot using the LVM's.

At this point, you can take your existing partions and whatever and nuke them, and then add them also into the LVM. Use it then to shuffle data between the partitions however you like.

I'd recommend google'ing "LVM" (Logical Volume Manager) As there are quite a few steps that would be involved, plus having an understanding of what your doing would be helpfull.
 
Old 01-15-2008, 06:35 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by riccisit View Post
But now I have a problem: the root partition is almost full, as I installed more software. Now, I got this situation: about 60 gb empty and a tiny root partition full. And I need to be root while using Linux on this PC.

How to solve this situation?
Stop this nonsense working as root, move your stuff from /root to your user's home directory and you'll be OK. Root partition 8 GB (hope you meant gigabytes with that gb not gram-bits?) should be sufficient.

Edit: Need help setting up your PC for normal user? Ask your questions, this is the purpose of these forums.

Last edited by Emerson; 01-15-2008 at 06:46 PM.
 
Old 01-15-2008, 06:50 PM   #5
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
There's another thing for you to try, short of going LVM, though it's not easy and also involves a live CD. You can make /usr and /var separate partitions on your hard drive. You'd need to boot from a live CD, create two additional partitions and carefully move the stuff from your /usr and /var directories there, preserving permissions and ownership. Then, edit your /etc/fstab to reflect the change. It's dangerous, but it can be done.
 
Old 01-15-2008, 07:45 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by Emerson View Post
Stop this nonsense working as root, move your stuff from /root to your user's home directory and you'll be OK. Root partition 8 GB (hope you meant gigabytes with that gb not gram-bits?) should be sufficient.

Edit: Need help setting up your PC for normal user? Ask your questions, this is the purpose of these forums.
The OP isn't working normally as the root user. You are confusing the root partition (/) with the /root directory. The root (/) partition is full and the ext3 filesystem reserves a small percentage of filespace that is only accessible by the root user. The OP is running as the root user because he has run out of space and can't work as a normal user until the situation is fixed.
riccisit:
The /usr hierarchy is what will grow as you install more packages. Since the XP partition is larger then either the root (/) partition or /home, I would recommend moving the contents of /home to the XP partition, and the contents of /usr to the old /home partition. This will allow a few more GB of room for /usr and free up more space in the (/) root partition so you can start using the distro as a normal user again.

If the new partition and the old /home partition are adjacent, you might consider resizing the old home partition (new /usr) so that it is 20GB. That may be a more reasonable size for /usr if you are someone who likes to try out a lot of packages. Make sure you edit /etc/fstab to reflect your changes. Operating off of a live distro would be the easiest way to proceed because none of the partitions would be "live".
 
Old 01-15-2008, 07:55 PM   #7
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Rep: Reputation: 15
Hmm. That is pretty ambiguous. Good catch jschiwal. Reading the original post, I can see it from either angle.

That said, I've had good success with gparted.
 
Old 01-16-2008, 02:06 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I just learned something about using gparted from another post. A user using SuSE had automounting of pendrives stop working. It turned out that the problem was that he used gparted previously. It wrote a rule in /usr/share/hal/fdi/policy which stopped automounting. However it didn't remove the rule after the program finished. I don't know which version of gparted this was.
 
Old 01-16-2008, 04:44 AM   #9
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
If one uses the gparted live CD, which is the only option in this case, since we need to extend the root partition, it's highly unlikely that it would write something into HAL rules...
 
Old 01-16-2008, 07:31 AM   #10
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Rep: Reputation: 15
Yeah. You definitely need the Live CD. Which was the method I have had good success with.
 
  


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
root partition too small! help! hueofwind Linux - General 13 11-09-2005 11:26 PM
Partition too small, and now stuck..HELP blakehampton Linux - Newbie 1 01-19-2004 04:21 AM
Partition scheme (two small hd) joseph_1970 Slackware 2 11-24-2003 03:19 PM
Suse 8.2 and small partition! Please help! craig20two Linux - Newbie 3 09-03-2003 03:42 PM
What distro goes best on a small partition? Nooooobie Linux - Distributions 3 09-29-2001 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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