Can /boot be manually moved to a different partition?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Level 1
Level 1
Posts: 12
Joined: Wed Aug 20, 2008 5:55 am

Can /boot be manually moved to a different partition?

Postby zami » Wed Oct 29, 2008 1:00 pm

If I want to move /boot to its own partition, can I just copy the files from my current /boot? How do I copy them?

I guess I need to update fstab, menu.lst and the grub. Anything else?

What about other folders?

User avatar
Level 5
Level 5
Posts: 795
Joined: Thu Nov 01, 2007 11:12 pm
Location: Saskatchewan, Canada

Re: Can /boot be manually moved to a different partition?

Postby Acid_1 » Fri Oct 31, 2008 2:42 am

hmm. I going to take a stab at this, so don't get mad at me if it messes your system bad. Lets try this.

First type

Code: Select all

ls /boot

and it should look like

Code: Select all

adam@diddy-kong ~ $ ls /boot
abi-2.6.24-16-generic         initrd.img-2.6.24-16-generic.bak
config-2.6.24-16-generic      memtest86+.bin
initrd.img-2.6.24-16-generic  vmlinuz-2.6.24-16-generic

or something along those lines. Then type:

Code: Select all

sudo su root
mkdir /home/zami/boot.cpy
cp /boot /home/zami/boot.cpy
rmdir -R /boot

That will back up your /boot files. Assuming that you already have a working partition that you want to use to boot off of (make sure it's clean)

Code: Select all

sudo gedit /etc/fstab

and add the following line to it ((x) is the partition):

Code: Select all

/dev/sda(x) /boot ext3    defaults        0       2

then exit gedit. Now in the terminal type

Code: Select all

sudo su root
mount /dev/sda(x)
cp /home/zami/boot.cpy /boot
rmdir -R /home/zami/boot.cpy

The type in

Code: Select all

ls /boot

and it should appear as it did the first time. If not, then you just need to make it so that the files are in /boot not /boot/otherfolder.

Sorry for the possibly confusing suggestion. Hope this helps.
Website: Forkwhilefork

Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 14 guests