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

Thread: Boot from HD Partition without Lilo after hd-Install

  1. #1
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    10

    Boot from HD Partition without Lilo after hd-Install

    I've installed Knoppix 3.4 to /dev/hda5, but didn't install Lilo into the MBR. I'd now like to run the installation from the HD partition.
    I've tried booting from the CD and run knoppix root=/dev/hda5, but the CD version is started. What do I need to do run boot the /dev/hda5 partition (which in turn allows me to run lilo)?

    Or am I totally confused?

    Thanks,
    Andi

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    I don't think the CD can do this. What I can think of is either using the windows bootloader to boot lilo (if you have windows), or alternatively making a boot floppy.
    Your install isn't lost though, you can boot the CD and chroot to hda5 to do one or the other.

  3. #3
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    10
    I see. I assume I'd need to:

    -boot cd
    -chroot /dev/hda5

    then I'd like to:
    -run lilo
    -dd if=/dev/hda5... to get the boot sector
    -copy to ntfs partition
    -edit boot.ini

    does that make sense?

    Thanks,
    Andreas

  4. #4
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    10
    Doesn't work:

    after chroot I can't run lilo:

    sudo lilo
    Fatal: open /dev/hda5: Permission denied

    How can I run lilo to get the boot sector into /dev/hda5???

    Thanks,
    Andi

  5. #5
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    10
    OK, found the answer in a posting by tx:

    mount -o dev /dev/hda5 /mnt/hda5; chroot /mnt/hda5

    seems to do the trick- not sure what the difference is?

    However, WinXP boot loader still doesn't work, even now that I have the new boot sector, the XP Boot loader hangs, I assume my lilo.conf settings must be wrong.

    Yuck- long way...

    Thanks,
    Andi

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    For the XP bootloader you need to copy the bootsector file to C:\ after having run lilo and you only need to run lilo when you've made some changes to /etc/lilo.conf.
    The syntax, if I remeber it correctly, was:
    dd if=/dev/hda5 of=/bootsect.lnx bs=512 count=1
    My C:\boot.ini has a line at the end: C:\bootsect.lnx="Knoppix"
    The procedure is explained at lenght in: http://www.knoppix.net/forum/viewtopic.php?t=4174

  7. #7
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    10
    I understand that and have actually done so- only the new BS doesn't boot. It's certainly written by Lilo (as the old BS contained only zeros), but doesn't boot- machine hangs.

    Any ideas?

    Thanks,
    Andi

  8. #8
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Hmm, worked for me. Can you post your lilo.conf and boot.ini?
    Other than that, don't know

  9. #9
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    10
    OK, stripped out all comments:

    # /etc/lilo.conf - See: 'lilo(' and 'lilo.conf(5)',
    lba32

    # Specifies the boot device. This is where Lilo installs its boot
    boot=/dev/hda5

    # Specifies the device that should be mounted as root. ('/')
    #
    root=/dev/hda5

    bitmap=/usr/share/lilo/contrib/debian.bmp
    bmp-colors=1,,0,2,,0
    bmp-table=120p,173p,1,15,17
    bmp-timer=254p,432p,1,0,0

    install=bmp

    delay=20

    prompt
    timeout=50

    map=/boot/map

    vga=791

    default="Linux(2.6)-2"

    image=/boot/vmlinuz-2.4.25
    label="Linux(2.4)-1"
    initrd=/boot/initrd-2.4.25.gz
    append="ramdisk_size=100000 init=/etc/init lang=de apm=power-off nomce"
    read-only

    image=/boot/vmlinuz-2.6.3
    label="Linux(2.6)-2"
    initrd=/boot/initrd-2.6.3.gz
    append="ramdisk_size=100000 init=/etc/init lang=de apm=power-off nomce"
    read-only


    other=/dev/hda1
    label="Win XP/2K"

  10. #10
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    10
    [boot loader]
    timeout=1
    default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microso ft Windows XP Professional" /fastdetect /noirqscan
    C:\BOOTSECT.DEB="Debian Linux"


    WinXP is hda1, Debian is hda5

Page 1 of 2 12 LastLast

Similar Threads

  1. Poor Man's Install on a VFAT boot with LILO
    By Radfahrer in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 07-07-2005, 04:29 PM
  2. Trouble with LILO, fresh install won't boot
    By lwsimon in forum Hdd Install / Debian / Apt
    Replies: 7
    Last Post: 01-31-2005, 02:31 PM
  3. HD install, LILO to GRUB conversion, boot error message.
    By ocean in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-01-2004, 01:26 PM
  4. lilo graphical menu (install=bmp) and boot parameters
    By knulle in forum General Support
    Replies: 3
    Last Post: 03-18-2004, 12:03 PM
  5. Post Hdd install boot (lilo) question
    By bigjohn in forum Hdd Install / Debian / Apt
    Replies: 18
    Last Post: 10-04-2003, 06:43 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 Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$149.99



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$248.00



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W

$524.99



Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays picture

Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays

$599.99



Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD picture

Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD

$119.99



Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00