LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-19-2011, 07:34 AM   #1
bigbooty
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
Slackware partition scheme help


Hi there,

I have currently decided to re-install Slackware onto my laptop. Only problem is, after installing LILO through the Slackware installation, it doesn't want to start.

My current scheme:

/sdb1/swap +4G
/sdb2/boot +200M

/sdb3/var +3G
/sdb4/ / +4G

I was debating whether i should just boot from '/' leaving '/boot' currently in it's original place. But when it comes down to severe paranoia and security, i don't like to risk it. Even if there is a one in a million chance of anything actually happening.

The problem seems to me; that after installing LILO, parts of the program are installing in '/' still, causing it not to start?

I have tried Grub, and I'm still getting the same problem.

If i haven't supplied enough information, let us know.

~booty
 
Old 03-19-2011, 08:28 AM   #2
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: HandyLinux | Mint17XFCE
Posts: 287

Rep: Reputation: 64
IDK if this will help, but
try making /boot the first partition (sdb1)
and / the second (sdb2)
Plus, how big is your hard drive? Root (/) should probably be a minimum of nine GB and add an extended partition to include both /tmp and /var (4.6GB and ?, respectively)

Last edited by hilyard; 03-19-2011 at 08:32 AM.
 
Old 03-19-2011, 09:01 AM   #3
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Lilo was most likely installed to the MBR of /dev/sda, along with the wrong root declaration in /etc/lilo.conf.
At the Lilo prompt you hit TAB to enter commands. You'll need to select (type in) the kernel name and root=/dev/sdb1. See attached screen shot.
Post your /etc/lilo.conf (wrapped in code tags).

And why is your swap so large? --edit-- I see your using a laptop, and most likely need to suspend
Attached Images
File Type: png snapshot2.png (8.3 KB, 11 views)
File Type: png snapshot3.png (1.6 KB, 9 views)

Last edited by disturbed1; 03-19-2011 at 09:03 AM.
 
Old 03-19-2011, 11:34 AM   #4
bigbooty
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by disturbed1 View Post
Lilo was most likely installed to the MBR of /dev/sda, along with the wrong root declaration in /etc/lilo.conf.
At the Lilo prompt you hit TAB to enter commands. You'll need to select (type in) the kernel name and root=/dev/sdb1. See attached screen shot.
Post your /etc/lilo.conf (wrapped in code tags).

And why is your swap so large? --edit-- I see your using a laptop, and most likely need to suspend
Hi there mate,

I don't even get the LILO prompt. It just acts like a boot-loader hasn't even bothered about installing.
I get the black screen with a dash(similar to when your typing, you usually have the animated hyphen) if that makes sense?

Although LILO installs successfully during the Slack installation...
 
Old 03-19-2011, 12:49 PM   #5
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Does your laptop have two physical hard drives? Or is /dev/sdb a usb/external drive?
 
Old 03-19-2011, 12:55 PM   #6
bigbooty
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Internal HD which is 16.g, then the 8G USB stick i'm installing it with.
I should of edited the first post; it's actually a notebook, not a laptop. -.-
A nasty habit i have gotten into.
 
Old 04-24-2011, 01:45 PM   #7
bigbooty
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
bump
 
Old 04-24-2011, 03:10 PM   #8
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 801

Rep: Reputation: 247Reputation: 247Reputation: 247
It looks like you are trying to use "lilo" on the second hard disk "sdb". The BIOS usually doesn't boot directly to the second hard disk. How are you planning to boot the second hard disk? Are you going to change the BIOS default boot disk, or are you going to chain to the second hard disk from a boot loader already installed on the first hard disk?

When you change the BIOS default boot disk you may find that the drive assignments change. To boot by changing the BIOS default disk, you should install LILO with the default boot disk in the BIOS set to the second hard disk. That will probably make it appear as "sda" and not "sdb". Always install boot loaders with the BIOS configured as it will be when you are going to use those boot loaders. If you're not going to change the BIOS default boot disk then none of this paragraph applies to your situation.

If you're chain booting to the second hard disk, then make sure that you install LILO to the MBR of the second hard disk "sdb" or the partition boot sector of "sdb2". Then configure your existing boot loader to chain to that boot sector. Although you can install LILO to the MBR of "sda" that will require that both "sda" and "sdb" are present in order to boot anything.

Do you have an existing LILO or GRUB boot loader on "sda"? If so, you can load Slackware using that boot loader and avoid chaining to LILO on the second hard disk.

It will be helpful if you can post the contents of your "/etc/lilo.conf" file. To do that you will need to boot some operating system. You may find it easier to use a Linux boot CD with a graphical environment, such as Puppy Linux. Use the boot CD to get on the Internet and post the "lilo.conf" file.

You can also type out or edit "lilo.conf" using the Slackware installation CD. Boot the Slackware CD. Then type in commands to mount your partitions and change the root to the OS you are installing.

Code:
mkdir /mnt/hd
mount /dev/sdb4 /mnt/hd
mount /dev/sdb2 /mnt/hd/boot
mount /dev/sdb3 /mnt/hd/var
chroot /mnt/hd
mount -t proc none /proc
mount -t sysfs none /sys
To type out "lilo.conf" you can do this.

Code:
cd /etc
more < lilo.conf
To edit "lilo.conf" do this.

Code:
cd /etc
nano lilo.conf
To re-install "lilo" with a modified configuration type in the "lilo" command.

Code:
lilo
When you have finished making changes un-mount the partitions and restart the computer.

Code:
umount /proc
umount /sys
exit
umount /mnt/hd/var
umount /mnt/hd/boot
umount /mnt/hd
You mentioned a thumb drive. When you boot from a thumb drive, the BIOS may make that "sda". That could cause a problem because when you remove the thumb drive, the BIOS will change the drive assignment of "sdb" to "sda". I'm not sure if LILO will work correctly. You may have to use GRUB, or patch the LILO boot sector with the correct BIOS drive ID (80 hex instead of 81 hex).

Last edited by Erik_FL; 04-24-2011 at 03:20 PM.
 
Old 04-24-2011, 03:53 PM   #9
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 801

Rep: Reputation: 247Reputation: 247Reputation: 247
I think that you will need to add some information to "lilo.conf" so that it knows the BIOS drive ID that will be used for device "/dev/sdb".

Code:
disk=/dev/sdb
  bios = 0x80
The reason that is required is because the BIOS ID will be 80 hex when LILO is booted even though the BIOS ID was 81 hex when LILO was installed. After you get Slackware to boot from the hard disk, you should remove those two lines. They will be incorrect when re-installing LILO from Slackware booted on the hard disk.

Also, since device names during boot will be different than when installing, LILO, make sure that you have the correct name for the root device.

Code:
root=/dev/sda4
The reason that it has to be "sda4" is because it will be called "sda4" when LILO actually boots the operating system even though it was called "sdb4" when LILO was installed.
 
  


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
[SOLVED] slackware/multiB partition scheme suggestion (newbie here, just deleted M$ windows) Ubunoob001 Slackware 3 10-20-2010 09:31 AM
Not sure on this partition scheme ComputerMan Slackware 8 01-14-2007 05:25 PM
Partition Scheme Randall Slack Slackware 17 11-08-2005 09:49 AM
partition scheme leeman_s Slackware 2 05-23-2004 12:41 PM
partition scheme -- why does it this way ??? Bluesuperman Slackware 2 10-31-2003 08:09 PM


All times are GMT -5. The time now is 02:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration