LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Trying to install Slackware 13.37 from scratch and encountering problems (https://www.linuxquestions.org/questions/slackware-14/trying-to-install-slackware-13-37-from-scratch-and-encountering-problems-4175411289/)

netraider 06-13-2012 04:41 PM

Trying to install Slackware 13.37 from scratch and encountering problems
 
I have been trying to install Slackware 13.37 and I have been unsuccessful in my endeavor so far. This is not the first time that I have installed this version of Slackware, but I am afraid I have forgotten a vital piece of information. I need to install with 3 partitions:

Using cfdisk, I create these partitions on a 500 GB HDD.

Partition 1: 1000 MB = Linux Swap
Partition 2: 2000 MB = Linux [/boot] Bootable [reiserfs]
Partition 3: Remainder of disk = Linux [/] [reiserfs]

After creating the partitions and formatting, I follow through and complete the install. After the install completes, I am instructed to remove the media and press ctrl+alt+del to reboot the system. The problem is, the system comes up with "Missing Operating System" error. Can anyone tell me what I have missed? Thanks in advance.

Diantre 06-13-2012 04:54 PM

Quote:

Originally Posted by netraider (Post 4702500)
Using cfdisk, I create these partitions.

Partition 1: 1000 MB = Linux Swap
Partition 2: 2000 MB = Linux [/boot] Bootable [reiserfs]
Partition 3: Remainder of disk = Linux [/root] [reiserfs]

Where are you mounting the root directory (/)? I see you're assigning the third partition to /root, which is the superuser "home" directory, not the root filesystem.

netraider 06-13-2012 04:59 PM

Sorry, Partition 3 is my / directory, not /root. Sorry for the confusion.

hf2046 06-13-2012 08:43 PM

Are you installing LILO to the MBR?

fogpipe 06-13-2012 09:15 PM

What are the device names of the partitions and what happens when you switch to another console, during the install routine, and try to mount one of them?

ReaperX7 06-13-2012 09:40 PM

I've never really use the split partitioning method anymore, I just use the single partition method. It's less a headache for me anymore to use the old ways.

As far as your OS not reading... did you add the ReiserFS module to your initrd.gz?

Code:

cd /boot
mkinitrd -c -k 2.6.37.6 -m reiserfs

If not, try booting your disk using the install disk rescue mode:

Code:

sata.i root=/dev/sda3 noinitrd ro
Run the command above to add ReiserFS's module to the initrd.gz ramdisk file, and edit /etc/lilo.conf like this:

Code:

# Linux bootable partition config begins
image = /boot/vmlinuz
  initrd = /boot/initrd.gz
  root = /dev/sda3
  label = Linux
  read-only
# Linux bootable partition config ends

And lastly run lilo again from a root terminal.

Erik_FL 06-13-2012 11:38 PM

The "Missing Operating System" error basically means that the default Master Boot Record software is still there. The LILO boot sector software has not been written to the Master Boot Record.

To fix that, make sure that you are installing the LILO boot sector to the Master Boot Record. You should have this line at the beginning of the "/etc/lilo.conf" to install to the Master Boot Record.

Code:

boot = /dev/sda
If you want to install the LILO boot sector to the Slackware partition instead, then use this line.

Code:

boot = /dev/sda2
To install the LILO boot sector to the Slackware partition you also have to set the "Boot" flag for the "/dev/sda2" partition so that the default MBR code knows which partition to boot from. You can use the "cfdisk" or "fdisk" program from Linux to set the "Boot" flag. That is not necessary when installing to the MBR, since the LILO boot sector will replace the default MBR code and ignore the "Boot" flags entirely.

Since your "boot" directory is in a different partition, make sure that you have mounted both "/" and "/boot" before you use the "lilo" command to install LILO. The "lilo" command will figure out the sectors containing the "vmlinuz" and "initrd.gz" files and write that information into the LILO boot sector. In order to do that, the filesystems have to be mounted at the locations indicated in the "lilo.conf" configuration.

It's very important that you run the "lilo" command again if you modify either "vmlinluz" or "initrd.gz", or the location of those files on the hard disk. You also need to run the "lilo" command again if you modify "lilo.conf". The LILO configuration is stored in the boot sector for LILO. The LILO boot loader does not look at "lilo.conf" when it is booting. Only the "lilo" command used to install LILO looks at "lilo.conf".

The difference between installing LILO to the MBR versus the Linux boot sector is this. Normally, the default MBR software can boot from one of four possible primary partitions. Each partition can have a different boot loader. Keeping the default MBR code (installing to the Linux boot sector) allows you to change the default boot loader (that starts first) by setting the appropriate "Boot" flag for one of the four partitions. A disadvantage to doing that is the extra step required to set the "Boot" flag of some partition. You only have to do that once until you decide to change the default boot partition. If you don't set the "Boot" flag of some partition you are likely to see the "Missing Operating System" error.

If you install LILO to the MBR, then LILO will always be the first boot loader to start. You can add other boot loaders to the LILO menu whether LILO starts first or not. For some reason most Linux distros install their boot loader directly to the MBR. If you have installed the LILO boot sector to the MBR you should not see the "Missing Operating system" error, since that is not a message displayed by the LILO boot sector.

netraider 06-14-2012 09:27 AM

Thanks everyone for your suggestions. @ReaperX7 & @Erik FL, a special thanks to you. I am now up and running. Thanks again.


All times are GMT -5. The time now is 03:56 AM.