LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-25-2001, 08:51 AM   #1
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
altering lilo on floppy boot


hi

i am currently booting yo linux from floppy, and i need to enable scsi emulation for ide, and also to enable the framebuffer.

in my normal lilo.conf on /boot i have included the lines

append=" hdc=ide-scsi "
and
vga=791

both of which work fine, but i think lilo works differently when booting from floppy, so how do i change and effect the lilo.conf on my boot floppy?
 
Old 10-25-2001, 09:01 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
As long as the kernel image to boot is on the HDD, I believe that they should work. Incidently, which distro are you using as I've always found my lilo.conf file in /etc.
 
Old 10-25-2001, 09:08 AM   #3
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Original Poster
Rep: Reputation: 30
sorry, i'm a prat, yeah it's /etc of course.

sorry, but what does 'they should work' mean?? i know they work when i boot from hard disk, but i need to know how to update lilo on disk, cos floppies don't have MBR's do they..?
 
Old 10-25-2001, 09:44 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
The only boot disk I've ever used is the one you can setup on installation of Linux (Mandrake, in my case). I believe that this simply has a lilo.conf file that points to the kernel image on the HDD, rather than having another image on the floppy, in which case, I believe that simply adding the lines to the lilo.conf file on your floppy will work just as well as if you were actually booting from the HDD (as, in theory, you are). If I'm wrong, then my most sincere appologies for wasting your time - in which case, I shall be learning something aswell.
 
Old 10-25-2001, 12:45 PM   #5
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Original Poster
Rep: Reputation: 30
nrrg...

i use a boot disk as lilo on my system is defaulted to windwos, and i can't change it, and i've got andditional hardware, which slows the boot down, so by putting in a boot disk, i can go to the loo while linux boots!

i've tried running lilo to update the boot disk, created using mkbootdisk, but it always complains that various files aren't where they should be, which i can see, cos the fs would look different at boot time, as it wouldn't have mounhted /dev/hda5 or anything.. my floppy lilo says:

boot=/dev/fd0H1440
timeout=100
message=/boot/message
prompt
image=/vmlinuz-2.4.8-22mdk
label=linux
root=/dev/hda5
append=" hdc=ide-scsi "
initrd=/initrd.img

but simply changing the append line doesn't affect it. I know if it's on a HD then you need to run lilo, but i thought i read somewhere that you don't on a floppy, cos there's no MBR to update....
naturally, all paths listed are relative to the floppy disk, not the normal file system...

so what do i need to do to make my changes in lilo.conf have effect?
 
Old 10-25-2001, 09:44 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Why can't you use the lilo on your hard drive to boot into linux and why can't you change the default from windows to linux?

It's true there is no mbr on the floppy, but there is a boot sector that lilo gets written to.

When I had TurboLinux installed, I made a boot disk using mkbootdisk. I looked at the mkbootdisk file and found it to be a script file. The file used the command /sbin/lilo -r /mount_point to set up lilo on the floppy. Try it, but change ' /mount_point ' to where you mount the floppy. Let's say you mount it in the ' /mnt/floppy ' directory. Then it would be /sbin/lilo -r /mnt/floppy.
 
Old 10-26-2001, 03:30 AM   #7
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Original Poster
Rep: Reputation: 30
i can't change lilo on my HD, as my girlfriend doesn't understand linux, and gets scared when windows isn't around....

and i have an IDE pci controller, which takes time to scan drives, which i don't want to wait for, so a boot disk fixes both problems.

OK? :-)
right, so i'm trying to update the floppy then...

lilo -r /mnt/floppy

which is the right location, but despite being root, and the device is:

brwxrwxrwx 1 root root 2, 28 Apr 14 2001 /dev/fd0H1440

i keep getting permission denied errors... The disk is entire writeable to root as well...

any ideas?
 
Old 10-26-2001, 09:11 PM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
First, mount the floppy disk then check your /mnt and /floppy directories to see if the permissions are correct. Do an ls -l /mnt and an ls -l /mnt/floppy. You'll need to have read and write permission. If you don't, then use chmod u+rw /mnt and chmod u+rw /mnt/floppy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup LILO to boot from CD-rom or floppy Razze Linux - General 3 10-10-2005 01:59 AM
GRUB LILO boot floppy idris1388 Linux - Software 2 04-12-2005 06:53 AM
2.6.6, LILO and boot floppy... iZvi Linux - General 1 06-06-2004 07:08 AM
LILO Boot Floppy - RH9 uxu Linux - Newbie 2 10-12-2003 12:55 PM
Lilo boot disk on floppy TarFile Slackware 2 03-17-2003 08:10 PM


All times are GMT -5. The time now is 08:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration