LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-21-2021, 04:11 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Rep: Reputation: Disabled
"set the resume variable"? where's that?


When one upgrades certain software (as in performing an apt-get dist-upgrade after installing from a months-old snapshot, as I just did), one may see a notice identifying the resume partition, and an instruction about setting the resume variable--change in in order to make the system resume from somewhere else.

I understand changing it and why I might want to, I just never knew where the resume variable was.

Last edited by newbiesforever; 03-21-2021 at 04:24 PM.
 
Old 03-21-2021, 08:39 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I don't know that it's so much a "where" as a "what," but I'm hardly an expert.


Maybe one of these articles from kernel.org will help.
 
1 members found this post helpful.
Old 03-21-2021, 10:36 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
See if this file exist:
/etc/initramfs-tools/conf.d/resume

Last edited by colorpurple21859; 03-21-2021 at 10:38 PM.
 
1 members found this post helpful.
Old 03-31-2021, 06:21 AM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
See if this file exist:
/etc/initramfs-tools/conf.d/resume
I only just got around to checking on this. The file does not exist; my /etc/initramfs-tools/conf.d/resume is empty.
 
Old 03-31-2021, 07:17 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by newbiesforever View Post
I only just got around to checking on this. The file does not exist; my /etc/initramfs-tools/conf.d/resume is empty.
It's empty because by default the initrd specifies the resume partition as the current swap partition. If you want it to be something different, you put the device there.
 
Old 03-31-2021, 08:18 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
You can put the swap variable in, and the sky doesn't fall down. On the kernel command line:
Code:
linux  /vmlinuz-generic-5.10.15 root=/dev/sda3 ro
OR
Code:
linux  /vmlinuz-generic-5.10.15 root=/dev/sda3 resume=/dev/sda2 ro
Change of course for your root & swap partitions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I: Set the RESUME variable to override this. shams Ubuntu 7 04-22-2020 07:00 AM
resume: could not stat the resume device file Zaskar Debian 17 03-29-2012 10:10 PM
how to set a variable in a script and have the variable still set after script termin john test Linux - Newbie 9 10-21-2008 05:21 PM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
resume: cannot stat resume device file sixerjman Linux - Kernel 0 05-27-2007 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration