LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Editing Lilo (http://www.linuxquestions.org/questions/slackware-14/editing-lilo-4175433409/)

Prasanna_Adhikari 10-21-2012 08:43 PM

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.

wildwizard 10-21-2012 09:06 PM

What happens when you actually run lilo?

Prasanna_Adhikari 10-21-2012 10:22 PM

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?

mrascii 10-21-2012 10:59 PM

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

wildwizard 10-21-2012 11:03 PM

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"

Prasanna_Adhikari 10-22-2012 04:37 AM

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

wildwizard 10-22-2012 04:43 AM

Quote:

Originally Posted by Prasanna_Adhikari (Post 4811991)
/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


Prasanna_Adhikari 10-22-2012 04:49 AM

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


wildwizard 10-22-2012 07:38 AM

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.

Prasanna_Adhikari 10-22-2012 08:57 AM

Isn't there any solution then, I don't want to ruin the windows and want to boot slackware without DVD

wildwizard 10-23-2012 03:10 AM

Have you tired running lilo with the "-P ignore" option yet?

Prasanna_Adhikari 10-23-2012 11:11 PM

-P ignore solved the problem
 
Thanks mrascii and wildwizard,-P ignore option solved my problem.


All times are GMT -5. The time now is 01:41 AM.