1

I have Ubuntu 10.10. it is installed in one partition and the boot partition is a separate one. can i relocate the boot partition into the ubuntu partition and if yes how??

3
  • yes. but if you have to ask it's going to be trouble. i wouldn't. Oct 25, 2011 at 13:25
  • psusi's answer shows you how to boot from the ubuntu partition instead ... do you also want to reclaim the space used by the boot partition? (If it's less than 1GB I would not bother)
    – Joe P
    Oct 25, 2011 at 15:40
  • the boot partition is 2 gb and it is completely empty.. it just contains the boot files
    – Ashu
    Oct 25, 2011 at 16:09

1 Answer 1

3

Simple; copy the files there to the root partition, unmount the /boot partition, remove the mount directive for the /boot partition, and reinstall grub:

sudo -s
mkdir /newboot
cp -ax /boot /newboot
umount /boot
rmdir /boot
mv /newboot /boot
nano /etc/fstab
dpkg-reconfigure grub-pc

When you are editing /etc/fstab, locate the line for /boot and remove it.

6
  • im getting this error root@ubuntu:~# cp -ax /boot /newboot root@ubuntu:~# umount /boot umount: /boot: not mounted root@ubuntu:~# rmdir /boot rmdir: failed to remove '/boot': Directory not empty (sorry i donot know how to enter them on different lines)
    – Ashu
    Oct 25, 2011 at 16:31
  • @Ashu, you don't appear to have a separate /boot partition...
    – psusi
    Oct 25, 2011 at 18:36
  • But a folder called boot is located on an another partition... once i had formatted that partition and my ubuntu stopped showing up in during booting process...
    – Ashu
    Oct 25, 2011 at 19:45
  • the contents of the folder are in this image (i51.tinypic.com/atoxf9.png)
    – Ashu
    Oct 25, 2011 at 19:50
  • @Ashu, that appears to be your Windows 7 partition with the windows boot loader in its /boot directory. A /boot partition is a partition that holds your /boot directory ( the one in your root ).
    – psusi
    Oct 26, 2011 at 1:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .