Code:ls -l /boot/grub
Hi folks,
LiveCD 4.0.2
I can't find the bootloader "grub" and its menu.lst
# find / -name menu.lst# find / -name grub -type dCode:/ramdisk/home/knoppix/tmp/menu.lst /UNIONFS/home/knoppix/tmp/menu.lstThey seem to be documents. Where does "Grub" reside?Code:/KNOPPIX/lib/grub /KNOPPIX/usr/share/doc/grub /UNIONFS/lib/grub /UNIONFS/usr/share/doc/grub
Please advise. TIA
B.R.
satimis
Code:ls -l /boot/grub
Hi dvryknopper,
Tks for your advice.
# ls -l /media/cdrom1/boot/# ls -l /media/cdrom1/boot/isolinux/Code:total 2 dr-xr-xr-x 2 root root 2048 Aug 22 2005 isolinuxgrub is not there.Code:total 2569 -r--r--r-- 1 root root 2048 Sep 24 2005 boot.cat -r--r--r-- 1 root root 140 Sep 24 2005 boot.msg -r--r--r-- 1 root root 1591 Sep 24 2005 f2 -r--r--r-- 1 root root 1675 Sep 24 2005 f3 -r--r--r-- 1 root root 256 Jan 11 2004 german.kbd -r--r--r-- 1 root root 9856 Sep 24 2005 isolinux.bin -r--r--r-- 1 root root 2119 Sep 24 2005 isolinux.cfg -r--r--r-- 1 root root 1565429 Sep 24 2005 linux -r--r--r-- 1 root root 78193 Sep 24 2005 logo.16 -r--r--r-- 1 root root 99784 Jun 27 2005 memtest -r--r--r-- 1 root root 865884 Sep 24 2005 minirt.gz
B.R.
satimis
satimis I guess you're a bit confused. Are you looking for the program 'grub'(the binary)? Type 'whereis grub'.
menu.lst is just the main grub config file created in the /boot/grub' directory after a regular install, and you would never find it in the live cd.
Hi maxIT
Tks for your advice.
I got itType 'whereis grub'
$ whereis grubAfter 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 DriveCode:grub: /sbin/grub /lib/grub /usr/share/man/man8/grub.8.gz
I have a 1G pendrive (Avixe Platinum Drive) created with 3 partitons.
# fdisk -l /dev/sdaPartition-1 /bootCode: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-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# ls -ls /mnt/sda1/boot/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/grub/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.gzCode: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
# grubgrub> find /myusbCode: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.]
(hd1,0)
grub> root (hd1,0)grub> setup (hd1,0)Code:Filesystem type is fat, partition type 0x6But I can't find file /boo/grub/grub.conf there.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.
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
DELL PowerEdge R730XD Server 2x E5-2690v4 2.6GHz =28 Cores 64GB H730 4xRJ45
$387.00
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE
$273.00
Cisco UCS C220 M4 1x Xeon E5-2667 V4 3.20GHZ 128GB DDR4-2400MHZ 2x 770W AC PSU
$129.99
Dell Poweredge R720xd 2x Xeon E5-2670 2.6GHz 16-Cores 64gb H710p 26x Trays
$339.99
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
DELL R630 SERVER 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU
$169.95
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
HP ProLiant DL380 Gen9 2U Server 24 BAY 2.5" Xeon E5-2680 v4 64GB RAM H240ar
$159.99
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$153.99
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00