MEPIS This forum is for the discussion of MEPIS Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-09-2008, 11:58 PM
|
#1
|
Senior Member
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392
Rep:
|
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?
|
|
|
02-10-2008, 12:12 AM
|
#2
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
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
|
|
|
02-10-2008, 03:42 PM
|
#3
|
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:
|
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.
|
|
|
02-10-2008, 03:55 PM
|
#4
|
Senior Member
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392
Original Poster
Rep:
|
I'm using GRUB. I haven't yet tried a distro that installs with LiLo.
|
|
|
02-10-2008, 04:54 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,251
|
Haven't use Mepis in years, but it should be /boot/grub/menu.lst
|
|
|
02-10-2008, 05:21 PM
|
#6
|
Senior Member
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392
Original Poster
Rep:
|
And would I type "resume=[name of partition]" there? I assume so.
|
|
|
02-10-2008, 07:06 PM
|
#7
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,354
|
Quote:
Originally Posted by newbiesforever
And would I type "resume=[name of partition]" there? I assume so.
|
Yes, resume=/dev/hda1 or something similar.
------------------
Steve Stites
|
|
|
02-10-2008, 08:34 PM
|
#8
|
Senior Member
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392
Original Poster
Rep:
|
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.
|
|
|
02-11-2008, 04:27 PM
|
#9
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
Quote:
Originally Posted by newbiesforever
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.
|
|
|
02-12-2008, 12:14 PM
|
#10
|
Senior Member
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392
Original Poster
Rep:
|
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.
|
|
|
02-12-2008, 12:23 PM
|
#11
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Quote:
Originally Posted by newbiesforever
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.)
|
|
|
02-12-2008, 12:44 PM
|
#12
|
Senior Member
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392
Original Poster
Rep:
|
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
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.
|
|
|
02-12-2008, 12:51 PM
|
#13
|
Senior Member
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,392
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|