Le 21/10/2018 à 01:11, [email protected] a écrit :
On Sat, 20 Oct 2018, Pascal Hambourg wrote:
No swap indeed. But there are two unformatted partitions (or with
unknown format). Intriguing. Can you check with
file -s /dev/sda2 /dev/sdb5
wipefs /dev/sda2
wipefs /dev/sdb5
root@debian:/etc/initramfs-tools/conf.d# cat resume
RESUME=UUID=b66a9345-332d-4abf-a081-351ab08ed7f9
So there once was a swap with this UUID. But it cannot be found any
more. Maybe /etc/fstab still contains information about it.
You have basically two options :
- remove the swap references in resume and fstab and run
update-initramfs -u
- or recreate a swap with the same UUID in sdb5
Hi Pascal,
I am nervous about running wipefs. Especially since its man page does
not match is operation. plain wipefs doesn't show anything while the
manpage says it should.
Dont worry about wipefs : without -o or -a, it does not erase anything
and just looks for metadata signatures. Sometimes it is better than file
at finding signatures.
file -s thinks the swap partitions are data?
Meaning that it found nothing.
fdisk thinks there are swap partitions.
fdisk displays the partition type identifier recorded in the partition
table, which does not have to match the actual partition contents. But
then we can assume they are swap partitions which should be formatted as
swap.
Device Boot Start End Sectors Size Id Type
/dev/sdb5 19840338 30700214 10859877 5.2G 82 Linux swap / Solaris
(...)
Device Boot Start End Sectors Size Id Type
/dev/sda2 838862848 843057151 4194304 2G 82 Linux swap / Solaris
As I suggested, if you want to use sdb5 as swap you can format it with
the UUID present in /etc/initramfs-tools/conf.d/resume :
mkswap --uuid b66a9345-332d-4abf-a081-351ab08ed7f9 /dev/sdb5
Did you check if /etc/fstab contains any references to swap partitions ?
Also, I assume that sda2 was used by the system installed on sda and
maybe this system also misses its swap partition ?
_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub