LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 01-11-2011, 05:49 AM   #31
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,950

Rep: Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624

please, don't post questions twice: you got already an answer in the other topic.

Last edited by ponce; 01-11-2011 at 05:51 AM.
 
Old 01-11-2011, 06:05 AM   #32
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ponce View Post
please, don't post questions twice: you got already an answer in the other topic.
Sorry but I don't think these are the same. The third one of that thread is kinda like this one but that thread is over now.
 
Old 01-11-2011, 06:06 AM   #33
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SeSoX View Post
Yes, probably what t3slider said is right and that's why it works, then you will have to mount it and use the full path, totally right Miter_j
IMO this is not a "full path" cuz this path doesn't exist at all when booting because nobody mounted it. Maybe this just help lilo to find out the physical address.
In fact I don't know what's right at all cuz my brain is messed up
I don't know if what I think is right.
I'm writing it down. If anyone finds it incorrect, please let me know cuz this is only what I think is right.
When run "lilo" in slack, lilo find that my image is "/mnt/hd/boot/vmlinuz" and the initrd is in the same folder. So it looks for the PHYSICAL ADDRESS for this file. Assume the image's address is 000000 and the initrd's address is 100000. Then lilo write these infomation into MBR. When booting Ubuntu, lilo checks the address 000000 and 100000 and finds out the two files and then boot using them.
But what about grub? What's the way it works? Does it write the file's location just like "/boot/vmlinuz" and just search for the files using this path when booting? If so, how could grub know where to search since I have 2 /(one for ubuntu and one for slack)?
 
Old 01-11-2011, 06:38 AM   #34
SeSoX
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
Well, if it already works I wouldn't worry that much about how they work. Anyway t3 already explained how lilo and grub work. For more information I'd send you to grub or lilo documentation or just check the wikipedia. I think you can ask again if you have a more specific question
 
Old 01-11-2011, 06:50 AM   #35
Miter_J
LQ Newbie
 
Registered: Jan 2011
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SeSoX View Post
Well, if it already works I wouldn't worry that much about how they work. Anyway t3 already explained how lilo and grub work. For more information I'd send you to grub or lilo documentation or just check the wikipedia. I think you can ask again if you have a more specific question
I feel uncomfortable without knowing why it functions this way 0.0
Waiting for someone teaching me, then~
 
Old 01-11-2011, 10:01 AM   #36
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 675

Rep: Reputation: 55
@Miter J
Calm down. At this moment you have the solution which works. Maybe is not perfect. Give yourself time. All that stuff about booting systems is rather difficult.
 
Old 01-11-2011, 10:39 AM   #37
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,950

Rep: Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624
if you like to read something on the subject

http://lmgtfy.com/?q=how+grub+works
http://lmgtfy.com/?q=how+lilo+works

(sorry, my BOFH inner soul overwhelmed me)

Last edited by ponce; 01-11-2011 at 10:59 AM.
 
Old 01-11-2011, 01:56 PM   #38
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,192

Rep: Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537
Quote:
Originally Posted by Miter_J View Post
I'm writing it down. If anyone finds it incorrect, please let me know cuz this is only what I think is right.
When run "lilo" in slack, lilo find that my image is "/mnt/hd/boot/vmlinuz" and the initrd is in the same folder. So it looks for the PHYSICAL ADDRESS for this file. Assume the image's address is 000000 and the initrd's address is 100000. Then lilo write these infomation into MBR. When booting Ubuntu, lilo checks the address 000000 and 100000 and finds out the two files and then boot using them.
But what about grub? What's the way it works? Does it write the file's location just like "/boot/vmlinuz" and just search for the files using this path when booting? If so, how could grub know where to search since I have 2 /(one for ubuntu and one for slack)?
That's basically correct. For GRUB, it writes the file's location (/boot/vmlinuz) to the MBR (well, actually, it just writes information required for locating the GRUB configuration files, like menu.lst for GRUB legacy, so even if you modify the file you still don't need to rewrite to the MBR...), and it differentiates between Slackware's and Ubuntu's kernels based on the 'root' path that you provide (sda1 vs. sda2, for example, in the form of hd0,0 vs. hd0,1 for GRUB legacy). GRUB mounts the partition (hd0,0 for example, corresponding to sda1 in GRUB legacy) and locates the /boot/vmlinuz file on that partition. GRUB is a more elegant solution, and provides a method of troubleshooting at boot-time (so you don't need to boot the system using a third-party kernel or do some LiveCD chroot nonsense if you make a mistake like you do with LILO). However, it is more complex than LILO, and assuming there are no errors when you run `lilo`, and you are pointing to the correct root device in /etc/lilo.conf, you can be confident that it will boot properly when you reboot the system. With GRUB, you're guessing about what the file locations will be on the other distro when it boots, making it a tad more confusing (to me, anyway), but it is more flexible overall. The only tricky part with GRUB is when you boot with a separate /boot partition -- then you must specify the files as if they are at the root of the filesystem instead of in /boot on the root (/) partition. For example:
Code:
root (hd0,0)
kernel /boot/vmlinuz-2.6.7 root=/dev/sda1
if /boot is on your / partition, or
Code:
root (hd0,0)
kernel /vmlinuz-2.6.7 root=/dev/sda2
if /boot is on its own partition and / is on /dev/sda2.
 
Old 01-16-2011, 12:09 PM   #39
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,861
Blog Entries: 1

Rep: Reputation: Disabled
igadoter -
Quote:
I get the error: page not found.
I think Robert Thompson meant this:

10.c. Alternative: Using LILO

Last edited by paulsm4; 01-16-2011 at 12:10 PM.
 
  


Reply

Tags
lilo, ubuntu


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what do I add to /etc/lilo.conf to boot windbloze ? rob.rice Linux - General 4 12-26-2010 11:35 PM
[SOLVED] How do add lilo entry for ubuntu Tim Johnson Slackware 16 07-03-2010 06:08 PM
How to add Ubuntu 9.04 to lilo sevic33 Linux - Newbie 2 05-27-2009 10:33 AM
Can't add "read-write" to lilo.conf natewlew Slackware 5 07-10-2006 11:33 AM
how to add the line 'compact' to /etc/lilo.conf. kuertensun Linux - Newbie 6 06-23-2005 10:02 PM


All times are GMT -5. The time now is 06:15 AM.

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