You are not logged in.

#1 2011-08-26 12:33:32

awayand
Member
Registered: 2009-09-25
Posts: 398

[SOLVED] cancel resume from suspend

Hi,
I have suspended my machine instead of turning it off to boot temporarily into Windows. Now I want to go back to archlinux, but I don't want to resume the session, but restart normally. How can I cancel the resume process in arch? Everytime I reboot, it keeps dropping back into the password prompt to give the password to decrypt the swap file and resume, but I don't want to resume!

Removing resume=/dev/swap from grub does not solve my problem.

Any advice appreciated!

Last edited by awayand (2011-09-18 04:25:06)

Offline

#2 2011-08-26 12:47:29

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] cancel resume from suspend

PS: What happens if I forget the password for resume? How would I be able to boot then?

Offline

#3 2011-08-26 13:40:48

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] cancel resume from suspend

awayand, please do not post twice in such short succession. Use the Edit button to provide additional info and/or questions.


To know or not to know ...
... the questions remain forever.

Offline

#4 2011-08-29 20:23:26

uzi304
Member
From: New Jersey, USA
Registered: 2009-06-16
Posts: 29

Re: [SOLVED] cancel resume from suspend

I think what you wanna do is hibernate instead of suspend

Offline

#5 2011-08-29 20:29:56

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] cancel resume from suspend

I think that is what I am doing I thought suspend was the same as hibernate. I am using s2disk and then when I want to wake up, I just don't want resume, but reboot and abandon the RAM image...

Offline

#6 2011-08-29 20:37:37

uzi304
Member
From: New Jersey, USA
Registered: 2009-06-16
Posts: 29

Re: [SOLVED] cancel resume from suspend

No, suspend is s2ram and hibernate s2disk. So when you turn your computer back on after hibernating, does it start up as normal. What I mean is: does grub come up after turning on your computer after hibernating?

Offline

#7 2011-08-29 20:59:37

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] cancel resume from suspend

yes it shows grub

Offline

#8 2011-09-18 03:01:49

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] cancel resume from suspend

bump

Offline

#9 2011-09-18 03:25:49

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] cancel resume from suspend

Try "noresume" in the kernel line in GRUB.

Offline

#10 2011-09-18 03:37:21

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] cancel resume from suspend

that didn't work, unfortunately:
First, I hibernated. Then, I turned the computer back on, and edited the kernel line in grub:

http://i.imgur.com/UnfDc.jpg

But I still get a password prompt:

http://i.imgur.com/u2ygd.jpg

Last edited by awayand (2011-09-18 03:37:44)

Offline

#11 2011-09-18 04:12:22

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] cancel resume from suspend

Try "disablehooks=uresume" then.

Note that skipping resuming means no proper unmounting of filesystems, hence a risk of filesystem corruption and data loss.

Last edited by lucke (2011-09-18 04:25:12)

Offline

#12 2011-09-18 04:24:50

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] cancel resume from suspend

that worked perfectly. thanks!

Offline

#13 2011-09-18 04:26:25

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] cancel resume from suspend

Note the note added to my previous post ;-)

Offline

#14 2011-09-18 04:40:59

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: [SOLVED] cancel resume from suspend

yes, I realize that, thanks, lucke, since you mention it, here's why I need it:

I auto-mount my windows partition on my dual-boot machine when running in archlinux, and most of the time, I just hibernate linux by closing the lid of my laptop. Very rarely I boot into windows when turning the laptop back on. However, I am using qbittorrent to download to my windows partition, since it has a lot more space and I don't want to repartition, but I am downloading through archlinux. So when I hibernate, the files on the windows partition are still "open", and the filesystem is still mounted. Now if I boot into windows when I turn the computer back on, I will run into trouble if after that, I resume back into archlinux, because the files on windows will have changed and arch will be confused. In that case, I have to just throw away the resume-image in arch to start from scratch. Hope that made sense. smile

Offline

#15 2011-09-18 04:53:06

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] cancel resume from suspend

Yeah, I know the problem. I lost some files because of dual-booting that way myself. Alternatively, you could use pm-utils hooks to kill qbittorrent and unmount Windows' partition before hibernating, but it comes with its own problems and if you do it rarely enough, I suppose skipping resuming is better indeed.

Offline

Board footer

Powered by FluxBB