LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-09-2008, 09:07 AM   #1
skylimit
Member
 
Registered: Nov 2006
Location: England
Distribution: Slackware, Ubuntu feisty
Posts: 41

Rep: Reputation: 15
resizing /boot partition in order to upgrade to Gusty


Hi all,

I've been looking to upgrade from Feisty to Gusty lately but I've constantly had the problem of my /boot partition being small. Basically, during the upgrade process, I get a message saying that my /boot partition is small then the upgrade process is aborted. I was wondering if there's a way around this. My partiton looks like so:
----
Filesystem Size Used Avail Use% Mounted on

/dev/hda2 97G 4.3G 88G 5% /
varrun 220M 240K 220M 1% /var/run
varlock 220M 8.0K 220M 1% /var/lock
procbususb 220M 108K 220M 1% /proc/bus/usb
udev 220M 108K 220M 1% /dev
devshm 220M 0 220M 0% /dev/shm
lrm 220M 34M 187M 16% /lib/modules/2.6.20-16-386/volatile
/dev/mapper/hda1 96M 79M 13M 87% /boot
/dev/mapper/hda4 87G 9.9G 72G 13% /home
----

I have backed up all my data should smth go wrong during the process. Also I dont think my partitioning is the best as you can see above. Is there a standard way of creating partitions in linux(Ubuntu)?

Any help appreciated.

PS. I fear that deleting stuff from /boot could lead to my system not being able to boot up since grub loads the boot-image from /boot. Please correct me if my thinking is wrong.

Last edited by skylimit; 03-09-2008 at 09:09 AM.
 
Old 03-09-2008, 09:15 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
96MiB (did I read that right?!) is certainly very small. You clearly wanted the max for your home partition. It would give a clearer picture if you "sudo fdisk -l".

You need to create a whole new partition for boot. You can move the existing files to the new partition, edit fstab and menu.lst to reflect the change, or just do a clean install.

In the clean install, you can use the expert mode to protect your /home partition from being overwritten if you prefer.
 
Old 03-10-2008, 03:00 PM   #3
skylimit
Member
 
Registered: Nov 2006
Location: England
Distribution: Slackware, Ubuntu feisty
Posts: 41

Original Poster
Rep: Reputation: 15
Hi thanks for the reply I might as well do a clean install in expert mode so i dont wipe my /home partiion.

Thanks again.
 
Old 03-10-2008, 11:44 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Something was niggling me last night and this am I got it... I associate /dev/mapper devices with encrypted or LVM volumes... but how did you get /boot into LVM (never mind encrypted) or is this something else?

If LVM, you are in luck, and can resize the volumes.
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
 
Old 03-11-2008, 12:04 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Yeah grunty was an odd-ball that way. I had to resize up to 100 Meg even though there should have been plenty of free space.

Seems you might have a few old kernels in there. If you don't want to clean up by hand use synaptic, and look for "linux-image". Click on each of the old ones, and select "Mark for complete removal". Apply the changes, and they're gone.
 
  


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
boot problem & Evolution after joining Gusty against AD tanveer Linux - Networking 2 01-13-2008 02:22 AM
PAM config problems with upgrade to gusty rick.2g Ubuntu 3 12-26-2007 12:41 PM
Upgrade to Ubuntu Gusty - Wireless card no longer detected! ljs662_removed Ubuntu 1 10-04-2007 04:11 AM
Resizing a boot partition to free more space harlikoen Linux - Hardware 4 05-06-2007 11:00 AM
Linux does not boot after partition resizing stairynight Linux - Software 17 08-19-2004 12:08 PM

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

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