LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   increase timeout value boot menu (https://www.linuxquestions.org/questions/linux-newbie-8/increase-timeout-value-boot-menu-656189/)

jundcb 07-16-2008 01:51 PM

increase timeout value boot menu
 
hi, im a newbie in linux and im trying to increase the timeout value in my boot menu but cant seem to get it, im running a dual boot of linpus linux and winxp. heres what ive done

booted using livecd and then opening a terminal and typed

mkdir linpus
sudo mount -t ext3 /dev/hdc1 linpus
sudo nano linpus/boot/grub/grub.conf

default=0
timeout=10
splashimage=(hd0,0) /boot/grub/splash.xpm.gz
#hiddenmenu

title linpus linux lite
rootnoverify (hd0,0)
kernel /boot/bzimage changes=/dev/hdc1 root=/dev/ram0 rw max_loop=255 init=linuxrc selinux=0 vga=0x311 splash=silent quiet loglevel=1 console=tty1 load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=14000 from=/dev/hdc1 acpi=force ide0=noprobe ide2=noprobe ide3=noprobe lang=en
initrd /boot/initrd.gz

title linpus linux lite(rescue)
rootnoverify (hd0,0)
kernel /boot/bzimage changes=/dev/hdc1 root=/dev/ram0 rw max_loop=255 init=linuxrc selinux=0 vga=0x311 splash=silent quiet loglevel=1 console=tty1 load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=14000 from=/dev/hdc1 acpi=force ide0=noprobe ide2=noprobe ide3=noprobe lang=en
initrd /boot/initrd.gz

title windows os
rootnoverify (hd0,1)
chainloader +1

ive tried adding a # before the timeout, as i understand this will disable the timeouts but it still boots after 4 seconds

ive changed the timeout value to 30 and 900 but it still gives me only 4 seconds before booting to linpus

as of now the timeout value is at 10 but it still boots after 4 seconds

am i doing it right? any other solutions? ty

phantom_cyph 07-16-2008 01:57 PM

Linpus uses KDE. In your control center, there should be an option to edit the boot manager.

makuyl 07-16-2008 02:24 PM

:~$grep timeout /boot/grub/menu.lst|grep -v "#"
timeout 10

There is no "=" between the word timeout and the number.

Samotnik 07-16-2008 02:27 PM

grub configuration file's named /boot/grub/menu.lst, and you're able to edit it from your linpus installation, without a booting in live-cd.

makuyl 07-16-2008 02:37 PM

Since he has already edited the configuration file, one would think he knows what it's called.
Alas, good point about the not needed live-cd.

jundcb 07-16-2008 02:56 PM

i dont really know what im doing, someone just taught me that from another forum and from googling it. so i dont know what its called. someone told me that i dont have a menu.lst and i have a grub.conf instead. i'll try to remove the =

shridhar005 07-16-2008 06:56 PM

Login as root .Then edit the grub file as
Quote:

/etc/grub/grub.conf
.
from here change the time value,.

makuyl 07-17-2008 01:28 AM

Another way to confuse jundcb further... It's /boot/grub/grub.conf.

linuxlover.chaitanya 07-17-2008 01:43 AM

I might not change the /etc/grub.conf file. It is a link to /boot/grub/grub.conf and it is always better to change the file directly than through the link.

jundcb 07-17-2008 07:57 AM

how do u edit the installation inside linpus?

ive tried

sudo nano /boot/grub/grub.conf
su
nano /boot/grub/grub.conf

but it tells me command not found

tried

alt+f2 kdesu kate /boot/grub/grub.conf and kdesu mousepad /boot/grub/grub.conf

it says command failed to run
failed to execute child process "kdesu" (no such file or directory)

also tried

gksu mousepad /boot/grub/grub.conf

tells me that using that command gives me root user privileges without the need for a password due to my systems setup, after closing that box nothing happens, i tried checking the box do not show this message again after that when i typed gksu mousepad /boot/grub/grub.conf nothing happens

jomen 07-17-2008 08:32 AM

I'd recommend going the same way you already walked - boot the live cd and do the same as you did before to edit that file.
Not the most elegant - but you know how you did it...

There is no "=" in the "default" nor in the "timeout" statements (...should not be...).
default 0
timeout 30

jundcb 07-17-2008 08:35 AM

thx jomen, i was hoping to do it inside linpus so that i can learn some more about linux :)

jomen 07-17-2008 08:46 AM

mount
ls -al /boot
ls -al /boot/grub

you should see the file grub.conf (or: menu.lst) - if not then I don't know furter - if you do:

vi /boot/grub/grub.conf

(hit "i" to get to edit mode - hit escape followed by :wq to save the file)

sudo mousepad should work too

jundcb 07-17-2008 09:18 AM

this is what i got

[linpus@LINPUS ~]$ mount
tmpfs on / type tmpfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdc2 on /media/disk type vfat (rw,noexec,nosuid,nodev,utf8,shortname=winnt,uid=500)
[linpus@LINPUS ~]$ ls -al /boot
total 84
drwxr-xr-x 9 root root 4096 Jul 12 20:05 .
drwxr-xr-x 44 root root 4096 Jul 17 17:36 ..
drwxr-xr-x 2 root root 4096 Apr 18 07:13 .base
drwxr-xr-x 4 root root 4096 Jun 3 07:54 boot
drwxr-xr-x 14 root root 4096 Jul 17 17:36 changes
-r--r--r-- 1 root root 704 Mar 21 04:46 COPYRIGHT
drwxrwxrwt 6 linpus linpus 4096 Jul 12 21:01 data
-rw-r--r-- 1 root root 17992 Jul 23 2007 GPL
drwxr-xr-x 7 root root 4096 Jun 3 08:01 images
-rw-r--r-- 1 root root 389 Jul 23 2007 LICENSE
-rw-r--r-- 1 root root 243 Jul 23 2007 livecd.sgn
drwx------ 2 root root 16384 Jun 3 07:52 lost+found
drwxr-xr-x 2 root root 4096 Apr 10 23:50 manual
-rw-r--r-- 1 root root 232 Mar 21 05:01 README
-rw-rw-rw- 1 root root 0 Apr 18 07:13 .update.log

[linpus@LINPUS ~]$ ls -al /boot/grub
ls: /boot/grub: No such file or directory

jomen 07-17-2008 09:50 AM

What you have booted up here is the live-cd - not an installation on hd.
Attempting to change grub's config there is pointless and impossible.

makuyl 07-17-2008 10:05 AM

Let's try to confuse you further then. Boot normally without livecd and type this in a terminal:
sudo sed -i '/timeout/s/=/\ /' /boot/grub/grub.conf

Same thing for the default line would be:
sudo sed -i '/^default/s/=/\ /' /boot/grub/grub.conf

If you don't use sudo, become root first with "su -".
If you don't have sed, try to figure out which editor linpus uses for console. Try pico, editor, mcedit, vi, or type "apropos editor" to see what the system gives you.

jundcb 07-17-2008 10:07 AM

oh, but my external cdrom is not attached to my laptop and its also empty, is that possible not to have a menu.lst or grub.conf in my system?

makuyl 07-17-2008 10:09 AM

Well, where did you find the stuff you pasted in your first post unless in grub.conf or menu.lst?

jundcb 07-17-2008 10:31 AM

oh yeah, getting confused already lol, well i have grub.conf since i can see it if i type

mkdir linpus
sudo mount -t ext3 /dev/hdc1 linpus
cat linpus/boot/grub/grub.conf

but i cant edit it

makuyl 07-17-2008 10:47 AM

Still on the live-cd I take it.
Is the mounted partition actually writable. Type "mount" and see if there's an "rw" after the line.
If not, type "sudo mount -o remount,rw -t ext3 /dev/hdc1 linpus".
Then type/paste in: sudo sed -i '/timeout/s/=/\ /' linpus/boot/grub/grub.conf
Or check which editor the live-cd comes with. Try "editor" for starters.

jundcb 07-17-2008 10:49 AM

im not on the livecd, im doing this in linpus

makuyl 07-17-2008 10:52 AM

Now I got confused by this then:
Quote:

Originally Posted by jundcb (Post 3217728)
mkdir linpus
sudo mount -t ext3 /dev/hdc1 linpus
cat linpus/boot/grub/grub.conf

So, can you find an editor for the console?

jundcb 07-17-2008 11:18 AM

im just going to used the livecd, it'll save us all the trouble lol

jundcb 07-17-2008 11:27 AM

i removed the = from timeout but the boot menu is still at 4 seconds

jomen 07-17-2008 11:42 AM

Quote:

mkdir linpus
sudo mount -t ext3 /dev/hdc1 linpus
cat linpus/boot/grub/grub.conf
That means you may have an installation of linpus on /dev/hdc1.
But you are definitely not running that installation - from what you posted earlier.

You can edit /boot/grub/grub.conf on /dev/hdc1 as much as you like - as long as you are not booting from that partition it will be in vain.

How do you boot - how do you know what you boot.
How did you get your linpus installed?
I only have a copy of linpus.live and it does have no option to install it to hd.

jundcb 07-17-2008 11:53 AM

it was pre installed on my lappy when i got it, i made a partition then installed xp, after that i used supergrub to get my boot menu but couldnt get it to work so i had to manual install grub to get my boot menu

jomen 07-17-2008 12:23 PM

...and how did you install grub?
From the output of "mount" one can only conclude that there is no harddrive mounted from which you are running your OS.
It looks exactly like the live cd.
One can see that /media/disk is the mountpoint for /dev/hdc2 - which could be your windows partition.

...which is not an easy thing to do - windows is difficult to install on anything other than the first partition of the first drive.
/dev/hdc is indicating that the drive is the secondary master AFAIK
Where is your primary master ( /dev/hda )?

From a live-cd I'd check which partition is which...
fdisk -l
and check the boot order in the BIOS

very confusing - you need a structured approach starting with the very simple

jundcb 07-17-2008 01:16 PM

sudo grub
root (hd0,0)
setup (hd0)
quit

thats what i used for the manual install

i also booted from a livecd, went to applications-accessories opened a terminal and typed fdisk -l but nothing happens


i booted in linpus and typed fdisk -l

Disk /dev/hdc: 40.0 GB, 40000536576 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 2432 19535008+ 83 Linux
/dev/hdc2 2433 4863 19527007+ c W95 FAT32 (LBA)

jundcb 07-17-2008 01:56 PM

also used supergrub and saw that my linux is hda1 and windows hda2

makuyl 07-17-2008 02:08 PM

Let's see grub.conf again then. While having normally booted into the hd install paste here output of "cat /boot/grub/grub.conf". And don't mount anything, just type the command.

jomen 07-17-2008 02:10 PM

One of your entries in grub's configuration looks like this:
Quote:

title linpus linux lite
rootnoverify (hd0,0)
kernel /boot/bzimage changes=/dev/hdc1 root=/dev/ram0 rw max_loop=255 init=linuxrc selinux=0 vga=0x311 splash=silent quiet loglevel=1 console=tty1 load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=14000 from=/dev/hdc1 acpi=force ide0=noprobe ide2=noprobe ide3=noprobe lang=en
initrd /boot/initrd.gz
I have to admit that I have never seen a config like this before - especially the changes=/dev/hdc1 part.

Looks like your system is running in a ram-disk.
To save anything you would need to mount some external device (?) - or is this what the "changes=/dev/hdc1" is for (?).

I admit that I have no clue about this and have not found it in a quick manual and info lookup.
It seems you where editing the right config-file (...it seems...) and I don't know why changes are not working.
Sorry if I caused confusion! - I'll be out and just watching now :/
Someone will know...

makuyl 07-17-2008 02:22 PM

Hmm, could be a knoppix beginner type hd install, which is basically a live-cd installed to your hd. Every time you boot it, it overwrites your changes from a skeleton file set.

jundcb 07-17-2008 03:22 PM

Quote:

Originally Posted by makuyl (Post 3217945)
Let's see grub.conf again then. While having normally booted into the hd install paste here output of "cat /boot/grub/grub.conf". And don't mount anything, just type the command.

it says no such file or directory

jundcb 07-17-2008 03:42 PM

thanks for all the help jomen, makuyl

any other suggestions are welcome

linuxlover.chaitanya 07-18-2008 12:12 AM

Your distro could have menu.lst file then.
Type this and see if this is available:

cat /boot/grub/menu.lst

makuyl 07-18-2008 03:17 AM

Preferably an "ls -l /boot/ /boot/grub/"

jundcb 07-18-2008 09:31 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3218433)
Your distro could have menu.lst file then.
Type this and see if this is available:

cat /boot/grub/menu.lst

no such file or directory



[linpus@LINPUS ~]$ ls -l /boot/ /boot/grub/
ls: /boot/grub/: No such file or directory
/boot/:
total 72
drwxr-xr-x 4 root root 4096 Jun 3 07:54 boot
drwxr-xr-x 14 root root 4096 Jul 18 18:20 changes
-r--r--r-- 1 root root 704 Mar 21 04:46 COPYRIGHT
drwxrwxrwt 6 linpus linpus 4096 Jul 12 21:01 data
-rw-r--r-- 1 root root 17992 Jul 23 2007 GPL
drwxr-xr-x 7 root root 4096 Jun 3 08:01 images
-rw-r--r-- 1 root root 389 Jul 23 2007 LICENSE
-rw-r--r-- 1 root root 243 Jul 23 2007 livecd.sgn
drwx------ 2 root root 16384 Jun 3 07:52 lost+found
drwxr-xr-x 2 root root 4096 Apr 10 23:50 manual
-rw-r--r-- 1 root root 232 Mar 21 05:01 README

makuyl 07-18-2008 02:11 PM

This is not a real hd install, is it? That would explain all the problems editing grub and such.
Is this like knoppix can be installed, a live-cd like setup running from your hd with an extra partition so save data to?
If so, and you like linux, I would suggest installing a real hd install, not a live-cd like thingy you cannot customize.
Or have you by chance booted from the cd again? If yes, show the output of those commands when running the hd install.

jundcb 07-18-2008 05:01 PM

its a real hd install, and its impossible for me to boot from the cd by chance since ive got a mini laptop and it doesnt have a cdrom, im only using an external cdrom and its not plug in, besides i dont have a livecd of linpus. like i said i got this pre installed

jomen 07-18-2008 06:54 PM

naah - it is not a "real hd install" in the sense that is normally understood...

They made it somehow possible to boot a thing which looks like an image - like a live-cd - from harddisk.
A real hd install would look different.

Can you even save files, make changes which will be there next time you boot?
...plugging in a usb thumb-drive or similar for that purpose does not count ;)

I'm afraid you will have to install a real distribution - even linpus if you must - or you will have to ask them to explain to you how this thing works (and lets not forget: how it is kept up to date/how it is upgraded).

makuyl 07-19-2008 02:59 AM

At this stage, my advise is to wipe the hd. Make three partitions, five if you want a separate home and a FAT partition to move data between windows and linux.
1:st partition: windows
2:nd partition: linux /
3:rd partition: linux swap
4:th partition: linux home
5:th partition: FAT for moving stuff. Nowadays not needed with large usb thumbdrives and external disks.

Get a nice and easy distro to start out with: Ubuntu, Kubuntu, Mandriva or some such. If someone says get Debian, Slackware or Gentoo, ignore him :).
A good distro to start out with has good documentation, like this: http://ubuntuguide.org/wiki/Ubuntu:Hardy
Give us the specs of your laptop and well see what it should run on.

jundcb 07-19-2008 02:10 PM

heres my specs
Processor VIA C7-M 1.0 GHz
Memory 1GB DDR2
motherboard qci il1
Harddisk 40GB
64mb vc


i just installed puppy linux on another pc, looks easy to use and fast. with my specs i dont think i can run some of the other distribution

makuyl 07-20-2008 02:22 AM

Puppy is based on debian, so you can install also packages from debian. No quite as straightforwardly as with pure debian, but doable. If that's what you want to install, do it. You can always install something else when you grow tired of it. Most people install a forked distro like puppy first, and eventually move on towards the mother distro. I dare say yours will be debian in a year or two.
Those are not bad specs, you can run almost any linux, even with gnome or kde although they might not "fly". If you want something lighter, try this http://www.xubuntu.org/ . Full blown distro with large package repositories running a light window manager.
Another one with kde or xfce is http://sidux.com/ . They have an active support forum with bug warnings and such, and easy to use package installing/upgrading scripts. Also works as a live-cd so you can try it out.

aus9 07-20-2008 07:35 AM

I have not followed all of this post but beware those laptops....so have a recovery partition linked to bios and any change to partition table attempts a restore from the recovery partition.

use a live cd to check your true partitions before wiping the mbr please.

good luck

shridhar005 07-25-2008 12:39 PM

What I have told you was login as root.
Then edit /etc/grub.conf
The reason behind it is that its a softlink ,so its as good as editing actual file.
If anyone knows any issues regarding it post it with proof.
:tisk::tisk::tisk:

jean noel 08-17-2008 07:51 AM

hi,
(First part of the message in English then repeated in French)
I am in the same confusing with the linpus Lite distribution from "aspire one" that I tried to install on an another computer from the recovery CD.
After install it cannot boot and I changed the grub.conf with no result
I dump the MBR and it seems that the bootloader is Lilo and not Grub but there is not file /etc/lilo.conf .
Quote:

noel@lamelle:~/aspire$ hexdump -Cv MBRsda.bin
00000000 eb 48 90 90 aa 01 4c 49 4c 4f 01 00 16 04 00 00 |.H....LILO......|
00000010 00 00 00 00 00 00 00 00 b6 00 00 00 00 03 91 d2 |................|
00000020 8f bd e0 74 00 87 bc e0 74 00 01 c4 bd e0 74 00 |...t....t.....t.|
00000030 9c bc e0 74 00 e8 00 00 58 2d 38 00 8c cf 03 02 |...t....X-8.....|
00000040 ff 00 00 20 01 00 00 00 00 02 fa eb 07 f6 c2 80 |... ............|
00000050 75 02 b2 80 ea 59 7c 00 00 31 c0 8e d8 8e d0 bc |u....Y|..1......|
00000060 00 20 fb a0 40 7c 3c ff 74 02 88 c2 52 be 7f 7d |. ..@|<.t...R..}|
00000070 e8 2e 01 f6 c2 80 74 54 b4 41 bb aa 55 cd 13 5a |......tT.A..U..Z|
00000080 52 72 49 81 fb 55 aa 75 43 a0 41 7c 84 c0 75 05 |RrI..U.uC.A|..u.|
00000090 83 e1 01 74 37 66 8b 4c 10 be 05 7c c6 44 ff 01 |...t7f.L...|.D..|
000000a0 66 8b 1e 44 7c c7 04 10 00 c7 44 02 01 00 66 89 |f..D|.....D...f.|
000000b0 5c 08 c7 44 06 00 70 66 31 c0 89 44 04 66 89 44 |\..D..pf1..D.f.D|
000000c0 0c b4 42 cd 13 72 05 bb 00 70 eb 7d b4 08 cd 13 |..B..r...p.}....|
000000d0 73 0a f6 c2 80 0f 84 ea 00 e9 8d 00 be 05 7c c6 |s.............|.|
000000e0 44 ff 00 66 31 c0 88 f0 40 66 89 44 04 31 d2 88 |D..f1...@f.D.1..|
000000f0 ca c1 e2 02 88 e8 88 f4 40 89 44 08 31 c0 88 d0 |........@.D.1...|
00000100 c0 e8 02 66 89 04 66 a1 44 7c 66 31 d2 66 f7 34 |...f..f.D|f1.f.4|
00000110 88 54 0a 66 31 d2 66 f7 74 04 88 54 0b 89 44 0c |.T.f1.f.t..T..D.|
00000120 3b 44 08 7d 3c 8a 54 0d c0 e2 06 8a 4c 0a fe c1 |;D.}<.T.....L...|
00000130 08 d1 8a 6c 0c 5a 8a 74 0b bb 00 70 8e c3 31 db |...l.Z.t...p..1.|
00000140 b8 01 02 cd 13 72 2a 8c c3 8e 06 48 7c 60 1e b9 |.....r*....H|`..|
00000150 00 01 8e db 31 f6 31 ff fc f3 a5 1f 61 ff 26 42 |....1.1.....a.&B|
00000160 7c be 81 7d e8 3a 00 eb 0e be 86 7d e8 32 00 eb ||..}.:.....}.2..|
00000170 06 be 90 7d e8 2a 00 be 95 7d e8 24 00 eb fe 20 |...}.*...}.$... |
00000180 00 47 65 6f 6d 00 48 61 72 64 20 44 69 73 6b 00 |.Geom.Hard Disk.|
00000190 52 65 61 64 00 20 45 72 72 6f 72 00 bb 01 00 b4 |Read. Error.....|
000001a0 0e ac 3c 00 75 f6 c3 00 00 00 00 00 00 00 00 00 |..<.u...........|
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 01 |................|
000001c0 01 00 83 fe ff ff 3f 00 00 00 bf 74 88 04 00 00 |......?....t....|
000001d0 c1 ff 82 fe ff ff fe 74 88 04 c3 1c 20 00 00 00 |.......t.... ...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
noel@lamelle:~/aspire$
I don't know where to change the configuration file for lilo.
and I have no success to install grub on the boot disk : the MBR is not updated


J'ai le problème similaire avec une distro linpus lite tiré d'un CD de l'aspire one que j'ai voulu testé sur un autre PC.
Après avoir bidouillé en vain le grub.conf j'ai dumpé le MBR or il semble que grub n'est pas installé mais plutôt Lilo, pour autant il n'y a pas de fichier /etc/lilo.conf dans la distrib

jundcb 08-18-2008 08:10 PM

try using supergrub.

shridhar005 08-22-2008 04:06 AM

Login as root
Edit the file
Code:

vim /etc/grub.conf
where in this file there is a field called time out you can change it to whatever value you want.to make change press i or press insert key and then make changes.
I apologize for earlier post .


All times are GMT -5. The time now is 03:11 AM.