Help - Search - Members - Calendar
Full Version: Moving /boot From One Disk To Other
Linuxhelp > Support > Technical Support
Hello everyone,

I need to move /boot from a smaller (and very old drive) to a newer one.

[root@frodo root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdc1             4.8G  692M  3.9G  16% /
/dev/hda1             3.4G   42M  3.2G   2% /boot
none                  502M     0  502M   0% /dev/shm
/dev/hdc2              29G   16G   12G  57% /share
/dev/hdc3              29G  7.7G   20G  28% /share2
/dev/hdc5              29G   23G  4.4G  84% /share3
/dev/hdc6              21G  367M   20G   2% /var
/dev/hdb1             113G   67G   41G  63% /backuppc

I would like to move /boot from /dev/hda1 to /dev/hdc1 /
how can one do this safely (cause I'm doing it via ssh)

Robert B
mkdir temp
mount /dev/hdc1 /mnt/temp
cp -a /boot/* /mnt/temp/
umount /mnt/temp
umount /mnt/boot
mount /dev/hdc1 /mnt/boot

If you're using grub, go into the grub config file and change the references from your old boot device to your new one, may be something like:


That should be all there is to it. Double check the permissions on /boot afterwards, but the cp -a should preserve the permisssions and owners.

I do this often with my /home directory. Whenever i install linux with a seperate /home partition, i always wanna use that partition for something else, so i just do what i stated above, and it usually works fine.
Thanx Corey !
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.