0

In the /boot/grub/grub.conf file, how would I change the path name of where the kernel boots from if the boot file is located somewhere outside of /boot?

For example, I would want to load the boot kernel from

/home/root/kernel

How would I specify that?

The grub.conf file looks like this right now

title CentOS (2.6.32-358.6.1.el6.i686)

kernel /vmlinuz-2.6.32-358.6.1.el6.i686
initrd /initramfs-2.6.32-358.6.1.el6.i686.img

I tried /../home/root/kernel but it didn't work. Would I have to change the partition?

0

Ain't gonna work as /home partition is being mounted in init stage. Kernel need to be loaded from /boot as at time of loading kernel no other partition is mounted. Unless you specify root device. For example:

menuentry 'Linux 3.10.17 (sde) kernel-3.10.17-g' {
        root=hd0,1
        linux /boot/kernel-3.10.17-g domdadm dolvm root=/dev/md3
        initrd /boot/initrd-3.10.17-g
}

menuentry 'Linux 3.10.17 (sdf) kernel-3.10.17-g' {
        root=hd1,1
        linux /boot/kernel-3.10.17-g domdadm dolvm root=/dev/md3 
        initrd /boot/initrd-3.10.17-g
}
  • There must be way because it's in my homework... – epikish Feb 8 '17 at 0:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.