Results 1 to 5 of 5

Thread: About bootloader

  1. #1
    Member registered user
    Join Date
    Jun 2003
    Location
    Hong Kong
    Posts
    49

    About bootloader

    Hi folks,

    LiveCD 4.0.2

    I can't find the bootloader "grub" and its menu.lst

    # find / -name menu.lst
    Code:
    /ramdisk/home/knoppix/tmp/menu.lst
    /UNIONFS/home/knoppix/tmp/menu.lst
    # find / -name grub -type d
    Code:
    /KNOPPIX/lib/grub
    /KNOPPIX/usr/share/doc/grub
    /UNIONFS/lib/grub
    /UNIONFS/usr/share/doc/grub
    They seem to be documents. Where does "Grub" reside?

    Please advise. TIA

    B.R.
    satimis

  2. #2
    Senior Member registered user
    Join Date
    Jan 2006
    Location
    California, USA
    Posts
    122
    Code:
    ls -l /boot/grub

  3. #3
    Member registered user
    Join Date
    Jun 2003
    Location
    Hong Kong
    Posts
    49
    Hi dvryknopper,

    Tks for your advice.

    # ls -l /media/cdrom1/boot/
    Code:
    total 2
    dr-xr-xr-x  2 root root 2048 Aug 22  2005 isolinux
    # ls -l /media/cdrom1/boot/isolinux/
    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
    grub is not there.

    B.R.
    satimis

  4. #4
    Senior Member registered user
    Join Date
    Apr 2005
    Location
    italy
    Posts
    245
    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.

  5. #5
    Member registered user
    Join Date
    Jun 2003
    Location
    Hong Kong
    Posts
    49
    Hi maxIT

    Tks for your advice.

    Type 'whereis grub'
    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

Similar Threads

  1. How to use Extlinux bootloader?
    By fossiili in forum Hardware & Booting
    Replies: 0
    Last Post: 03-03-2008, 03:39 PM
  2. bootloader
    By bluenose50 in forum General Support
    Replies: 2
    Last Post: 01-28-2005, 10:15 PM
  3. nt bootloader with image from dd?
    By Alterscape in forum Hdd Install / Debian / Apt
    Replies: 8
    Last Post: 12-29-2004, 01:54 AM
  4. bootloader timeout
    By rrfish72 in forum General Support
    Replies: 12
    Last Post: 07-17-2004, 05:25 PM
  5. no BootLoader with knoppix 3.4
    By mschievano in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 05-12-2004, 06:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1.92TB SSD SATA 2.5 SAMSUNG MZ-7LM1T90 PM863 MZ7LM1T9HCJM Tested 93%+ picture

1.92TB SSD SATA 2.5 SAMSUNG MZ-7LM1T90 PM863 MZ7LM1T9HCJM Tested 93%+

$45.92



Samsung 256GB 2.5

Samsung 256GB 2.5" 7mm Solid State Drive SSD

$13.99



Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture

Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot

$188.99



Netac 2TB 1TB 512GB 240GB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot picture

Netac 2TB 1TB 512GB 240GB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot

$108.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$13.99



Crucial MX500 CT250MX500SSD1 250 GB SATA III 2.5 in Solid State Drive picture

Crucial MX500 CT250MX500SSD1 250 GB SATA III 2.5 in Solid State Drive

$14.99



WD BLUE 3D NAND 250GB 2.5

WD BLUE 3D NAND 250GB 2.5" SATA Laptop SSD Solid State Tested,Wiped -WDS250G2B0A

$14.44



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture

Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot

$109.99



Netac 2TB 1TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 2TB 1TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$109.99