Hi maxIT
Tks for your advice.
I got it
$ whereis grub
Code:
grub: /sbin/grub /lib/grub /usr/share/man/man8/grub.8.gz
After having succeeded installing Knoppix on pendrive using syslinux as bootloader. I'm prepared installing it again, this time, using grub as bootloader running the pendrive as Hard Drive
I have a 1G pendrive (Avixe Platinum Drive) created with 3 partitons.
# fdisk -l /dev/sda
Code:
Disk /dev/sda: 1007 MB, 1007419392 bytes
31 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 1922 * 512 = 984064 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 260 249829 6 FAT16
/dev/sda2 261 990 701530 83 Linux
/dev/sda3 991 1023 31713 83 Linux
Partition-1 /boot
Partition-2 for Knoppix (actually DSL)
Partition-3 spare
I cant' run
# grub-install /mnt/sda1
because of different FS, FAT16 and ext2
So I ran follows manually;
# mount /dev/sda1 /mnt/sda1
# mkdir /mnt/sda1/boot
# mkdir /mnt/sda1/boot/grub
copied following files from /lib/grub/i386-pc/ on /mnt/sda1/boot/grub/
stage1
stage2
fat_stage1_5
Then
# echo abc > /mnt/sda1/myusb
# touch /mnt/sda1/boot/grub/menu.lst
Afterwards copied "linux24" and "minirt24.gz" from DSL LiveCD (Knoppix on pendrive using DSL) on
/mnt/sda1/boot/
The files installed were as follows;
# ls -ls /mnt/sda1
Code:
total 8
4 drwxr-xr-x 3 root root 4096 Mar 25 17:28 boot
4 -rwxr-xr-x 1 root root 4 Mar 25 17:30 myusb
# ls -ls /mnt/sda1/boot/
Code:
total 1856
4 drwxr-xr-x 2 root root 4096 Mar 26 23:21 grub
984 -rwxr-xr-x 1 root root 1005209 Mar 25 17:28 linux24
868 -rwxr-xr-x 1 root root 888040 Mar 25 17:28 minirt24.gz
# ls -ls /mnt/sda1/boot/grub/
Code:
total 120
8 -rwxr-xr-x 1 root root 7684 Mar 25 17:12 fat_stage1_5
4 -rwxr-xr-x 1 root root 280 Mar 25 17:24 menu_fc3.lst
4 -rwxr-xr-x 1 root root 512 Mar 25 17:12 stage1
104 -rwxr-xr-x 1 root root 103816 Mar 25 17:12 stage2
The setup of the menu.lst was as follows;
Code:
color cyan/blue yellow/blue
default 0
timeout 20
root (hd0,0)
kernel (hd0,0)/boot/linux24 ramdisk_size=100000 init=/etc/init
apm=power-off toram dma nomce noapic quiet knoppix_dir=DSL lng=us
initrd (hd0,0)/boot/minirt24.gz
Then
# cd /mnt/sda1
and ran
# grub
Code:
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word,
TAB
lists possible command completions. Anywhere else TAB lists the
possible
completions of a device/filename.]
grub> find /myusb
(hd1,0)
grub> root (hd1,0)
Code:
Filesystem type is fat, partition type 0x6
grub> setup (hd1,0)
Code:
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/fat_stage1_5" exists... yes
Running "embed /boot/grub/fat_stage1_5 (hd1,0)"... failed (this is not
fatal)
Running "embed /boot/grub/fat_stage1_5 (hd1,0)"... failed (this is not
fatal)
Running "install /boot/grub/stage1 (hd1,0) /boot/grub/stage2 p
/boot/grub/grub.conf "... succeeded
Done.
But I can't find file /boo/grub/grub.conf there.
grub> quit
Then umount /mnt/sda1 and /mnt/cdrom
Rebooted PC but the BIOS can't detect the pendrive, having used 1st boot options as;
USB-HDD/USB-ZIP/USB-FDD/etc.
I did not know what mistake committed.
Any advice would be appreciated. TIA
B.R.
satimis