LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-13-2012, 04:41 PM   #1
netraider
LQ Newbie
 
Registered: Jun 2012
Posts: 12

Rep: Reputation: 0
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.

Last edited by netraider; 06-14-2012 at 08:45 AM.
 
Old 06-13-2012, 04:54 PM   #2
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by netraider View Post
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.
 
Old 06-13-2012, 04:59 PM   #3
netraider
LQ Newbie
 
Registered: Jun 2012
Posts: 12

Original Poster
Rep: Reputation: 0
Sorry, Partition 3 is my / directory, not /root. Sorry for the confusion.
 
Old 06-13-2012, 08:43 PM   #4
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 111

Rep: Reputation: 20
Are you installing LILO to the MBR?
 
Old 06-13-2012, 09:15 PM   #5
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
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?

Last edited by fogpipe; 06-13-2012 at 09:47 PM. Reason: Included the phrase "during the install routine" in my question.
 
Old 06-13-2012, 09:40 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.
 
1 members found this post helpful.
Old 06-13-2012, 11:38 PM   #7
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
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.
 
1 members found this post helpful.
Old 06-14-2012, 09:27 AM   #8
netraider
LQ Newbie
 
Registered: Jun 2012
Posts: 12

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


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very new user to Ubuntu encountering problems! Help needed! LinuxNoobNorly Linux - Newbie 4 12-16-2011 11:39 AM
install Slackware-Current from scratch arnuld Slackware - Installation 12 05-02-2007 12:53 PM
new to linux and encountering installation problems read83 Linux - Newbie 6 04-29-2006 01:22 AM
New to llinux and this forum, and encountering numerous problems! SoulPioneer Linux - Newbie 37 04-19-2004 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration