Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Question about KNOPPIX bootable floppy image with GRUB

  1. #1
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    29

    Question about KNOPPIX bootable floppy image with GRUB

    I downloaded KNOPPIX bootable floppy image - boot.img - from the web site http://debian.tu-bs.de/knoppix/CeBit/, then I tried use GRUB for DOS to boot my notebook up with boot.img.

    I tried three different method to boot it, however, I got the following error message
    "Inconsistent Filesystem Structure.
    Error 17, ...
    "

    The following a,b,c are what I have tried in the GRUB config file menu.lst:

    a. title boot.img [Knoppix original 1]
    map --read-only (hd0,0)/boot/boot.img (fd0)
    root (fd0)
    kernel /linux24
    initrd /minirt24.gz

    b. title boot.img [Knoppix original 2]
    map --read-only (hd0,0)/boot/boot.img (fd0)
    root (fd0)
    kernel /boot/bootimg/linux24
    initrd /boot/bootimg/minirt24.gz
    (P.S.:I use WinImage to extract all of the content of boot.img to C:\boot\bootimg)

    c. title boot.img [Knoppix original 3]
    map --read-only (hd0,0)/boot/boot.img (fd0)
    chainloader (hd0,0)/boot/boot.img
    rootnoverify (fd0)
    boot

    P.S. I use WinImage to write the boot,img to 1.44 floppy disk, and this floppy can boot up my notebook very well.

    What is the problem with it? Thank you in advanced.

  2. #2
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    This is how I create my floppy boot grub, exact copy of my grub hdd installation without the need of kanotix ( what I'm using ) boot image.

    1) format the floppy : mke2fs /dev/fd0
    2) mount the floppy : mount /dev/fd0 /mnt/auto/floppy
    3) make directory : mkdirhier /mnt/auto/floppy/boot/grub
    4) change dir to grub on hd : cd /boot/grub
    5) copy files needed to boot grub : cp stage1 stage2 /mnt/auto/floppy/boot/grub
    6) copy all files so that floppy grub is exactly the same as hd: cp *.* /mnt/auto/floppy/boot/grub
    7) unmount floppy : umount /dev/fd0

    to create bootable floppy:
    a) Open grub interactive mode (grub>) : grub
    grub> device (fd0) /dev/fd0
    grub> root (fd0)
    grub> setup (fd0)
    grub> quit

    You're done and now have a boot floppy with nice grub menu. This procedure is for people who are using grub to boot and want floppy as a backup incase their grun got corrupted.

    In your case, which I beleived you didn't installed grub on your hd, then you need a little work. You can follow the above procedure but need some editing.
    1) You need to edit menu.lst, something like this:
    Example:

    title Debian GNU/Linux, kernel
    root (hd1,4) **Your linux partition
    kernel /boot/vmlinuz root=/dev/hdb5 ro ramdisk_size=100000 lang=de apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce vga=791
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.6-kanotix-3
    root (hd1,4)
    kernel /boot/vmlinuz-2.6.6-kanotix-3 root=/dev/hdb5 ro ramdisk_size=100000 lang=de apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce vga=791
    savedefault
    boot

    title Windows 2K/XP/2003 (hda1)
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    savedefault

    title Windows 95/98/ME (hdd1)
    rootnoverify (hd2,0)
    makeactive
    chainloader +1
    savedefault

    2) Edit your device.map, should have all your harddisk:
    example:
    (hd0) /dev/hda
    (hd1) /dev/hdb
    (hd2) /dev/hdd

    3) Copy message from /boot/message from hd to /boot/message to floppy. Then edit floppy menu.lst to reflect where your message is.
    Example:
    # Pretty colours
    color cyan/blue white/blue
    gfxmenu (fd0)/boot/message

    That's all to it. I hope this will work. Good luck

  3. #3
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    6) copy all files so that floppy grub is exactly the same as hd: cp *.* /mnt/auto/floppy/boot/grub
    Actually you only need to copy menu.lst and device.map.

  4. #4
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    29
    Quote Originally Posted by shah
    This is how I create my floppy boot grub, exact copy of my grub hdd installation without the need of kanotix ( what I'm using ) boot image.

    1) format the floppy : mke2fs /dev/fd0
    2) mount the floppy : mount /dev/fd0 /mnt/auto/floppy
    3) make directory : mkdirhier /mnt/auto/floppy/boot/grub
    4) change dir to grub on hd : cd /boot/grub
    5) copy files needed to boot grub : cp stage1 stage2 /mnt/auto/floppy/boot/grub
    6) copy all files so that floppy grub is exactly the same as hd: cp *.* /mnt/auto/floppy/boot/grub
    7) unmount floppy : umount /dev/fd0

    to create bootable floppy:
    a) Open grub interactive mode (grub>) : grub
    grub> device (fd0) /dev/fd0
    grub> root (fd0)
    grub> setup (fd0)
    grub> quit

    You're done and now have a boot floppy with nice grub menu. This procedure is for people who are using grub to boot and want floppy as a backup incase their grun got corrupted.

    In your case, which I beleived you didn't installed grub on your hd, then you need a little work. You can follow the above procedure but need some editing.
    1) You need to edit menu.lst, something like this:
    Example:

    title Debian GNU/Linux, kernel
    root (hd1,4) **Your linux partition
    kernel /boot/vmlinuz root=/dev/hdb5 ro ramdisk_size=100000 lang=de apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce vga=791
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.6-kanotix-3
    root (hd1,4)
    kernel /boot/vmlinuz-2.6.6-kanotix-3 root=/dev/hdb5 ro ramdisk_size=100000 lang=de apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce vga=791
    savedefault
    boot

    title Windows 2K/XP/2003 (hda1)
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    savedefault

    title Windows 95/98/ME (hdd1)
    rootnoverify (hd2,0)
    makeactive
    chainloader +1
    savedefault

    2) Edit your device.map, should have all your harddisk:
    example:
    (hd0) /dev/hda
    (hd1) /dev/hdb
    (hd2) /dev/hdd

    3) Copy message from /boot/message from hd to /boot/message to floppy. Then edit floppy menu.lst to reflect where your message is.
    Example:
    # Pretty colours
    color cyan/blue white/blue
    gfxmenu (fd0)/boot/message

    That's all to it. I hope this will work. Good luck
    Thank you very much for your detail reply. I have installed GRUB for DOS to my first hard disk partition, says, (hd0,0). What I am trying to do is use GRUB to boot KNOPPIX iso-image stored in NTFS partition.

    I have solved the above problem, I use WinImage open boot.img and save it again as boot.ima, then everything is okey.

    Could you tell me whether the following commands are running under Linux or Windows:
    1) format the floppy : mke2fs /dev/fd0
    2) mount the floppy : mount /dev/fd0 /mnt/auto/floppy
    3) make directory : mkdirhier /mnt/auto/floppy/boot/grub
    4) change dir to grub on hd : cd /boot/grub
    5) copy files needed to boot grub : cp stage1 stage2 /mnt/auto/floppy/boot/grub
    6) copy all files so that floppy grub is exactly the same as hd: cp *.* /mnt/auto/floppy/boot/grub
    7) unmount floppy : umount /dev/fd0

    Thank you again.

  5. #5
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    29
    Another question:

    I copy the files bzImage and initrd.gz from the CD-Rom folder G:\isolinux, and modify the content of menu.lst (I am using GRUB for DOS) as following:

    # For booting Linux
    title Linux
    root (hd0,0)
    kernel /boot/bzImage
    initrd /boot/initrd.gz

    Wen I choose this item, the execution result is "Error 17: Inconsistent filesystem struction". What should I do? Thanks.

  6. #6
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    All above procedure is done in linux.
    # For booting Linux
    title Linux
    root (hd0,0)
    kernel /boot/bzImage
    initrd /boot/initrd.gz
    Inconsistent filesystem structure
    This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.
    See you didn't include where is your root partition, grub cannot find your image:
    ex:
    kernel /boot/bzImage root=/dev/hda*x

    I might be wrong, I never use grub for dos before.

  7. #7
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    29
    Quote Originally Posted by shah
    All above procedure is done in linux.
    # For booting Linux
    title Linux
    root (hd0,0)
    kernel /boot/bzImage
    initrd /boot/initrd.gz
    Inconsistent filesystem structure
    This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.
    See you didn't include where is your root partition, grub cannot find your image:
    ex:
    kernel /boot/bzImage root=/dev/hda*x

    I might be wrong, I never use grub for dos before.
    Thanks for your reply.

    I try the following config:
    1. # For booting Linux
    title Linux
    root (hd0,0)
    kernel /boot/bzImage root=/dev/hda1/linux4/base.img
    initrd /boot/initrd.gz

    and

    2. # For booting Linux
    title Linux
    root (hd0,0)
    kernel /boot/bzImage root=/dev/hda1/linux4/
    initrd /boot/initrd.gz

    For both config 1 and 2, I still got the same error message: "Error 17: Inconsistent Fileystem Structure."

    Then I tried the config step by step in the GRUB command line, the error message displayed after I entered the "kernel .........." line.

  8. #8
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Portland, OR USA
    Posts
    568
    wslkevin: Before you go any further learning GRUB,

    a) what version of Knoppix are you using? and
    b) does your computer have a CD-ROM drive? and
    c) are you trying to boot the ISO from an NTFS partition?

    Because if you're trying to boot to the ISO using the files from "regular" Knoppix, you won't be able to boot without your computer having access to the Knoppix CD.

    Why? Because Knoppix first boots using a compressed file system ("minirt24.gz" or "minirt26.gz", depending on which kernel you're using) that doesn't include the NTFS driver. It has to get the NTFS driver off the CD.

    Now, if you have access to the Japanese edition of Knoppix (or simply its kernel and modified miniroot), you can. They included the NTFS driver in their miniroot and modified the startup script accordingly.

  9. #9
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    root=/dev/hda1/linux4/
    This line suppose to reffer to where you install
    kernel /boot/bzImage
    : root=/dev/hda1

    I don't think you need this two lines:
    kernel /boot/bzImage
    initrd /boot/initrd.gz
    It belongs to syslinux and to boot cd.

    I think you need is something like this:
    title Linux(kernel2.4)
    root (hd0,0)
    kernel /boot/vmlinuz-2.4.26 root=/dev/hda1 ro ramdisk_size=100000 lang=us
    savedefault
    boot

    You do install knoppix on hda1 right?

  10. #10
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    29
    Quote Originally Posted by eco2geek
    wslkevin: Before you go any further learning GRUB,

    a) what version of Knoppix are you using? and
    b) does your computer have a CD-ROM drive? and
    c) are you trying to boot the ISO from an NTFS partition?

    Because if you're trying to boot to the ISO using the files from "regular" Knoppix, you won't be able to boot without your computer having access to the Knoppix CD.

    Why? Because Knoppix first boots using a compressed file system ("minirt24.gz" or "minirt26.gz", depending on which kernel you're using) that doesn't include the NTFS driver. It has to get the NTFS driver off the CD.

    Now, if you have access to the Japanese edition of Knoppix (or simply its kernel and modified miniroot), you can. They included the NTFS driver in their miniroot and modified the startup script accordingly.
    I don't have a CD-ROM, yes I am trying operate KNOPPIX off NTFS partition.

Page 1 of 2 12 LastLast

Similar Threads

  1. Install Knoppix withou bootable device like floppy or CD
    By jrsath0me in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 07-16-2004, 06:55 PM
  2. Bootable floppy for USB Knoppix
    By Zentesis in forum General Support
    Replies: 0
    Last Post: 08-02-2003, 08:45 PM
  3. Replies: 2
    Last Post: 03-19-2003, 04:41 AM
  4. bootable floppy
    By o_corn in forum Customising & Remastering
    Replies: 5
    Last Post: 03-10-2003, 10:30 PM
  5. Making the HDD install bootable with Grub...
    By ironstorm in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 11-23-2002, 08:26 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
  •  


IBM QRadar xx29 Server 4412Q2A picture

IBM QRadar xx29 Server 4412Q2A

$200.00



IBM System x3550 M4 Server 2 x Intel Xeon E5-2609 36GB RAM No HDDs picture

IBM System x3550 M4 Server 2 x Intel Xeon E5-2609 36GB RAM No HDDs

$149.99



IBM System x3250 M4 Server Intel Xeon E3-1220 3.10GHz 8GB RAM No HDDs picture

IBM System x3250 M4 Server Intel Xeon E3-1220 3.10GHz 8GB RAM No HDDs

$99.99



IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server  picture

IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server

$209.98



IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES picture

IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES

$27.25



IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



ibm server z series picture

ibm server z series

$16000.00



IBM SYSTEM x3200 M2 Server - HDD wiped, No OS picture

IBM SYSTEM x3200 M2 Server - HDD wiped, No OS

$75.00



IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED picture

IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED

$109.95



IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture

IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU

$129.99