LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-28-2010, 10:59 PM   #1
saskwatch
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Rep: Reputation: 10
Smile enlarging a primary partition


When I set up my current Debian desktop system ( currently squeeze ) in 2007 I allocated only 8.4G to my / partition. Now I find it is getting too crowded with only about 580M free space (worked around CD & DVD burning by creating a /tmp folder in my /home/username folder). My current plan for fixing this is to use gparted running from a live-cd. I will first delete my swap partition and my /home partition then use gparted to enlarge my / partition to 20G. Next I will recreate & format my swap and /home partitions and restore the contents of my /home partition from backup. I will still have lots of room to spare in my /home partition. My system has no extended partitions. My hd is 250G total.
I know this will change the UUIDs of the two new partitions but am not sure if it
will change the UUID of the expanded / partition. I expect it will. My next step
will be to edit my /etc/fstab and put in the new UUIDs which I will get by running
blkid /dev/sdb. My backup drive is an ide drive, /dev/sda.
My question is am I likely to run into boot problems with grub2? Should I chroot
into my / partition and run update-grub before I reboot or wait to see if it will
reboot first?
 
Old 10-29-2010, 01:00 AM   #2
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 564

Rep: Reputation: 131Reputation: 131
How about cleaning apt's cache first and free some space?
8.5GB is almost the sum of the / on 5-6 debian installations I have made for me and friends (/home in seperate partition as always)!
 
Old 10-29-2010, 06:19 AM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
While backing up is a good idea there is no need to delete your /home partition. Just resize the bugger.

The draw back to this is that the resize does take a good chunk of time.

I know it is popular to have cramped / partitions but I like the suckers to in the 20 to 35Gb range. I have a lot of stuff added (apps, themes, etc) and it adds up. I also cull my cache every now and then but like to have it there with everything handy for use in other installs or just reference. I think the buggers run faster if they have enough room to breath too.
 
Old 10-29-2010, 06:58 AM   #4
impert
Member
 
Registered: Feb 2009
Posts: 282

Rep: Reputation: 54
Quote:
/home in seperate partition as always)!
Or a data partition with all your personal stuff, and nothing in your home folder except a bunch of symbolic links to the data partition.
Either way, getting all your data out of the root partition is a good idea.
 
  


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
openSolaris hosed the partition table. Why? Changing primary to secondary partition? JZL240I-U Solaris / OpenSolaris 9 10-16-2008 10:48 AM
Enlarging Slackware partition yuchankit Slackware 6 04-22-2008 11:28 PM
ReiserFS: Enlarging sandwiched partition with no data loss Lagg Linux - Newbie 7 09-19-2005 02:59 AM
enlarging /var partition freebies Linux - General 1 05-05-2005 10:36 AM
Enlarging existing partition wrangler Linux - Newbie 1 03-14-2005 08:26 AM

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

All times are GMT -5. The time now is 10:36 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
Open Source Consulting | Domain Registration