LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-30-2009, 04:08 PM   #1
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Installing slack on an extended partition


Hi everyone,

Just looking for some advice about installing slackware on an extended partition. I'll be installing on a Lenovo Thinkpad T400 and dual booting with Vista.

The following is my current partition table with Vista/Lenovo on the first three partitions (NTFS).

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         401     3030536    7  HPFS/NTFS
/dev/sda2             402       10159    73770480    7  HPFS/NTFS
/dev/sda3           15796       20673    36877680    7  HPFS/NTFS
/dev/sda4           10160       15795    42608160    f  W95 Ext'd (LBA)
/dev/sda5           10160       12262    15898648+  83  Linux
/dev/sda6           12263       15657    25666168+  83  Linux
/dev/sda7           15658       15795     1073428+  82  Linux Swap
As it is now, I'm limited to having just one other partition spot so I chose to make it an extended partition with sda5 holding "/" and sda6 holding "/home". I haven't read anything that said "/" had to lie on a primary partition so I hoped for good things with the installation.

After the installation completed, the usual choice for installing LILO popped up. I chose to install to the MBR for convenience. The installation seemed to take quite awhile longer than what I recall, however the process did complete without any noticeable complaints.

After restarting, it appears LILO did not write to the MBR since Windows booted up as normal without LILO presenting boot options. I'm assuming that this hiccup has been completely caused by my decision to have "/" on an extended partition.

I've already tried switching the boot flag from sda1 to sda5 and reinstalling the system, both with no luck.

Any ideas or advice would be greatly appreciated,
Coto

PS. That "Click here to find similar threads" is a nice new little tool. Well new to me anyway.

Last edited by Cotobear; 05-30-2009 at 04:09 PM.
 
Old 05-30-2009, 05:53 PM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
I'm afraid I can't help you with any possible LILO problems because I have grub installed on the MBR to boot three distros, but I CAN tell you that Slack can be installed just fine to an extended partition. I have it installed on /sda7 (/) and /sda8 (home). But as I mentioned, I boot with GRUB and not LILO. I am guessing that LILO did not install properly to the MBR.
 
Old 05-30-2009, 06:47 PM   #3
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Original Poster
Rep: Reputation: 16
Thanks Bob.

This is good to know. I'll give LILO another try and if I can't get it, I'll give GRUB a try.
 
Old 05-31-2009, 06:27 AM   #4
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by Cotobear View Post
Hi everyone,

Just looking for some advice about installing slackware on an extended partition. I'll be installing on a Lenovo Thinkpad T400 and dual booting with Vista.

The following is my current partition table with Vista/Lenovo on the first three partitions (NTFS).

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         401     3030536    7  HPFS/NTFS
/dev/sda2             402       10159    73770480    7  HPFS/NTFS
/dev/sda3           15796       20673    36877680    7  HPFS/NTFS
/dev/sda4           10160       15795    42608160    f  W95 Ext'd (LBA)
/dev/sda5           10160       12262    15898648+  83  Linux
/dev/sda6           12263       15657    25666168+  83  Linux
/dev/sda7           15658       15795     1073428+  82  Linux Swap
As it is now, I'm limited to having just one other partition spot so I chose to make it an extended partition with sda5 holding "/" and sda6 holding "/home". I haven't read anything that said "/" had to lie on a primary partition so I hoped for good things with the installation.

After the installation completed, the usual choice for installing LILO popped up. I chose to install to the MBR for convenience. The installation seemed to take quite awhile longer than what I recall, however the process did complete without any noticeable complaints.

After restarting, it appears LILO did not write to the MBR since Windows booted up as normal without LILO presenting boot options. I'm assuming that this hiccup has been completely caused by my decision to have "/" on an extended partition.

I've already tried switching the boot flag from sda1 to sda5 and reinstalling the system, both with no luck.

Any ideas or advice would be greatly appreciated,
Coto

PS. That "Click here to find similar threads" is a nice new little tool. Well new to me anyway.
after installing linux in a new partition (you need to be root)
in the partition where you've installed lilo
1. edit the default lilo config file (usually /etc/lilo.conf) to
create an entry for that new system
then
2. run the command:
lilo

with grub it's much more simpler,
That's what I use. I installed it the first time
I installed slackware on my 3rd partition (/dev/sda3)
then I installed other linux systems in a couple other extended
partitions (/dev/sda7 and /dev/sda9)
I didn't install boot loaders there, as I had already one in /dev/sda3
All I needed to do is edit (on /dev/sda3) /boot/grub/menu.lst
to add a new entry
here's my grub entry for booting slackware on /dev/sda9:

title slackware 12.2 (/dev/sda9)
root (hd0,8)
kernel /boot/vmlinuz root=/dev/sda9 ro vga=791

you'll notice that grub's scheme for naming the devices
hd0,8
hd0 is for the first hard drive found (it can be ide, scsi, sata
but it's still named hd0)
8 is the 9th partition on that disk (grub start counting from 0,
the first partition would be hd0,0)
 
Old 05-31-2009, 08:08 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
This is probably what you meant, but.......

You cannot install anything on a extended partition. An extended partition is only the beginning of a linked list that leads to the logical partitions. It is thought of as a container, but does not physically behave as such.
 
Old 05-31-2009, 10:46 AM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I haven't read anything that said "/" had to lie on a primary partition so I hoped for good things with the installation.
That's correct. As long as the boot loader can find the root partition, you can install a Linux-based OS in any primary or logical partition.

Quote:
I'll give GRUB a try.
Do know that GRUB is found in the extra tree.

I never have used LILO as my primary boot loader. I've been using GRUB for many years. To me, much easier to maintain. I also like the simple fact that GRUB is not limited to 15 characters for a boot description. If you have an older computer, you can still use a GRUB floppy disk as an emergency boot media.
 
Old 05-31-2009, 12:55 PM   #7
AGer
Member
 
Registered: Oct 2007
Distribution: Slackware current
Posts: 136
Blog Entries: 22

Rep: Reputation: 19
Double check

Quote:
Originally Posted by Cotobear View Post
I've already tried switching the boot flag from sda1 to sda5 and reinstalling the system, both with no luck.
This sounds suspicious. The right place for LILO is neither sda5 nor asd1, it is just /dev/sda.
 
Old 05-31-2009, 01:33 PM   #8
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Original Poster
Rep: Reputation: 16
Thanks for the advice everyone.

I booted onto a live CD and reinstalled LILO. It seems to have worked.

AGer:
After doing some more reading, I guess the "boot flag/active partition" is more specific to Windows and GRUB/LILO don't necessarily require the partition to be active. I think what you were referring to is that LILO is installed to the MBR which isn't specific to any partition?

Pixellany:
Sorry for the slip up. Yes, I did mean a logical partition.

I think I may just try and get GRUB up and started. I do prefer it over LILO...

Thanks again,
Coto
 
Old 06-01-2009, 04:04 AM   #9
AGer
Member
 
Registered: Oct 2007
Distribution: Slackware current
Posts: 136
Blog Entries: 22

Rep: Reputation: 19
Quote:
Originally Posted by Cotobear View Post
I think what you were referring to is that LILO is installed to the MBR which isn't specific to any partition?
MBR is disk specific - there is exactly one MBR per hard disk and it resides in the first sector. If you install LILO to any partition, like sda1 or sda5, the MBR is not modified. Since originally the Windows boot loader sits there, you will not see any changes on boot. The MBR is referenced as /dev/sda.
 
Old 06-01-2009, 05:24 AM   #10
imciberrana43
LQ Newbie
 
Registered: Jul 2007
Location: New York City
Distribution: Slackware 10.2
Posts: 7

Rep: Reputation: 1
The answer to the question asked - "Where do you want to install lilo - mbr or root partition?" should have been install on root partition. All steps to complete lilo setup should have been followed to the letter. The last step prior to rebooting the system is running Linux's fdisk and moving the active boot flag from the windows partition to the Linux root partition writing that infomation in fdisk upon closure.
 
Old 06-01-2009, 06:08 AM   #11
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
The answer to the question asked - "Where do you want to install lilo - mbr or root partition?" should have been install on root partition.
I'm afraid I have to disagree with this advice. I have always found it far easier to install the bootloader (lilo/grub) to the MBR with suitable entries to multiboot my OS's. This saves messing around with boot flags and has always worked fine for me.

The other option is toggling boot flags to select which OS to reboot to which is a bit of a pain and obviously more work than just selecting which OS to boot to at boot time from the menu.

I have read that my solution can give problems with NT's boot loader, (although I haven't tried multi booting to NT,) but it definitely works with a multi Linux/XP/Vista/BSD multiboot system.
 
Old 06-02-2009, 12:46 AM   #12
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Original Poster
Rep: Reputation: 16
I agree with bgeddy. I find it an easy way out to install LILO to the MBR and add an entry for Vista in LILO. This is what I've done with this current installation and it seems rather easier to work with.

If for whatever reason I require a Vista only computer again, the Vista recovery disk allows you to reinstall its boot loader to the MBR.

I suppose however that if I wanted to continue using the windows boot loader that I would take a different root, but it sounds like too much fuss to me.
 
Old 06-02-2009, 09:48 AM   #13
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 246
Blog Entries: 16

Rep: Reputation: 25
Glad this worked out ...

I too always install LILO to the MBR rather than to the root partition ... but I too am using GRUB these days, since LILO seems to have issues with more than one Linux (e.g. two Linuxes on logical partitions within an extended partition).

Something to think about if you decided to go with more than one distro (I hop around a lot myself).
 
  


Reply



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] Safety: Primary Partition and Extended (Logical) Partition MBA Whore Linux - Security 11 01-03-2007 02:05 PM
Installing WindowsXP from extended partition Ray>Ubuntu-User General 6 10-18-2006 09:25 PM
Installing mandrake extended partition fulat2k Mandriva 0 07-01-2004 03:29 AM
Booting from an extended partition - need a partition table editor Ouch_Taser Linux - General 2 02-10-2004 06:22 PM
installing on an extended partition mimi Linux - General 1 06-08-2002 11:43 AM

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

All times are GMT -5. The time now is 07:59 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