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?
|
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
|
Are you using LILO or GRUB? That's where you would edit the kernel command line.
|
I'm using GRUB. I haven't yet tried a distro that installs with LiLo.
|
Haven't use Mepis in years, but it should be /boot/grub/menu.lst
|
And would I type "resume=[name of partition]" there? I assume so.
|
Quote:
------------------ Steve Stites |
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.
|
Quote:
Code:
resume=[name of partition] 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 |
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? |
Quote:
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.) |
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. :D 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:
|
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 :D have given me in several posts.
|
All times are GMT -5. The time now is 08:34 PM. |