Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
01-11-2011, 05:49 AM
|
#31
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,950
|
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.
|
|
|
|
01-11-2011, 06:05 AM
|
#32
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
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. 
|
|
|
|
01-11-2011, 06:06 AM
|
#33
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by SeSoX
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)?
|
|
|
|
01-11-2011, 06:38 AM
|
#34
|
|
LQ Newbie
Registered: Aug 2009
Posts: 18
Rep:
|
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 
|
|
|
|
01-11-2011, 06:50 AM
|
#35
|
|
LQ Newbie
Registered: Jan 2011
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by SeSoX
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~

|
|
|
|
01-11-2011, 10:01 AM
|
#36
|
|
Member
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 675
Rep:
|
@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.
|
|
|
|
01-11-2011, 01:56 PM
|
#38
|
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,192
|
Quote:
Originally Posted by Miter_J
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.
|
|
|
|
01-16-2011, 12:09 PM
|
#39
|
|
Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,861
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:15 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|