Results 1 to 10 of 10

Thread: lilo not writing to /mnt/hda

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    lilo not writing to /mnt/hda

    I'm trying to install Knoppix to a partition on my second HD. But, I can't get lilo to write to the mbr of my 1st hd. I suppose that it is writing to the mbr of the 2nd hd instead. But, I'm just speculating about that.

    So, I tried creating a boot floppy from within Windows. Yet this does not work. I tried editing the lilo.conf file where knoppix is installed from knoppix running from CD. But, I have write permission problems and cannot make changes.

    Any suggestions?

    Darren

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    I'm trying to install Knoppix to a partition on my second HD.
    That should be no problem. You said 'trying' so have you succeeded or not?

    I suppose that it is writing to the mbr of the 2nd hd instead
    Actually there is only one MBR and it is in the first sector of the first hard drive. Since you don't tell us how you are trying to install LILO we don't have much to go on. During the install process it should prompt you about installing LILO to the root directory, the MBR or a floppy. If you make the floppy and boot with it then you should boot into Linux OK. If you've already installed Linux edit your lilo.conf file and then you need to re-run lilo

    /sbin/lilo

    That should do it. Post back with details if you need help.

    edit

    BTW you don't install to /mnt/hda you install to /dev/hda

  3. #3
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    lilo not writing to /mnt/hda

    That should be no problem. You said 'trying' so have you succeeded or not?
    I say "trying" because I've not been able to boot to knoppix from the HD. But, all files seem to copy to the partition I'm installing it to.

    Since you don't tell us how you are trying to install LILO we don't have much to go on. During the install process it should prompt you about installing LILO to the root directory, the MBR or a floppy.
    I'm trying to install lilo as part of the knx-hdinstall script. At the end of installation, you are asked to install lilo.

    Here's a little more detail regarding the steps I've taken. I started out following a little howto I found at http://www.freenet.org.nz/misc/knoppix-install.html. However, knx-hdinstall kept popping up German dialogue. So, I searched this forum and found a link to http://www.itm.tu-clausthal.de/~perle/knx/ where there was an English version of knx-hdinstall. I'm running it from a terminal window in KDE. I'm guessing that's OK. The script seems to run fine.

    I've tried to install twice. The first time I was offered the opportunity to create a boot floppy. I declined to do so, but wished I had. So, I accepted that and tried to install again and create a floppy. This time, it won't boot from the HD or from the floppy. It tries to boot from the floppy. But, then it hangs. I don't recall at what point or the exact error (I wasn't planning on getting help with that). I just figured that the floppy was bad. I was going to give it another try with a different floppy. But, I wanted to see if there was anything that I could do to improve my chances of getting lilo on the mbr before I spent any more time on it.

    Is that too much info??

    Darren

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    Is that too much info??
    Nope-just right.
    I assume you have only one hard drive-it is called /dev/hda. If you have multiple drives the 2nd one would be /dev/hdb the 3rd /dev/hdc and so on.
    I am also assuming that you are not dual booting.

    Try this:
    Relax- boot the Knoppix disk.
    Then do this:

    sudo cfdisk /dev/hda
    Cfdisk is a very easy to use virtual partition genie. It's very straightforward. If you have your own partitions already created then skip this next part.

    Make a swap file twice the size of your ram. Put it 'at the end' of the freespace-cfdisk will ask you 'beginning' or 'end' Format it with #82-Linux swap. You can easily learn how to do this within cfdisk and with info cfdisk.
    The second partition MUST BE AT LEAST 2300MB. I would make it bigger. Format it with #83 Linux. Don't forget- write the partition table to the disk, reboot with Knoppix cd again.

    ***make sure everything works as you want it to - that is be sure to use all cheat codes you need for wheelmouse, screensize, etc.
    Then do this:
    sudo /usr/local/bin/knx-hdinstall
    I have not experienced the German dialogue boxes but I know that they exist. If you have a workaround GREAT. If not burn the English ISO. Do not rush through the install. Read everything. You can still surf for info while you are installing if need be. (try that with m$)
    I prefer the ext3 file system- very reliable. Make sure you select it with the space bar. Simply moving the focus to that selection won't work! Make the boot floppy when asked - you may need it. Select YES for KDE as your default desktop (unless you don't have the ram).
    Here's the important part- Install LILO to the MBR.
    NOT the floppy
    NOT the root directory
    The Master Boot Record

    When it says "install complete" do this:
    reboot
    It will spit out the cd for you.
    When you boot into your freshly installed Knoppix- you actually have Debian! SCORE! If you log in as root you will get the KDE wizard. Then do this:
    adduser
    I would open the KDE Control Center on the taskbar. Familiariz yourself with it because you are about to interpret some German.
    Then 'logout' from the taskbar and log in as your new user name.
    DO NOT PANIC! It will be in German. Open the Control Panel as before.
    Expand the menu item named "personlischze" (I obviously do not speak German) then expand the menu item "land&sprauge" (again - I'd like to apologize to our German speaking friends). Select North Amerika from the pull down menu. You'll have to log out and back in to change things. Don't forget to once again open the control center>Peripherals>Keyboard and select your default keyboard map.
    And that's that.

  5. #5
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    lilo not writing to /mnt/hda

    Thanks for all of the detailed suggestions.

    This is going on my second HD. And, I am dual booting. I already have the partitions created, as well.

    I just finished trying to get the "work around" for the German dialogue boxes. But, the link seems to be down at the moment. So, I'll have to wait. I don't know why I'm getting German language there but everything else is English. Oh well, I'll get tomorrow.

    Here's the important part- Install LILO to the MBR.
    That's the odd part. I thought I did (twice).

    Do you know of a way that I could edit the lilo.conf file on the Knoppix install? I tried sudo vi /mnt/hdb5/lilo.conf. But, I can only open it in "read only". If I could figure out a way to edit it, I'd be set.

    Thanks
    Darren

  6. #6
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    Do you know of a way that I could edit the lilo.conf file on the Knoppix install? I
    cd /etc
    sudo mcedit lilo.conf


    You can use vi if you like- I just think Midnight Commander (mc)is much friendlier and easier to understand.

  7. #7
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    lilo not writing to /mnt/hda

    Thanks.

    You can use vi if you like- I just think Midnight Commander (mc)is much friendlier and easier to understand.
    But, my problem isn't using vi. I can get around in vi quite well. It's that as a knoppix user, I don't have permission. I'm having a problem saving changes.

    Darren

  8. #8
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    Well then just do a

    cd /etc
    sudo vi fstab


    That should let you save changes.

    If you aren't part of the sudoers group though it won't work. You can always become root to save changes but the right way would be 'sudo' or superuser do. To add yourself to the sudoers group- become root
    su
    -give it the password

    cd /etc
    vi group


    here's my group- (part of it anyway)

    cdrom:24:knoppix,glenn
    floppy:25:knoppix,glenn
    tape:26:knoppix,backup
    sudo:27:knoppix,glenn
    audio:29:knoppix,glenn

    See how I just added a comma and then my name. That should give you permissions.

  9. #9
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    success

    Finally .

    For the benefit of the hopelessly curious and anyone who may follow this thread seeking solutions for their own problems, here's what I did. It finally clicked that the permission problems were due to the partition being mounted -ro. So, (as close as I can recall) I did the following:

    sudo umount /mnt/hdb6
    sudo mount -t ext3 /dev/hdb6 /mnt/hdb6
    chroot /mnt/hdb6
    sudo vi /etc/group (I think I had to do this)
    sudo vi /etc/lilo.conf (made edits)
    exit
    reboot

    Thanks for all of the help.
    Darren

  10. #10
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    Thanks for letting us know you got it fixed.

Similar Threads

  1. Reinstall lilo to hda, using hda lilo.conf and knoppix live
    By tomjermy in forum Hardware & Booting
    Replies: 1
    Last Post: 03-17-2005, 01:07 AM
  2. Writing it to CD
    By irvine in forum The Lounge
    Replies: 4
    Last Post: 12-02-2004, 03:27 AM
  3. Writing to / and subdirs.
    By bikerman in forum General Support
    Replies: 1
    Last Post: 04-15-2004, 12:22 AM
  4. writing problem with usb pen
    By shadinio in forum Hardware & Booting
    Replies: 1
    Last Post: 03-25-2004, 09:09 PM
  5. Writing to a floppy
    By Coma0 in forum General Support
    Replies: 2
    Last Post: 03-17-2003, 02:04 AM

Posting Permissions

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


8 Ports Unmanaged Industrial Ethernet Switch Network Gigabit Ethernet Switch picture

8 Ports Unmanaged Industrial Ethernet Switch Network Gigabit Ethernet Switch

$76.50



HP Procurve 2824 24 Gigabit Ports 10/100/1000 External Managed Switch J4903A picture

HP Procurve 2824 24 Gigabit Ports 10/100/1000 External Managed Switch J4903A

$74.99



Cisco Meraki MS120-48LP 48 Port Blade Ethernet Switch UNCLAIMED picture

Cisco Meraki MS120-48LP 48 Port Blade Ethernet Switch UNCLAIMED

$799.00



Cisco SG110 8 Port Gigabit Ethernet Switch SG110D-08-UK picture

Cisco SG110 8 Port Gigabit Ethernet Switch SG110D-08-UK

$39.00



HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A picture

HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A

$30.95



New Linksys SE3005 5-port Gigabit Ethernet Switch picture

New Linksys SE3005 5-port Gigabit Ethernet Switch

$18.99



New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub picture

New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub

$11.49



HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch picture

HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch

$34.99



Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



HP Aruba 2530-8G-PoE+ 8x PoE+ RJ45 2x SFP Gigabit Switch J9774A No AC Adapter picture

HP Aruba 2530-8G-PoE+ 8x PoE+ RJ45 2x SFP Gigabit Switch J9774A No AC Adapter

$37.99