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??
-
yes. but if you have to ask it's going to be trouble. i wouldn't.– RobotHumansOct 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 POct 25, 2011 at 15:40
-
the boot partition is 2 gb and it is completely empty.. it just contains the boot files– AshuOct 25, 2011 at 16:09
Add a comment
|
1 Answer
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.
-
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)– AshuOct 25, 2011 at 16:31 -
-
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...– AshuOct 25, 2011 at 19:45
-
the contents of the folder are in this image (i51.tinypic.com/atoxf9.png)– AshuOct 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 ).– psusiOct 26, 2011 at 1:53