What is the best way to move /boot to /?
Hi Linux gurus,
When I initially installed RHEL6, I had /boot on its own partition. Now I want to move it to another partition, which is occupied by /. I want to have /boot under the / directory. What is the best way to do this... I want to avoid installing it all over again. That would be a shame. Thanks! |
Figure out first how to reconfigure your boot loader, whatever that is. Then, maybe something like this as root?
Quote:
Then reconfigure your boot loader and /etc/fstab. The line for /boot is no longer needed, unless you're mounting it somewhere else. |
just "moving" data in /boot partition to a folfer on /
will still leave you a /boot partition that you are not using and is taking up one of the primary partitions Also if / is a LVM and NOT ext3 or if /is ext4 you will NOT be able to move GRUB-legacy on RHEL6.4 The legacy grub needs ext2 or ext3 and on a primary partition |
Quote:
The issue with ext4 was that the increased inode size wasn't handled in legacy grub. However this also applied to any ext3 filesystem created post the roll-out of ext4 support in e2fsprogs. The major distros patched grub to accommodated this. There has never been requirement for a primary partition - that only applies to Windows loaders, although some (old) BIOS also demand a boot flag be set on a primary partition. But that is a different issue again. |
Thanks for the input everyone.
The / is not a LVM it is ext4, so is /boot. So the question is, how to reconfigure the bootloader. I'm running my system off a IBM Z machine, I believe the bootloader is /etc/zipl.conf... it doesn't really make any reference to what partition the /boot is on, so think there wouldn't be any need for a modification: Code:
[defaultboot] Code:
# |
All times are GMT -5. The time now is 03:19 AM. |