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. |
|
 |
10-21-2012, 08:43 PM
|
#1
|
|
Member
Registered: Dec 2009
Distribution: Slackware 13.37
Posts: 35
Rep:
|
Editing Lilo
I am having trouble in lilo file. I'm having boot problem. My lilo file is like this:
boot = /dev/sda
image = /boot/vmlinuz
label = Linux
root = /dev/sda7
other = /dev/sda1
label = Windows
table = /dev/sda
I have installed both Windows 7 and Slackware 13.31, when I start my machine, it directly boots Windows 7 without prompting option to choose those two OS.
|
|
|
|
10-21-2012, 09:06 PM
|
#2
|
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 630
Rep: 
|
What happens when you actually run lilo?
|
|
|
|
10-21-2012, 10:22 PM
|
#3
|
|
Member
Registered: Dec 2009
Distribution: Slackware 13.37
Posts: 35
Original Poster
Rep:
|
how to run lilo?
Actually I installed both Windows 7 and Slackware 13.37. Slackware in /dev/sda7 and Windows in /dev/sda1
There was message while installing lilo. Which was like this:
Warning: Device 0x0800:Inconsistent partition table, 1st entry
CHS address in PT:0:1:1 --> LBA(63)
LBA address in PT:19-->CHS (0:0:20)
Fatal:Either FIX-TABLE or IGNORE-TABLE must be specified
If not sure, first try IGNORE-TABLE(-p ignore)
After that When I completed installation and restarted my machine, Windows 7 directly started. Later I used BackTrack disk and checked the lilo.conf file, which was like mentioned above.
By the way how to run lilo?
|
|
|
|
10-21-2012, 10:59 PM
|
#4
|
|
Member
Registered: Jun 2012
Location: on the Net
Distribution: Slackware
Posts: 100
Rep: 
|
Boot from the DVD or CD and follow the rescue instructions.
Quote:
In a pinch, you can boot your system from here with a command like:
boot: huge.s root=/dev/sda1 rdinit= ro
|
Of course, changing root= to point to your root partition. If that is successful than run /sbin/liloconfig to rebuild /etc/lilo.conf. Then run lilo to install the new configuration.
DNA
AKAmrascii
|
|
|
|
10-21-2012, 11:03 PM
|
#5
|
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 630
Rep: 
|
You simply type lilo at the command prompt, but you need to be up and running first.
BTW that "FATAL" error means lilo did not install that is why Windows is still booting by itself.
Step one is boot into Slackware :-
do this by using the install CD/DVD and on the screen that comes up there are instructions on how to do just that
Step two is work out why lilo hates your hdd partition table, you can post it here by getting the output from "fdisk -l"
|
|
|
|
10-22-2012, 04:37 AM
|
#6
|
|
Member
Registered: Dec 2009
Distribution: Slackware 13.37
Posts: 35
Original Poster
Rep:
|
Partition Table
root@soul:/# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
224 heads, 19 sectors/track, 73444 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7b0534cf
Device Boot Start End Blocks Id System
/dev/sda1 * 19 41942879 20971430+ 7 HPFS/NTFS/exFAT
/dev/sda2 41942880 312581807 135319464 f W95 Ext'd (LBA)
/dev/sda5 41942899 125828639 41942870+ 7 HPFS/NTFS/exFAT
/dev/sda6 125828659 209714399 41942870+ 7 HPFS/NTFS/exFAT
/dev/sda7 209714419 229713231 9999406+ 83 Linux
/dev/sda8 229713251 308581167 39433958+ 83 Linux
/dev/sda9 308581187 312581807 2000310+ 82 Linux swap
Last edited by Prasanna_Adhikari; 10-22-2012 at 04:44 AM.
|
|
|
|
10-22-2012, 04:43 AM
|
#7
|
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 630
Rep: 
|
Quote:
Originally Posted by Prasanna_Adhikari
/dev/sda1
/dev/sda2
/dev/sda5
/dev/sda6
/dev/sda7
/dev/sda8
/dev/sda9
|
Where is the rest of the output?
It should look like this :-
Code:
Device Boot Start End Blocks Id System
/dev/sda1 2048 21000000 10498976+ 83 Linux
/dev/sda2 * 21000001 970000000 474500000 7 HPFS/NTFS/exFAT
/dev/sda3 970000001 976773167 3386583+ da Non-FS data
|
|
|
|
10-22-2012, 04:49 AM
|
#8
|
|
Member
Registered: Dec 2009
Distribution: Slackware 13.37
Posts: 35
Original Poster
Rep:
|
The output of fdisk -l is like this:
Quote:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
224 heads, 19 sectors/track, 73444 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7b0534cf
Device Boot Start End Blocks Id System
/dev/sda1 * 19 41942879 20971430+ 7 HPFS/NTFS/exFAT
/dev/sda2 41942880 312581807 135319464 f W95 Ext'd (LBA)
/dev/sda5 41942899 125828639 41942870+ 7 HPFS/NTFS/exFAT
/dev/sda6 125828659 209714399 41942870+ 7 HPFS/NTFS/exFAT
/dev/sda7 209714419 229713231 9999406+ 83 Linux
/dev/sda8 229713251 308581167 39433958+ 83 Linux
/dev/sda9 308581187 312581807 2000310+ 82 Linux swap
|
Last edited by Prasanna_Adhikari; 10-22-2012 at 04:53 AM.
|
|
|
|
10-22-2012, 07:38 AM
|
#9
|
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 630
Rep: 
|
Ok some reading later and the ignore option is safe and should work.
Do not use the fix option as it may break your Windows install.
Looks like Windows didn't create it's partition record correctly, out by one sector.
|
|
|
|
10-22-2012, 08:57 AM
|
#10
|
|
Member
Registered: Dec 2009
Distribution: Slackware 13.37
Posts: 35
Original Poster
Rep:
|
Isn't there any solution then, I don't want to ruin the windows and want to boot slackware without DVD
|
|
|
|
10-23-2012, 03:10 AM
|
#11
|
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 630
Rep: 
|
Have you tired running lilo with the "-P ignore" option yet?
|
|
|
|
10-23-2012, 11:11 PM
|
#12
|
|
Member
Registered: Dec 2009
Distribution: Slackware 13.37
Posts: 35
Original Poster
Rep:
|
-P ignore solved the problem
Thanks mrascii and wildwizard,-P ignore option solved my problem.
|
|
|
|
| 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:40 PM.
|
|
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
|
|