Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: quellen on November 12, 2014, 07:28:58 AM

Title: How to edit GRUB 0.91
Post by: quellen on November 12, 2014, 07:28:58 AM
Hi,
i have installed TINYCORE (Frugal without bootloader) on a old PC with DSL and Windows 2000.
now how can i add Tinycore in the menu of GRUB 0.91(I had installed it with DSL)?


this is my /boot/grub/menu.lst of DSL:
Code: [Select]
# This sets the default entry to boot.
# Remember that GRUB counts from 0, so 1 is the second entry.

default 0

# This sets the length of time in seconds that grub will wait for the user to select an OS
# before it boots the default on. I reccommend at least 15 seconds.

timeout 1

# Enter the entry for DSL here. Something like this.

#title DSL
#kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm nodma noscsi frugal

title Damn Small Linux 4.4.10
kernel /boot/linux24 root=/dev/hda1 quiet vga=791 noacpi noapm nodma noscsi frugal

title Windows 2000
rootnoverify (hd0,1)
makeacive
chainloader +1

#title DSL with toram, mydsl, restore, hostname, and passwords
#kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm noscsi frugal dma toram mydsl=hda5 restore=hda5 host=DSL1 secure

#title DSL with XFree86
#kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm noscsi frugal dma toram mydsl=hda5/xfree restore=hda6 host=DSL1 secure

#title DSL with mydsl, restore, persistentancy, hostname, and passwords
#kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm noscsi frugal dma toram mydsl=hda3 restore=hda3 home=hda3 opt=hda3 host=DSL1 secure

#title DSL Runlevel 2
#kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm noscsi nodma frugal 2 base norestore

#title DSL Check filesystem(s)
#kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm noscsi nodma frugal 2 toram legacy base norestore checkfs

#title Windows
#root (hd0,0)
#chainloader +1
#makeactive
#boot
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## ## End Default Options ##

### END DEBIAN AUTOMAGIC KERNELS LIST

Title: Re: How to edit GRUB 0.91
Post by: Juanito on November 12, 2014, 08:18:38 AM
It's a little out of date but see:

http://wiki.tinycorelinux.net/wiki:installing_tc_-_alternate_offline_guide?s[]=grub

Depending on which version of tinycore you'd like to use, substitute core.gz for tinycore.gz and vmlinuz for bzImage
Title: Re: How to edit GRUB 0.91
Post by: xyz-worx on November 12, 2014, 02:09:24 PM
Hi quellen,

I had a very similar configuration several years ago (WIN 98 & DSL 4.4.10).  To get TCL (V3.8.4) booting
I had to upgrade GRUB to version 0.97. With this I can run WIN98, DSL and TCL started via GRUB-menu.
Up to now I did not upgrade TCL to version 4.x or 5.x. But you could give GRUB 0.97 a try.

regards
xyz-worx
Title: Re: How to edit GRUB 0.91
Post by: curaga on November 12, 2014, 02:16:47 PM
Yep, you need to upgrade grub, the original DSL version cannot boot newer 2.6 kernels. I think I contributed 0.97 into one of the mydsl sections back then, so you can update it from DSL if needed.
Title: Re: How to edit GRUB 0.91
Post by: quellen on November 12, 2014, 05:21:45 PM
thanks,
how can i update GRUB?
in "MyDSL repository" the last vesion is 0.95.

Can I update it from TinyCore? (i can run it with a floppy disk with PLOP Boot Manager)
Title: Re: How to edit GRUB 0.91
Post by: curaga on November 13, 2014, 04:04:12 AM
Yes, if you can boot TC, you can install grub from TC. See our old manual install page (linked from the main install page).
Title: Re: How to edit GRUB 0.91
Post by: quellen on November 14, 2014, 02:31:08 PM
ok, i have installed GRUB2 from TinyCore and I edited grub.cfg.
"TinyCore" and "Windows 2000" work, but DSL doesn't work. when I select it on GRUB2 the notebook reboot :-(
why?

Code: [Select]
$ cat /mnt/sda1/boot/grub/grub.cfg
menuentry "TinyCore" {
                set root=hd0,1
                chainloader +1
                }

menuentry "Damn Small Linux 4.4.10" {
                linux /boot/linux24 root=/dev/hda1 quiet vga=791 noacpi noapm nodma noscsi frugal               
}
menuentry "Windows 2000" {
                set root=hd0,2
                chainloader +1
                }


Code: [Select]
$ ls -l /mnt/sda1/boot/
total 1572
lrwxrwxrwx    1 root     root            17 Nov 14 19:55 System.map -> System.map-2.4.31
-rw-r--r--    1 root     root        588029 Nov 14 19:55 System.map-2.4.31
drwxr-xr-x    4 root     root          4096 Nov 14 19:01 grub/
-rwxr-xr-x    1 root     root       1005209 Nov 14 19:55 linux24

Code: [Select]
$ ls -l /mnt/sda1/boot/grub/
total 212
-rw-r--r--    1 root     root            90 Nov 14 18:54 device.map
-rw-r--r--    1 root     root          7904 Nov 14 18:54 e2fs_stage1_5
-rw-r--r--    1 root     root          7440 Nov 14 18:54 fat_stage1_5
-rw-r--r--    1 root     root          6912 Nov 14 18:54 ffs_stage1_5
-rw-r--r--    1 root     root           449 Nov 14 19:42 grub.cfg
-rw-r--r--    1 root     root          1024 Nov 14 18:56 grubenv
drwxr-xr-x    2 root     root          8192 Nov 14 18:56 i386-pc/
-rw-r--r--    1 root     root          8640 Nov 14 18:54 jfs_stage1_5
drwxr-xr-x    2 root     root          4096 Nov 14 18:56 locale/
-rw-r--r--    1 root     root          2703 Nov 14 18:54 menu.lst
-rw-r--r--    1 root     root          1687 Nov 14 18:54 menu.lst~
-rw-r--r--    1 root     root          7104 Nov 14 18:54 minix_stage1_5
-rw-r--r--    1 root     root          9568 Nov 14 18:54 reiserfs_stage1_5
-rw-r--r--    1 root     root           512 Nov 14 18:54 stage1
-rw-r--r--    1 root     root         95712 Nov 14 18:54 stage2
-rw-r--r--    1 root     root          6560 Nov 14 18:54 vstafs_stage1_5
-rw-r--r--    1 root     root          9320 Nov 14 18:54 xfs_stage1_5

in my hard disk I have 4 partitions:
/dev/sda1 ext2 (DSL 4.4.10 + TinyCore)
/dev/sda2 fat32 Windows 2000
/dev/sda3 swap
/dev/sda4 fat32 Pictures of naked women :-)

Code: [Select]
$ ls -l /mnt/sda1/
total 120
drwxr-xr-x    2 root     root          4096 May 19 20:25 bin/
drwxr-xr-x    3 root     root          4096 Nov 14 19:56 boot/
drwxr-xr-x    2 root     root          4096 Apr 15  2001 cdrom/
drwxr-xr-x   10 root     root         32768 Nov 12 19:02 dev/
drwxr-xr-x   59 root     root          4096 Nov 12 19:02 etc/
drwxr-xr-x    2 root     root          4096 Apr 15  2001 floppy/
drwxrwsr-x    3 root     staff         4096 May 15  2014 home/
drwxr-xr-x    5 root     root          4096 May 20 21:50 lib/
drwx------    2 root     root         16384 May 15  2014 lost+found/
drwxr-xr-x   10 root     root          4096 Oct 21 15:59 mnt/
drwxr-xr-x    2 root     root          4096 Jun  6  2003 none/
drwxrwsr-x   19 root     staff         4096 Nov  2 15:37 opt/
dr-xr-xr-x    2 root     root          4096 Sep 23  2003 proc/
drwxr-xr-x   11 root     root          4096 May 15  2014 root/
drwxr-xr-x    2 root     root          4096 May 19 20:19 sbin/
drwxrwxr-x    8 tc       staff         4096 Nov 14 11:33 tce/
drwsrwxrwx   10 root     staff         4096 Nov 12 19:02 tmp/
drwxr-xr-x   13 root     root          4096 May 15  2014 usr/
drwxr-xr-x    8 root     root          4096 May 15  2014 var/
Title: Re: How to edit GRUB 0.91
Post by: quellen on November 15, 2014, 06:56:18 AM
I SOLVED:

1. I boot DSL from a floppy disk with GRUB 0.97
2. I installed grub 0.9.1 from DSL
3. I edited /boot/grub/menu.lst adding this:
Code: [Select]
title TinyCore Linux
rootnoverify (hd0,0)
makeacive
chainloader +1