LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 02-09-2008, 11:58 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Rep: Reputation: Disabled
how do I edit my kernel command line?


The MEPIS suspend-to-disk says I need to add a "resume=" line to my kernel command line, or something to that effect, to use suspend. How do I get to the kernel command line?
 
Old 02-10-2008, 12:12 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
that is part of your apends =resumes in you boot up in lilo or grub. this way when it wakes up it knows witch drive to resume to. the hard drive starts back up reads the the etc lilo file I use lilo so hey if you want to know about grub then read the manuals and resumes good luck. if it is lilo you boot manager it is in /etc/lilo.conf
 
Old 02-10-2008, 03:42 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Are you using LILO or GRUB? That's where you would edit the kernel command line.

Last edited by Micro420; 02-10-2008 at 03:44 PM.
 
Old 02-10-2008, 03:55 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Original Poster
Rep: Reputation: Disabled
I'm using GRUB. I haven't yet tried a distro that installs with LiLo.
 
Old 02-10-2008, 04:54 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,251

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Haven't use Mepis in years, but it should be /boot/grub/menu.lst
 
Old 02-10-2008, 05:21 PM   #6
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Original Poster
Rep: Reputation: Disabled
And would I type "resume=[name of partition]" there? I assume so.
 
Old 02-10-2008, 07:06 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,354

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Quote:
Originally Posted by newbiesforever View Post
And would I type "resume=[name of partition]" there? I assume so.
Yes, resume=/dev/hda1 or something similar.

------------------
Steve Stites
 
Old 02-10-2008, 08:34 PM   #8
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Original Poster
Rep: Reputation: Disabled
Okay. I hope there's no reason an extended partition can't be the resume partition, because that's what I used. An extended partition formatted to be a swap partition.
 
Old 02-11-2008, 04:27 PM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by newbiesforever View Post
And would I type "resume=[name of partition]" there? I assume so.
If you mean add a separate line
Code:
resume=[name of partition]
to /boot/grub/menu.lst then no.

What you need to do is add the "phrase"
resume=[name of partition] to the appropriate kernel ... line in the file /boot/grub/menu.lst:
Code:
# before
title MEPIS at hda2, kernel 2.4
kernel (hd0,2)/boot/vmlinuz-2.4.29 root=/dev/hda2 ... vga=791 hdb=ide-scsi 
initrd (hd0,2)/boot/initrd.splash 

# after
title MEPIS at hda2, kernel 2.4
kernel (hd0,2)/boot/vmlinuz-2.4.29 root=/dev/hda2 ... vga=791 hdb=ide-scsi resume=/dev/hdb3
initrd (hd0,2)/boot/initrd.splash
Note: I am guessing that the "resume partition" might be the swap partition, so I have made it /dev/hdb3 in my example. I don't know if that is correct, I am only trying to clarify editing /boot/grub/menu.lst.
 
Old 02-12-2008, 12:14 PM   #10
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Original Poster
Rep: Reputation: Disabled
Okay. I haven't tried it with your changes yet, but before the changes, the title (entry?) of the Linux partition I usually boot is:

title MEPIS at sda2, newest kernel
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet splash vga=normal
boot

[There are two other entries for this same partition: a "previous kernel" entry and one that specifies kernel 2.6.22-1-mepis-smp, whatever "smp" means. But I have no reason that I know of to do anything with those.]

With the changes, it now says:
title MEPIS at sda2, newest kernel
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet splash vga=normal resume=/dev/sda6
boot

So have I got it right?

Last edited by newbiesforever; 02-12-2008 at 12:18 PM.
 
Old 02-12-2008, 12:23 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by newbiesforever View Post
Okay. I hope there's no reason an extended partition can't be the resume partition, because that's what I used. An extended partition formatted to be a swap partition.
An extended partition cannot be used for anything---it is really just part of a "linked list" showing the OS where to find the logical partitions.

I suspect that the only reason that it is given a size is to help partitioning utilities know how to allocate space for logical partitions.

Hmmm, I wonder what happens if you write to an extended partition using dd??? (I don't currently have any machines on which I can try this.)
 
Old 02-12-2008, 12:44 PM   #12
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Original Poster
Rep: Reputation: Disabled
Well, I just restarted with the menu.1st file thusly modified, and the suspend worked. I can now put the computer to sleep from the Linux partition whenever I want. The video was distorted for just a second or two when the GUI started, and then the session locked and made me unlock it, but I can live with that.

Quote:
Originally Posted by pixellany View Post
An extended partition cannot be used for anything---it is really just part of a "linked list" showing the OS where to find the logical partitions.

I suspect that the only reason that it is given a size is to help partitioning utilities know how to allocate space for logical partitions.

Hmmm, I wonder what happens if you write to an extended partition using dd??? (I don't currently have any machines on which I can try this.)
Okay, I guess I actually meant using a logical partition for suspending to disk. And I don't know what dd is, Pixellany, but if dd has anything to do with suspending to a logical partition linked to an extended partition as I just did, it must work.

Last edited by newbiesforever; 02-12-2008 at 12:46 PM.
 
Old 02-12-2008, 12:51 PM   #13
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392

Original Poster
Rep: Reputation: Disabled
And should I put this in the Success Stories forum? I could, but I'm not sure there is a point. I'd just be repeating in one post the solution which you most learned people have given me in several posts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Display Manager using command line. Which files to edit ? uncle-c Linux - Newbie 3 03-24-2007 05:28 AM
edit wav files via command line in a script legolin Linux - Software 4 12-21-2005 10:09 AM
Can't find edit grub.conf when im in command line. izac5 Linux - Newbie 7 11-16-2004 04:24 PM
How do I edit files in command line sweb74 Linux - Newbie 13 01-27-2004 10:53 PM
how to edit a file when not in X (ie from the command line) ludwig W Linux - Newbie 12 04-22-2003 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 07:40 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