UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Ubuntu Server 9.10 system up and running. The system is currently partitioned as /boot, /, /swap and the rest is LVM. The /boot and / is ext4. The customer wants /boot to be under / (for restore reasons). does anyone know of the best way to do this without relading or losing data?
In principle:
Assume that sda1 is mounted at /boot, and sda2 at /:
Code:
umount /dev/sda1
mkdir /mnt/oldboot
mount /dev/sda1 /mnt/oldboot
cd /mnt/olbboot
cp -R * /boot
remove the sda1 entry in /etc/fstab
edit /boot/grub/menu.lst (entries beginning with "/" must be changed to begin with "/boot/"
I'm pretty sure this can be done on a running system, but I have never done it. To be safe, do it (with appropriate changes) from a live CD.
Could you double check that the LVM isn't used as the root partition? Perhaps post your /etc/fstab file.
A logical partition in the LVM volume might be used for root (/), and if that is the case, you may not be able to boot after moving it to a directory in the LVM.
However, there is still something I don't understand. The system boots fine and /boot is mounting under /dev/sda2. Here's the strange part. /dev/sda1 is not being mounted, if I mount it and remove the old /boot directory, unmount it, and reboot, the system does not boot, and says grub: file not found. Apparently somewhere during boot it is still looking at /dev/sda1 for soemthing, even though it is not being mounted. Any ideas?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.