Bug#590231: improperly nested partition?
gi1242+debianbugs at gmail.com
gi1242+debianbugs at gmail.com
Sat Oct 30 01:59:30 UTC 2010
On Sat, Oct 23, 2010 at 03:43:53PM -0400, gi1242+debianbugs at gmail.com wrote:
>> Perhaps grub-probe thinks that my /dev/sdb1 is an Extended partition,
>> rather than swap?
>
> I got the same set of warnings, and had the same issue (i.e. a partition
> table residing in the mbr of my swap). I just recreated my swap and all
> was fine:
>
> swapoff -a
> mkswap -f /dev/sda2 # WARNING: Make sure the device name is correct.
> # -f means "force". Wrong name = lost data.
>
> You have to use the "-f" flag, otherwise your old boot sector won't be
> erased. On successful completion, you should get no warning message, and
> mkswap should have printed a UUID. Edit your /etc/fstab and replace the
> UUID of the old swap partition with the new one. Then run
>
> swapon -a
>
> and you're good to go.
Oops. If you suspend to disk, then you need to update the swap UUID in
/etc/initramfs-tools/conf.d/resume
as well. Then run
update-initramfs -k all -u
update-grub # Probably not necessary
and reboot.
GI
--
File not found. Should I fake it? (Y/N)
More information about the Pkg-grub-devel
mailing list