LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 03-02-2006, 04:37 AM   #31
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55

I think that after reading many posts and playing around with lilo that I have an idea what may be causing some people to have problems with lilo installation. As cwwilson pointed out, one reason is BIOS MBR protection stopping lilo (or anything else) from modifying the MBR.

Another reason is that there is a bug in lilo in search order for disk devices. For example, if I plug in a USB drive I get errors from lilo when I try to install to the MBR of /dev/hda.

I think many of these errors go unrecognized because people are running lilo from config scripts and don't see lilo output.


What I have never heard of is lilo corrupting an MBR. Although updating the MBR properly is extremely critical, it isn't that complicated compared to a lot of other software people have written, and I think lilo works pretty well.

The fact that you have two drives raises a question with lilo because of the bug I noted earlier.

Show us the output from fdisk -l and give us your lilo.conf and it should be simple to get things straightened out.
 
Old 03-03-2006, 05:40 AM   #32
darwinkid
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
Thanks for the response!

The fdisk -l command gives me this:

PHP Code:
Disk /dev/hdc40.0 GB40027029504 bytes
255 heads
63 sectors/track4866 cylinders
units 
cylinders of 16065 512 8225280 bytes

Device     Boot    Start    End    Blocks    Id    System
/dev/hdc1   *        1       4865  39078081  7     HPFS/NTFS


Disk 
/dev/hdd203.9 GB203928109056 bytes
255 heads
63 sectors/track24792 cylinders
units 
cylinders of 16065 512 8225280 bytes


Device     Boot    Start    End    Blocks     Id    System
/dev/hdd1          5101     24792  158175958+  7    HPFS/NTFS
/dev/hdc2   *      1        5086   40853263    83   Linux

Parition entries are not in disk order 
 
Old 03-03-2006, 06:00 AM   #33
darwinkid
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
And my lilo reads like this
PHP Code:

boot 
= /dev/hdc
prompt
vga 
normal

#windows bootable parition config begins
other = /dev/hdc1
  label 
windows
# map-drive = 0x80
# to = 0x81
# map-drive = 0x81
# to = 0x80
  
tabel = /dev/hdc

#linux bootable partition config begins
image = /boot/vmlinuz
  root 
= /dev/hdd2
  label 
linux
  read
-only # non-umsdos filesystems should be mounted read-only f 
i tried to not post a lot of the commented areas. if these are needed let me know and i will post this again!

Thanks for the help!
 
Old 03-04-2006, 02:33 AM   #34
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Mmm I think that lilo wasn't properly installed. If you read lilo's man page, you can know about what the letter L and the number 01 means.
Try reinstalling lilo, boot from CD as stated some posts above, and use -v switch to receive more details of lilo when it's installing: lilo -v -v -v
 
Old 03-04-2006, 02:33 AM   #35
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
<Sorry clicked twice>
 
Old 03-04-2006, 12:22 PM   #36
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Cool

Hey man, I have some questions here because it looks like you have three systems you are trying to boot, and I think we only talked about two. According to your fdisk -l you have 2 NTFS partitions and one linux, is this what you wanted? Your lilo.conf is set up to boot the windows on the /dev/hdc drive but it looks like you will have another windows (which with this config, anyway) you don't wanna boot on hdd in the middle of the drive. Why are the partitions so whacked out? Things should be in order, and contiguous. I think some additional fdisking is in order to clean up this mess...

Also, note that lilo freaks out because you have two drives. I've noticed this before. Fdisk is also giving a wierd message about partitions being out of order, but it lists two partitions that aren't even on the same drive!

There is a typo: "tabel" should be "table" in your windows entry. I think the intervening comments should be fine, but let's not take any chances. How about this:

Code:
boot = /dev/hdc
prompt
vga = normal
#1st windows bootable partition config begins
other = /dev/hdc1
  label = windows-1
  table = /dev/hdc
# map-drive = 0x80
# to = 0x81
# map-drive = 0x81
# to = 0x80
#2nd window bootable partition config begins
other = /dev/hdd1
  label = windows-2
  table = /dev/hdc
#linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hdd2
  label = linux
  read-only # non-umsdos filesystems should be mounted read-only
If I missed something and the 2nd NTFS partition is just to share between Win and linux then don't configure it in lilo.conf. If you want to boot it, change it to bootable with fdisk because Windows won't boot from a partition not mounted bootable according to other posts.

You should get on the linux system (if you can boot it, otherwise bring up a liveCD with linux and chroot into your linux or at least have the kernel mounted where lilo can find it from your lilo.conf. Then (as root) do

lilo -v -t -b /dev/hdc

And read the output carefully. If it looks like what you want, do

lilo -v -b /dev/hdc

Sorry about the late reply, I was out.

Good luck and don't toast anything!

Last edited by Randux; 03-04-2006 at 12:25 PM.
 
Old 03-08-2006, 07:00 PM   #37
darwinkid
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
PHP Code:
Disk /dev/hdc40.0 GB40027029504 bytes
255 heads
63 sectors/track4866 cylinders
units 
cylinders of 16065 512 8225280 bytes

Device     Boot    Start    End    Blocks    Id    System
/dev/hdc1   *        1       4865  39078081  7     HPFS/NTFS


Disk 
/dev/hdd203.9 GB203928109056 bytes
255 heads
63 sectors/track24792 cylinders
units 
cylinders of 16065 512 8225280 bytes


Device     Boot    Start    End    Blocks     Id    System
/dev/hdd1          5101     24792  158175958+  7    HPFS/NTFS
/dev/hdc2   *      1        5086   40853263    83   Linux

Parition entries are not in disk order 
I screwed up when typing some of this out... totally my fault.

the partitions are something like this.

PHP Code:
Disk /dev/hdc40.0 GB40027029504 bytes
255 heads
63 sectors/track4866 cylinders
units 
cylinders of 16065 512 8225280 bytes

Device     Boot    Start    End    Blocks    Id    System
/dev/hdc1   *        1       4865  39078081  7     HPFS/NTFS


Disk 
/dev/hdd203.9 GB203928109056 bytes
255 heads
63 sectors/track24792 cylinders
units 
cylinders of 16065 512 8225280 bytes


Device     Boot    Start    End    Blocks     Id    System
/dev/hdd1          5101     24792  158175958+  7    HPFS/NTFS
/dev/hdd2   *      1        5086   40853263    83   Linux

Parition entries are not in disk order 
I do agree with you though, this does look a little tweaked... I have windows(which was installed first) on /dev/hdc1 then i have an ntfs partition, mainly just storage space on /dev/hdd2

is partition magic known for writing bad partition tables like this? (thats what i used to partition the disks)

Thanks for the response...
Would it just be easier to install linux on another partition on /dev/hdc1?
as stated in the fdisk table above, this partion is an ntfs partition. can i create a partition after that and install slack on it? then install lilo on the MBR?
 
Old 03-09-2006, 09:15 AM   #38
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Try not to type stuff in- grab it with cut and paste and copy it into the browser so we know what's going on.

According to the latest info which is:

Code:
Disk /dev/hdc: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes

Device     Boot    Start    End    Blocks    Id    System
/dev/hdc1   *        1       4865  39078081  7     HPFS/NTFS


Disk /dev/hdd: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes


Device     Boot    Start    End    Blocks     Id    System
/dev/hdd1          5101     24792  158175958+  7    HPFS/NTFS
/dev/hdd2   *      1        5086   40853263    83   Linux

Parition entries are not in disk order
Check me on these facts:

1) You have a bootable Win on /dev/hdc (and it's consuming the whole 40G)
2) You have a linux partition on /dev/hdd
3) You have a non-bootable NTFS partition (for sharing) on /dev/hdd

If I understand correctly, then:

1) Consider whether you really want a 40G Windows. If you do, fine, if not, you have room for a couple of healthy-sized linux or *bsd systems on the same drive. To find out how much Windows space you need, defrag (repeatedly) until all the free space is at the end, and you'll be able to see how much you actually need.
2) You have considerable wasted space (15 cylinders) on /dev/hdd; as we noted earlier this should be cleaned up.
3) This is a very nice drive and you can put tons of linux distros on here. But, remember that if you want to install *bsd (FreeBSD, OpenBSD, NetBSD) you need to install them in primary partitions (and you only get 4 of those) so plan accordingly.

I think you really have to decide what you want to do. Right now it seems like it's difficult to know what to do because you haven't decided what to do. You can't plan disk utilization until you have some idea of what you want to accomplish.

I think the best things to do are:

1) Decide if you want to keep Windows or not.
2) If you want Windows, decide how much space you want for it, then resize the NTFS partition with qtparted.
3) Decide if you want to run *BSD or not. This has to be an early consideration because of the primary partition requirement of *BSD. (I would like to try some, but I can't, because I'm fresh out of primary partitions.)
4) Write down a map (on paper) of how many systems you'd like, what you'll use them for, and where you want them to live, remembering that *BSD should really be in partitions 1-3, and that Windows should be installed first, in 1.

To answer your questions:

1) I don't have any experience with PartitionMagic. I did use qtparted from the Kanotix liveCD and it worked perfectly. It's free and it runs on linux, which are 2 things that PartitionMagic doesn't do. That was enough for me.
2) I don't have experience with lilo on multi-drive installations, but I've used it a lot on my little setup. I also read a lot of posts, and the majority of people to use lilo in the MBR. That's what I did, and it works perfectly.

If you are not careful and just slap linux distros wherever you have space, your drives will be a sloppy mess (like hdd is already looking) and you will waste space and paint yourself into a corner where you can't do what you wanna do. A little planning and careful fdisking will allow you to run tons of distros with plenty of room to spare. Pay attention and make sure subsequent partitions are allocated on the next even cylinder boundary.
 
Old 05-02-2006, 07:56 PM   #39
Grongle
Member
 
Registered: Feb 2006
Location: Vancouver, Canada
Distribution: Slack 10.2
Posts: 53

Rep: Reputation: 15
Darwinkid, where are you on this situation now? I ask because this thread has been quiet now for almost two months. I assume you solved things OK.

In any case, I also have seen all those zeros on a black screen. Two years go, I was installing Linux and had LILO on, but then I failed the main Linux installation. I didn't know enough about Linux to know how to get rid of LILO. I needed to do that without having a working install of Linux on my machine.

I don't know whether I'd say that LILO corrupted my files, or that I corrupted my files myself. The problem resulted in bad clusters and the loss of the best ME setup I'll probably ever have. I was running both ME and XP, and trying various Linuxes. It wasn't really worth fixing up ME again, but that was such a sweet-running ME and it had taken months to make it work that well—a big loss.

I was able to reboot by using a floppy with a bootmanager on it. That worked fine. But if I recall, the lingering problem persisted until I finally did a low-level format on that hard drive. It definitely went through several XP repairs without being repaired.

It was explained to me (by a 14-year old) just what the zeros represented. It was an "overflow" of some sort. I might be able to research it more if you are still working on this one.

For interested folks who've never seen it, it is all rows and columns of 01s, covering the entire screen, and slowly scrolling down, endlessly. (It looks like a screen-saver.) All very neat and tidy, so:

01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01

. . . forever. Indeed, a pretty spectacular disaster!

Last edited by Grongle; 05-02-2006 at 08:15 PM.
 
Old 05-03-2006, 01:09 AM   #40
driver8086
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Hey ya'll, check this out. pretty cool. i stumbled accross this last nite cause my windoz xp box got the "ntldr file missing" error. anywho. i decided to dump windoz altogether. so i installed slackware 10 on a 40g hd. about 3 hrs later i found that i couldn't live without playing those darn games. well i found VMware. it goes like this...
i unplugged my 40g hd containing slackware. installed my windoz on my 130g hd. once done, i plugged in my 40g slackware drive. since this is winxp, well i just told it not to mount the drive anywhere. i installed VMware in winxp and for the virtual machine hd i used the raw disk containing my slackware. since linux don't complain about not havving a boot flag set on a drive well both op sys think they are on /dev/hda1. give it a try. will make things a lot easier. although not verry cheap ($199.00).
will be nice when someone makes a free or atleast inexpensive virtual machine to do this.
(whatever ya do don't set a bootable flag on the linux drive or ya will have probs booting. i install lilo to mbr)
now if i have anymore probs with windoz i can still work in linux. just unplug win and boot.
 
Old 05-13-2006, 05:50 PM   #41
Grongle
Member
 
Registered: Feb 2006
Location: Vancouver, Canada
Distribution: Slack 10.2
Posts: 53

Rep: Reputation: 15
Quote:
Originally Posted by Randux
defrag (repeatedly) until all the free space is at the end

1) I don't have any experience with PartitionMagic. I did use qtparted from the Kanotix liveCD and it worked perfectly. It's free and it runs on linux, which are 2 things that PartitionMagic doesn't do. That was enough for me.
Randux, this is not a new post, but I might mention:

—Defragging does not necessarily clean everything to one neat package at the front of the drive. There is a tendency for it to do something toward that, but there are various common reasons why some files may remain at the tail end of the drive. The belief that a cleanly defragged drive will have only free space at the tail end sometimes causes data loss, so it is good to check and see.

—I agree with your second comment. Partion Magic had its heyday before XP. XP's [Control Panel >Admin Tools >Computer Management] Disk Management is a beautiful tool, and would take the user right up to the one you recommend, so there is no need to use Partition Magic. Not for the past 6 years. But, some would argue, Disk Management doesn't adjust the size of a specific partition. True, but it does turn that into a generally undesirable strategy, because it makes everything else so very, very easy in Windows or in setting free space aside for Linux. From there, the user can return to Linux and proceed as you suggested if he really wants to resize.

IMHO. :-)
 
Old 05-21-2006, 01:35 AM   #42
jayn16
LQ Newbie
 
Registered: May 2006
Location: Pune, India
Distribution: Slackware 10.2
Posts: 15

Rep: Reputation: 0
Adding another Linux installation to LILO on Slackware

Hi
How do you add another linux installation to the booting list?

I`ve kubuntu on /dev/hda10
hda10 is mounted as /linK on Slackware 10.2. Also, the boot file for kubuntu is /linK/boot/vmlinuz 2.6...
I tried Boot Loader configuration tool on slackware, but it says "no file found /linK/boot/vmlinuz 2.6..."

Last edited by jayn16; 05-21-2006 at 01:37 AM.
 
Old 05-21-2006, 11:18 AM   #43
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
The easiest thing to do is run liloconfig. That will start you all over again.

The 2nd easiest thing to do is to go to your /etc/lilo.conf file in your Slackware distro (aka "1st installation") and edit the lilo.conf file, adding the following to the end:

image=/linK/boot/vmlinuz #(or whatever you called your kernel image for KUbuntu... copy the location as you see it from slackware)
root=/dev/hda10
label=Kubuntu
read-only

Save your lilo.conf file.
** MOUNT YOUR /linK DIRECTORY!!!!
then run lilo to update the map.

Given your error, I'd say that you failed to make sure lilo could see the kubuntu boot image.

--vonSt
 
Old 05-24-2006, 02:49 AM   #44
jayn16
LQ Newbie
 
Registered: May 2006
Location: Pune, India
Distribution: Slackware 10.2
Posts: 15

Rep: Reputation: 0
Thanks a lot vonst.
Kubuntu boot image did not have its permission set to executable.
I made the changes, Boot Loader configuration tool worked successfully and lilo.conf looks like shown above.

Now when the booting list comes up and Kubuntu is selected, the display goes blank and system hangs up !
 
Old 05-24-2006, 06:55 PM   #45
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
Shoot, that could be anything! Did you check for cockroaches? I haven't had your problem w/ Linux. I have had it happen when I select "Windows". Why? I dunno. I'm not savvy enough.

Here's an idea, tho. Double check that /dev/hd10/boot directory. See if you can touch a test file into it. Maybe LILO isn't able to write boot.XXXX into the directory because it's locked out.

And then, if that's not it, I'm scratching my head. I don't understand OS intricacies enough.

--vonSt
 
  


Reply

Tags
machine, multiboot, virtual



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
How To Set Up Dual Boot Windows/slackware MDesigner Slackware - Installation 8 02-22-2009 08:17 PM
Dual boot windows/slackware, but slackware installed first? Cryptic_K Slackware 3 11-20-2006 12:49 PM
Can Slackware dual boot with windows XP? TigerLinux Slackware 14 10-03-2005 06:27 PM
i need help with a dual boot (windows and slackware linux) Tod_Con Slackware - Installation 1 06-13-2004 01:02 AM
Dual-Boot questions with Slackware 9.1 / Windows XP Pro The1ManMoshPit Slackware - Installation 3 05-31-2004 04:33 PM

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

All times are GMT -5. The time now is 11:32 AM.

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