Does deleting a partition below Ubuntu mess up grub?
Colin Law
clanlaw at gmail.com
Sun Oct 12 16:28:31 UTC 2014
On 12 October 2014 17:21, William Scott Lockwood III <scott at guppylog.com> wrote:
>
> On Sun, Oct 12, 2014 at 11:19 AM, William Scott Lockwood III
> <scott at guppylog.com> wrote:
>>
>> On Sun, Oct 12, 2014 at 11:15 AM, Colin Law <clanlaw at gmail.com> wrote:
>>>
>>> That confuses me, Robert says that grub cannot use UUIDs, so if it is
>>> expecting to boot from /dev/sda5 and sda5 is no longer the same
>>> partition then it will not boot.
>>
>>
>> https://bbs.archlinux.org/viewtopic.php?id=166217
>
>
> http://ubuntuforums.org/showthread.php?t=1373394
Well that suggests that I should not have a problem even if the
partition numbers change, as looking in /boot/grub.cfg I see the entry
menuentry 'Ubuntu, with Linux 3.2.0-70-generic' --class ubuntu --class
gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 6e742c8a-134f-4a8d-91eb-eee3f14d4836
linux /boot/vmlinuz-3.2.0-70-generic
root=UUID=6e742c8a-134f-4a8d-91eb-eee3f14d4836 ro quiet splash
$vt_handoff
initrd /boot/initrd.img-3.2.0-70-generic
}
And one of the posts in that thread says that set root='(hd0,msdos5)'
is only used if the uuid from the search line below it fails. If so
then it would not matter if partitions get re-numbered, so I can just
go ahead and delete sda3.
Colin
>
>
>
> --
> W. Scott Lockwood III
> AMC Tech (SPI) / GWB BoD / GWB2009033817
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list