How to resize boot partition

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite
1












Here's my problem. I'd like to reinstall Ubuntu. My laptop is an old HP Compaq nx7400. The optical drive went wrong, it can't read discs. I would use a USB port instead but the laptop won't boot from it. (It won't boot even if I set USB the first in the boot order in BIOS settings. Also on start up after pressing F9 to choose boot device USB won't appear in the list, only optical disk, netbook disk and network if I enable it.)



I wanted to resize the boot partiton to make space for the installation but I couldn't do that because it seems that the whole HDD is the boot partiton so it can't be unmounted using Gparted.



My partition system is the following:



Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e6661

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 486318079 243158016 83 Linux
/dev/sda2 486320126 488396799 1038337 5 Extended
/dev/sda5 486320128 488396799 1038336 82 Linux swap / Solaris


So how can I make a new partition to be able to install a "new" Ubuntu and get rid of the old one. Or any better solution for this problem?
I hope it's not a catch 22...







share|improve this question






















  • What's the problem with upgrading?
    – Braiam
    Oct 15 '13 at 13:09










  • possible duplicate of How do I free up more space in /boot?
    – Panther
    Oct 15 '13 at 17:06










  • This is NOT a duplicate of how to free up more space in /boot.
    – psusi
    Oct 17 '13 at 3:22














up vote
0
down vote

favorite
1












Here's my problem. I'd like to reinstall Ubuntu. My laptop is an old HP Compaq nx7400. The optical drive went wrong, it can't read discs. I would use a USB port instead but the laptop won't boot from it. (It won't boot even if I set USB the first in the boot order in BIOS settings. Also on start up after pressing F9 to choose boot device USB won't appear in the list, only optical disk, netbook disk and network if I enable it.)



I wanted to resize the boot partiton to make space for the installation but I couldn't do that because it seems that the whole HDD is the boot partiton so it can't be unmounted using Gparted.



My partition system is the following:



Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e6661

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 486318079 243158016 83 Linux
/dev/sda2 486320126 488396799 1038337 5 Extended
/dev/sda5 486320128 488396799 1038336 82 Linux swap / Solaris


So how can I make a new partition to be able to install a "new" Ubuntu and get rid of the old one. Or any better solution for this problem?
I hope it's not a catch 22...







share|improve this question






















  • What's the problem with upgrading?
    – Braiam
    Oct 15 '13 at 13:09










  • possible duplicate of How do I free up more space in /boot?
    – Panther
    Oct 15 '13 at 17:06










  • This is NOT a duplicate of how to free up more space in /boot.
    – psusi
    Oct 17 '13 at 3:22












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





Here's my problem. I'd like to reinstall Ubuntu. My laptop is an old HP Compaq nx7400. The optical drive went wrong, it can't read discs. I would use a USB port instead but the laptop won't boot from it. (It won't boot even if I set USB the first in the boot order in BIOS settings. Also on start up after pressing F9 to choose boot device USB won't appear in the list, only optical disk, netbook disk and network if I enable it.)



I wanted to resize the boot partiton to make space for the installation but I couldn't do that because it seems that the whole HDD is the boot partiton so it can't be unmounted using Gparted.



My partition system is the following:



Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e6661

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 486318079 243158016 83 Linux
/dev/sda2 486320126 488396799 1038337 5 Extended
/dev/sda5 486320128 488396799 1038336 82 Linux swap / Solaris


So how can I make a new partition to be able to install a "new" Ubuntu and get rid of the old one. Or any better solution for this problem?
I hope it's not a catch 22...







share|improve this question














Here's my problem. I'd like to reinstall Ubuntu. My laptop is an old HP Compaq nx7400. The optical drive went wrong, it can't read discs. I would use a USB port instead but the laptop won't boot from it. (It won't boot even if I set USB the first in the boot order in BIOS settings. Also on start up after pressing F9 to choose boot device USB won't appear in the list, only optical disk, netbook disk and network if I enable it.)



I wanted to resize the boot partiton to make space for the installation but I couldn't do that because it seems that the whole HDD is the boot partiton so it can't be unmounted using Gparted.



My partition system is the following:



Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e6661

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 486318079 243158016 83 Linux
/dev/sda2 486320126 488396799 1038337 5 Extended
/dev/sda5 486320128 488396799 1038336 82 Linux swap / Solaris


So how can I make a new partition to be able to install a "new" Ubuntu and get rid of the old one. Or any better solution for this problem?
I hope it's not a catch 22...









share|improve this question













share|improve this question




share|improve this question








edited Oct 15 '13 at 12:53









Braiam

49.8k20130213




49.8k20130213










asked Oct 15 '13 at 12:21









Attila

11




11











  • What's the problem with upgrading?
    – Braiam
    Oct 15 '13 at 13:09










  • possible duplicate of How do I free up more space in /boot?
    – Panther
    Oct 15 '13 at 17:06










  • This is NOT a duplicate of how to free up more space in /boot.
    – psusi
    Oct 17 '13 at 3:22
















  • What's the problem with upgrading?
    – Braiam
    Oct 15 '13 at 13:09










  • possible duplicate of How do I free up more space in /boot?
    – Panther
    Oct 15 '13 at 17:06










  • This is NOT a duplicate of how to free up more space in /boot.
    – psusi
    Oct 17 '13 at 3:22















What's the problem with upgrading?
– Braiam
Oct 15 '13 at 13:09




What's the problem with upgrading?
– Braiam
Oct 15 '13 at 13:09












possible duplicate of How do I free up more space in /boot?
– Panther
Oct 15 '13 at 17:06




possible duplicate of How do I free up more space in /boot?
– Panther
Oct 15 '13 at 17:06












This is NOT a duplicate of how to free up more space in /boot.
– psusi
Oct 17 '13 at 3:22




This is NOT a duplicate of how to free up more space in /boot.
– psusi
Oct 17 '13 at 3:22










2 Answers
2






active

oldest

votes

















up vote
4
down vote













You shouldn't have to repartition the disk just to reinstall Ubuntu. It seems like you just have one partition for Ubuntu, and one Swap partition in an extended partition, which is a standard partitioning scheme for an Ubuntu installation.



You could boot the Ubuntu iso from the Grub menu. When you boot from the iso file, you will be able to press a key upon boot to get to the Live boot menu. Add the toram kernel option.



You will be able to choose whether you want to save programs or Home folder data or just erase everything and reinstall.



And importantly, make reliable backup before executing the procedure! Though nothing should go wrong if you ensure that you know what you're doing.






share|improve this answer






















  • Unfortunately OP has no working optical drive and can't boot from USB. In this situation I don't think there is a way, that doesn't require to copy $HOME to an external drive.
    – David Foerster
    Oct 15 '13 at 12:45










  • Thank you David! Could you elaborate on the steps?
    – Attila
    Oct 15 '13 at 12:52






  • 1




    Follow the linked instructions for booting the iso image off the hard drive. Add the "toram" option to the kernel arguments and it will load the whole system into ram so the hd can be unmounted.
    – psusi
    Oct 15 '13 at 13:51






  • 1




    Suggest backing up $HOME to an external drive first, though. After you boot with your current OS, can you plug in a USB drive and see it mount? If so, then copy the contents of $HOME and everything below it, for safety's sake.
    – K7AAY
    Oct 15 '13 at 16:07

















up vote
0
down vote













There are 2 parts to this:



Open a terminal and run ls /boot If boot is full of old kernels you can go remove happy on them, I recommend keeping the original, the latest and the one before latest. the lowest number is normally the shipping kernel, the highest number will be the latest.



To grow boot you first need to shrink another partition so you have free space. I would suggest using the gparted tool on the live cd to do this. First decrease the size of/ or /home depending on your setup. Then increase the size of boot.






share|improve this answer
















  • 1




    The question is how to reduce the size of the root partition, and he said he can't boot from cd.
    – psusi
    Oct 15 '13 at 13:49










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f359377%2fhow-to-resize-boot-partition%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote













You shouldn't have to repartition the disk just to reinstall Ubuntu. It seems like you just have one partition for Ubuntu, and one Swap partition in an extended partition, which is a standard partitioning scheme for an Ubuntu installation.



You could boot the Ubuntu iso from the Grub menu. When you boot from the iso file, you will be able to press a key upon boot to get to the Live boot menu. Add the toram kernel option.



You will be able to choose whether you want to save programs or Home folder data or just erase everything and reinstall.



And importantly, make reliable backup before executing the procedure! Though nothing should go wrong if you ensure that you know what you're doing.






share|improve this answer






















  • Unfortunately OP has no working optical drive and can't boot from USB. In this situation I don't think there is a way, that doesn't require to copy $HOME to an external drive.
    – David Foerster
    Oct 15 '13 at 12:45










  • Thank you David! Could you elaborate on the steps?
    – Attila
    Oct 15 '13 at 12:52






  • 1




    Follow the linked instructions for booting the iso image off the hard drive. Add the "toram" option to the kernel arguments and it will load the whole system into ram so the hd can be unmounted.
    – psusi
    Oct 15 '13 at 13:51






  • 1




    Suggest backing up $HOME to an external drive first, though. After you boot with your current OS, can you plug in a USB drive and see it mount? If so, then copy the contents of $HOME and everything below it, for safety's sake.
    – K7AAY
    Oct 15 '13 at 16:07














up vote
4
down vote













You shouldn't have to repartition the disk just to reinstall Ubuntu. It seems like you just have one partition for Ubuntu, and one Swap partition in an extended partition, which is a standard partitioning scheme for an Ubuntu installation.



You could boot the Ubuntu iso from the Grub menu. When you boot from the iso file, you will be able to press a key upon boot to get to the Live boot menu. Add the toram kernel option.



You will be able to choose whether you want to save programs or Home folder data or just erase everything and reinstall.



And importantly, make reliable backup before executing the procedure! Though nothing should go wrong if you ensure that you know what you're doing.






share|improve this answer






















  • Unfortunately OP has no working optical drive and can't boot from USB. In this situation I don't think there is a way, that doesn't require to copy $HOME to an external drive.
    – David Foerster
    Oct 15 '13 at 12:45










  • Thank you David! Could you elaborate on the steps?
    – Attila
    Oct 15 '13 at 12:52






  • 1




    Follow the linked instructions for booting the iso image off the hard drive. Add the "toram" option to the kernel arguments and it will load the whole system into ram so the hd can be unmounted.
    – psusi
    Oct 15 '13 at 13:51






  • 1




    Suggest backing up $HOME to an external drive first, though. After you boot with your current OS, can you plug in a USB drive and see it mount? If so, then copy the contents of $HOME and everything below it, for safety's sake.
    – K7AAY
    Oct 15 '13 at 16:07












up vote
4
down vote










up vote
4
down vote









You shouldn't have to repartition the disk just to reinstall Ubuntu. It seems like you just have one partition for Ubuntu, and one Swap partition in an extended partition, which is a standard partitioning scheme for an Ubuntu installation.



You could boot the Ubuntu iso from the Grub menu. When you boot from the iso file, you will be able to press a key upon boot to get to the Live boot menu. Add the toram kernel option.



You will be able to choose whether you want to save programs or Home folder data or just erase everything and reinstall.



And importantly, make reliable backup before executing the procedure! Though nothing should go wrong if you ensure that you know what you're doing.






share|improve this answer














You shouldn't have to repartition the disk just to reinstall Ubuntu. It seems like you just have one partition for Ubuntu, and one Swap partition in an extended partition, which is a standard partitioning scheme for an Ubuntu installation.



You could boot the Ubuntu iso from the Grub menu. When you boot from the iso file, you will be able to press a key upon boot to get to the Live boot menu. Add the toram kernel option.



You will be able to choose whether you want to save programs or Home folder data or just erase everything and reinstall.



And importantly, make reliable backup before executing the procedure! Though nothing should go wrong if you ensure that you know what you're doing.







share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 15 '13 at 17:30

























answered Oct 15 '13 at 12:43









Richard

5,93383364




5,93383364











  • Unfortunately OP has no working optical drive and can't boot from USB. In this situation I don't think there is a way, that doesn't require to copy $HOME to an external drive.
    – David Foerster
    Oct 15 '13 at 12:45










  • Thank you David! Could you elaborate on the steps?
    – Attila
    Oct 15 '13 at 12:52






  • 1




    Follow the linked instructions for booting the iso image off the hard drive. Add the "toram" option to the kernel arguments and it will load the whole system into ram so the hd can be unmounted.
    – psusi
    Oct 15 '13 at 13:51






  • 1




    Suggest backing up $HOME to an external drive first, though. After you boot with your current OS, can you plug in a USB drive and see it mount? If so, then copy the contents of $HOME and everything below it, for safety's sake.
    – K7AAY
    Oct 15 '13 at 16:07
















  • Unfortunately OP has no working optical drive and can't boot from USB. In this situation I don't think there is a way, that doesn't require to copy $HOME to an external drive.
    – David Foerster
    Oct 15 '13 at 12:45










  • Thank you David! Could you elaborate on the steps?
    – Attila
    Oct 15 '13 at 12:52






  • 1




    Follow the linked instructions for booting the iso image off the hard drive. Add the "toram" option to the kernel arguments and it will load the whole system into ram so the hd can be unmounted.
    – psusi
    Oct 15 '13 at 13:51






  • 1




    Suggest backing up $HOME to an external drive first, though. After you boot with your current OS, can you plug in a USB drive and see it mount? If so, then copy the contents of $HOME and everything below it, for safety's sake.
    – K7AAY
    Oct 15 '13 at 16:07















Unfortunately OP has no working optical drive and can't boot from USB. In this situation I don't think there is a way, that doesn't require to copy $HOME to an external drive.
– David Foerster
Oct 15 '13 at 12:45




Unfortunately OP has no working optical drive and can't boot from USB. In this situation I don't think there is a way, that doesn't require to copy $HOME to an external drive.
– David Foerster
Oct 15 '13 at 12:45












Thank you David! Could you elaborate on the steps?
– Attila
Oct 15 '13 at 12:52




Thank you David! Could you elaborate on the steps?
– Attila
Oct 15 '13 at 12:52




1




1




Follow the linked instructions for booting the iso image off the hard drive. Add the "toram" option to the kernel arguments and it will load the whole system into ram so the hd can be unmounted.
– psusi
Oct 15 '13 at 13:51




Follow the linked instructions for booting the iso image off the hard drive. Add the "toram" option to the kernel arguments and it will load the whole system into ram so the hd can be unmounted.
– psusi
Oct 15 '13 at 13:51




1




1




Suggest backing up $HOME to an external drive first, though. After you boot with your current OS, can you plug in a USB drive and see it mount? If so, then copy the contents of $HOME and everything below it, for safety's sake.
– K7AAY
Oct 15 '13 at 16:07




Suggest backing up $HOME to an external drive first, though. After you boot with your current OS, can you plug in a USB drive and see it mount? If so, then copy the contents of $HOME and everything below it, for safety's sake.
– K7AAY
Oct 15 '13 at 16:07












up vote
0
down vote













There are 2 parts to this:



Open a terminal and run ls /boot If boot is full of old kernels you can go remove happy on them, I recommend keeping the original, the latest and the one before latest. the lowest number is normally the shipping kernel, the highest number will be the latest.



To grow boot you first need to shrink another partition so you have free space. I would suggest using the gparted tool on the live cd to do this. First decrease the size of/ or /home depending on your setup. Then increase the size of boot.






share|improve this answer
















  • 1




    The question is how to reduce the size of the root partition, and he said he can't boot from cd.
    – psusi
    Oct 15 '13 at 13:49














up vote
0
down vote













There are 2 parts to this:



Open a terminal and run ls /boot If boot is full of old kernels you can go remove happy on them, I recommend keeping the original, the latest and the one before latest. the lowest number is normally the shipping kernel, the highest number will be the latest.



To grow boot you first need to shrink another partition so you have free space. I would suggest using the gparted tool on the live cd to do this. First decrease the size of/ or /home depending on your setup. Then increase the size of boot.






share|improve this answer
















  • 1




    The question is how to reduce the size of the root partition, and he said he can't boot from cd.
    – psusi
    Oct 15 '13 at 13:49












up vote
0
down vote










up vote
0
down vote









There are 2 parts to this:



Open a terminal and run ls /boot If boot is full of old kernels you can go remove happy on them, I recommend keeping the original, the latest and the one before latest. the lowest number is normally the shipping kernel, the highest number will be the latest.



To grow boot you first need to shrink another partition so you have free space. I would suggest using the gparted tool on the live cd to do this. First decrease the size of/ or /home depending on your setup. Then increase the size of boot.






share|improve this answer












There are 2 parts to this:



Open a terminal and run ls /boot If boot is full of old kernels you can go remove happy on them, I recommend keeping the original, the latest and the one before latest. the lowest number is normally the shipping kernel, the highest number will be the latest.



To grow boot you first need to shrink another partition so you have free space. I would suggest using the gparted tool on the live cd to do this. First decrease the size of/ or /home depending on your setup. Then increase the size of boot.







share|improve this answer












share|improve this answer



share|improve this answer










answered Oct 15 '13 at 13:07









agnostic

1




1







  • 1




    The question is how to reduce the size of the root partition, and he said he can't boot from cd.
    – psusi
    Oct 15 '13 at 13:49












  • 1




    The question is how to reduce the size of the root partition, and he said he can't boot from cd.
    – psusi
    Oct 15 '13 at 13:49







1




1




The question is how to reduce the size of the root partition, and he said he can't boot from cd.
– psusi
Oct 15 '13 at 13:49




The question is how to reduce the size of the root partition, and he said he can't boot from cd.
– psusi
Oct 15 '13 at 13:49












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f359377%2fhow-to-resize-boot-partition%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491