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
  •  


Dell Precision R3930 Rackmount Workstation | Core I9-9900 | 32GB 2666 | RTX 4000 picture

Dell Precision R3930 Rackmount Workstation | Core I9-9900 | 32GB 2666 | RTX 4000

$1499.99



Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 256GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 256GB 2x10G SFP+ 2x2200W

$3472.00



Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 64GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 64GB 2x10G SFP+ 2x2200W

$3180.00



Dell Desktop Computer 16GB RAM 512GB SSD Intel Core i5 8th Gen. Windows 11 Pro picture

Dell Desktop Computer 16GB RAM 512GB SSD Intel Core i5 8th Gen. Windows 11 Pro

$275.60



Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ... picture

Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ...

$689.99



HP EliteDesk Mini Computer i5 8GB 320GB Drive Windows 11 Pro Desktop PC picture

HP EliteDesk Mini Computer i5 8GB 320GB Drive Windows 11 Pro Desktop PC

$59.99



Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4... picture

Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...

$489.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



ALLEGIANCE Desktop Computer Gaming PC: Intel 8 Core 128GB RAM, 2TB SSD, GeForce picture

ALLEGIANCE Desktop Computer Gaming PC: Intel 8 Core 128GB RAM, 2TB SSD, GeForce

$687.99



FAST Dell TOUCHSCREEN 8th Gen Intel Quad Core 16GB RAM Pick SSD Wi-Fi BT Win11 picture

FAST Dell TOUCHSCREEN 8th Gen Intel Quad Core 16GB RAM Pick SSD Wi-Fi BT Win11

$199.00