This is a discussion on question on MBR (to verify) within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, Until now I booted my Slack with a floppy. Now I want to boot it directly from harddisk. ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Huub wrote: > Hi, > > Until now I booted my Slack with a floppy. Now I want to boot it > directly from harddisk. As I read 'man lilo', I understand it says that > 'lilo -M' will write lilo to the MBR. Is this a correct assumption? > > Thanks > > Huub I'm not sure either, maybe someone will be more accurate than me but hope this will help. You should first edit your /etc/lilo.conf and modify boot=/dev/fd0 to boot=/dev/hda and check the root=/dev/hdax if any. accordingly. But, I'm not sure of myself so be careful. Jacques |
| |||
| Huub wrote: > Hi, > > Until now I booted my Slack with a floppy. Now I want to boot it > directly from harddisk. As I read 'man lilo', I understand it says that > 'lilo -M' will write lilo to the MBR. Is this a correct assumption? > No. That's the wrong thing to do. That installs a standard MBR, and is intended as a way to uninstall lilo if you've lost your boot sector backup. The correct way to do it is lilo -b /dev/hdx or /dev/sdx (whichever hard disk it is). Or change the boot= line in lilo.conf. |
| |||
| MikeyD wrote: > Huub wrote: > > >>Hi, >> >>Until now I booted my Slack with a floppy. Now I want to boot it >>directly from harddisk. As I read 'man lilo', I understand it says that >>'lilo -M' will write lilo to the MBR. Is this a correct assumption? >> > > No. That's the wrong thing to do. That installs a standard MBR, and is > intended as a way to uninstall lilo if you've lost your boot sector backup. > The correct way to do it is lilo -b /dev/hdx or /dev/sdx (whichever hard > disk it is). Or change the boot= line in lilo.conf. the boot= line says /dev/hdc2. So 'lilo -b /dev/hdc' will install lilo in the MBR of /dev/hdc and I will be booting OK? |
| |||
| Huub wrote: > Hi, > > Until now I booted my Slack with a floppy. Now I want to boot it > directly from harddisk. As I read 'man lilo', I understand it says that > 'lilo -M' will write lilo to the MBR. Is this a correct assumption? > > Thanks > > Huub Hi. Put this in your /etc/lilo.conf file: prompt timeout=50 default=Slack-2.4.25 boot=/dev/hda map=/boot/map install=/boot/boot.b message=/boot/message image=/boot/vmlinuz label=Slack-2.4.22 root=/dev/hda1 read-only image=/boot/linux-2.4.25 label=Slack-2.4.25 root=/dev/hda1 read-only image=/boot/linux-2.6.4 label=Slack-2.6.4 root=/dev/hda1 read-only other=/dev/hda3 optional label=Windows As you can see, i've got several options at startup, i can boot up with diferent kernel versions, and i can even boot Windows in another partition. Change my settings to your needs. I've got 4 options at startup but you can delete it and have just one. You can either change the default bootable option (OS) with the parameter: "default=Slack-2.4.25" Change it to whatever you want, just have to be equal the corresponding label parameter. Enjoy. NOTE: After changing lilo.conf don't forget to run this comand: lilo That's all. Best regards, Nuno Paquete. |
| |||
| >>>Until now I booted my Slack with a floppy. Now I want to boot it >>>directly from harddisk. As I read 'man lilo', I understand it says that >>>'lilo -M' will write lilo to the MBR. Is this a correct assumption? >>> >> >> No. That's the wrong thing to do. That installs a standard MBR, and is >> intended as a way to uninstall lilo if you've lost your boot sector >> backup. The correct way to do it is lilo -b /dev/hdx or /dev/sdx >> (whichever hard disk it is). Or change the boot= line in lilo.conf. > the boot= line says /dev/hdc2. So 'lilo -b /dev/hdc' will install lilo > in the MBR of /dev/hdc and I will be booting OK? Yes, that will be fine. But if you plan on keeping it there long-term, it's probably better style to change lilo.conf to say boot=/dev/hdc and then you can run lilo without any options. |
| |||
| MikeyD wrote: >>>>Until now I booted my Slack with a floppy. Now I want to boot it >>>>directly from harddisk. As I read 'man lilo', I understand it says that >>>>'lilo -M' will write lilo to the MBR. Is this a correct assumption? >>>> >>> >>>No. That's the wrong thing to do. That installs a standard MBR, and is >>>intended as a way to uninstall lilo if you've lost your boot sector >>>backup. The correct way to do it is lilo -b /dev/hdx or /dev/sdx >>>(whichever hard disk it is). Or change the boot= line in lilo.conf. >> >>the boot= line says /dev/hdc2. So 'lilo -b /dev/hdc' will install lilo >>in the MBR of /dev/hdc and I will be booting OK? > > > Yes, that will be fine. But if you plan on keeping it there long-term, it's > probably better style to change lilo.conf to say boot=/dev/hdc and then you > can run lilo without any options. I did it, but to no avail. I also changed the bootable-flag from / to /boot. When booting from harddisk, it keeps coming with LI 99. Luckily I still have the boot-floppy. Any idea? |
| ||||
| "Huub" <v.niekerk@freeler.nl> wrote in message news:ynKtc.539$9n5.68@amstwist00... > MikeyD wrote: > >>>>Until now I booted my Slack with a floppy. Now I want to boot it > >>>>directly from harddisk. As I read 'man lilo', I understand it says that > >>>>'lilo -M' will write lilo to the MBR. Is this a correct assumption? > >>>> > >>> > >>>No. That's the wrong thing to do. That installs a standard MBR, and is > >>>intended as a way to uninstall lilo if you've lost your boot sector > >>>backup. The correct way to do it is lilo -b /dev/hdx or /dev/sdx > >>>(whichever hard disk it is). Or change the boot= line in lilo.conf. > >> > >>the boot= line says /dev/hdc2. So 'lilo -b /dev/hdc' will install lilo > >>in the MBR of /dev/hdc and I will be booting OK? > > > > > > Yes, that will be fine. But if you plan on keeping it there long-term, it's > > probably better style to change lilo.conf to say boot=/dev/hdc and then you > > can run lilo without any options. > I did it, but to no avail. I also changed the bootable-flag from / to > /boot. When booting from harddisk, it keeps coming with LI 99. Luckily I > still have the boot-floppy. Any idea? Then instead of installing to MBR, install to boot partition. I always use liloconfig (after backing up lilo.conf, to keep the stuff I don't want overwritten, like 'vga=ext'), and when I get LILO 99 from one, I do it again and pick the other (MBR/boot sector). It affects the same boot= line in lilo.conf, but I don't want to tell you what to put there since it's your drive. liloconfig will find your boot sectors. Good Luck! Rich |