You are not logged in.
Hi
I've been trying recently to free up and use the other half of my disk, which had been taken up by a dormant ubuntu partition. I formatted this partition (/dev/sda5) and then copied my data from arch on /dev/sda6 into it. I'm now trying to boot into it, delete sda6, and extend sda5 to access my full disk from one OS. However, I am having a significant number of issues adding grub menu entries in /etc/grub.d/40_custom.
This implementation shows no error messages, but instead shows a black screen for a second before going back to the grub menu.
menuentry "Arch2" {
insmod ext4 #NOTE: i tried xfs here as well
search --set=root --label arch2 --hint hd0, msdos5
configfile /boot/grub/grub.cfg
}I've also tried with this, which says "/boot/vmlinuz-linux not found" (it definitely exists there)
i tried /vmlinuz-linux too which had the same result.
menuentry "Arch2" {
search --set=root --fs-uuid 1f7bdb09-1a34-41dc-9629-dfa69263875c #sda5's fs uuid
linux /boot/vmlinuz-linux root=UUID=1f7bdb09-1a34-41dc-9629-dfa69263875c rw splash
initrd /boot/initramfs-linux.img
}I've also tried setting root to hd0, msdos1 (my boot partition)
Thank you in advance for any help
Offline
Why not just delete sda5 and use gparted to expand sda6 into the free space?
Offline
Yes, the procedure seems somewhat... roundabout.
But if you have a separate /boot and sda5/6 is the root partition, you should just change the root= kernel parameter and not GRUB's $root.
Offline
Hi
you should just change the root= kernel parameter and not GRUB's $root.
I don't know what you mean by this - I have tried both
set root=(hd0, msdos5) #or msdos1and
search --set=root=UUID=uuid hereWhy not just delete sda5 and use gparted to expand sda6 into the free space?
I thought extending a partition backwards was impossible?
Thank you
Offline
You can extend a partition to the left, it's just risky. Backup your data first in case something goes wrong.
Offline
I thought extending a partition backwards was impossible?
It is impossible to do in one operation. That's why gparted moves it left first and then extends it right,
Offline
Thank you I will try gparted
(I will mark as [SOLVED] if it works)
Offline