/etc/fstab:(commented out the earlier swap partition)---------------------# /etc/fstab: static file system information.## Use 'blkid' to print the universally unique identifier for a# device; this may be used with UUID= as a more robust way to name devices# that works even if disks are added and removed. See fstab(5).## <file system> <mount point> <type> <options> <dump> <pass>proc /proc proc defaults 0 0/dev/mapper/HU-root / ext3 errors=remount-ro 0 1# /boot was on /dev/sda5 during installationUUID=50ed87f2-905e-4780-b867-a8e0831e3db8 /boot ext3 defaults 0 2/dev/mapper/HU-home /home ext3 defaults,user_xattr 0 2

bcl wrote:The thing is that I found this page ooking for solutions for myself, so when I found a solution, I told him.

The person made four posts in one month two years ago. What are the chances that person ever looks at this board, let alone is keeping track of the thread? Especially considering there were no replies two years ago. It is nice to be helpful, but ...

Linux refugee having fled the merciless onslaught of systemd and the Buntard horde to a haven of sanity.

Randicus wrote:The person made four posts in one month two years ago. What are the chances that person ever looks at this board, let alone is keeping track of the thread? Especially considering there were no replies two years ago. It is nice to be helpful, but ...

And now when someone performs a web search on "swapon failed" and are led to this forum, they will find a potential solution to the problem. In my opinion, that is a good thing (as a general rule, I blacklist sites that are filled with lots of questions/bug reports, but offer no solutions).

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian Kernighan

bcl wrote: I think I've had a similar problem. I solved it by changing the /etc/grub.d/10_linux file as indicated in the FAQ of http://wiki.debian.org/Grub

All the way at the bottom of the page edit: grub2 is depreciated since 2009 iircso it is up to anyone wanting to use this solution to figure out what version of grub they are currently using and make appropriate adjustments to the commands.

Grub-FAQ wrote:Finally run update-grub2

By default grub2 in debian will not add 'resume=/dev/swap-partition' option. But if you want to perform this by default you can edit /etc/grub.d/10_linux file and make some changes there:

saulgoode wrote:And now when someone performs a web search on "swapon failed" and are led to this forum, they will find a potential solution to the problem. In my opinion, that is a good thing (as a general rule, I blacklist sites that are filled with lots of questions/bug reports, but offer no solutions).

I can accept that logic if a thread is not too old, but in this case, the solution was directed at the OP.

bcl wrote:I hope it will work for you.

bcl wrote:The thing is that I found this page ooking for solutions for myself, so when I found a solution, I told him.

A post along the lines of, "If anyone else runs into this problem, I found a solution ...," would be fine, but in my opinion, posting for the benefit of a person who asked a question years ago is silly.

Linux refugee having fled the merciless onslaught of systemd and the Buntard horde to a haven of sanity.