Den 20. juni 2013 08:17, skrev 黃健毅:
Hi there, I have a warning/error popping up during boot which says
Debian can't find one or more of my logical volumes - the one in
question is swap_1. This is actually correct, because I removed it and
created a new swap LV (named swaparea) - with the relevant updates in
fstab, so that I could resize my PV and make space to create a dual
boot system.
Whilst the new LV swap works fine, each time I boot up my laptop, or
resume it from hibernate, I see this warning/error about swap_1 (which
no longer exists.)
Resuming also doesn't work properly now (state doesn't get resumed
correctly), but not a huge problem right now.
Does anyone know why swap_1 is still being referenced, and where that
reference is? And how I can remove this reference to stop the error?
When I posted this question on LinuxQuestions, one of the comments
came back saying that the kernel may be hardcoded to look for "swap_1"
- but I find that a bit hard to believe, IMO.
Your problem sounds similar to one I had when I installed Debian a while
ago. I reused the LVM layout from a previous install of Fedora for
testing. I checked /etc/fstab and also tried rebuilding the initramfs as
Ralf Mardorf suggested, but the error message remained.
I grepped /etc for "fedora_swap" and found it in the file
/etc/initramfs-tools/conf.d/resume
I changed this file so that it read
"RESUME=/dev/mapper/debian-swap"
and NOT
"RESUME=/dev/mapper/fedora-swap"
You should obviously change from "swap_1" to "swaparea" in your case.
I cannot remember if I had to rebuild the initramfs after making this
change, so but you might want to try to do so if the problem remains.
My install is on a desktop computer that is powered on 24/7, so I have
not tried resume.
Good luck!