LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-27-2018, 09:31 AM   #1
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Rep: Reputation: 30
Partition Table problem running LILO


I had to transfer a hard drive to another machine after
an electrical short destroyed the motherboard.
I have Slackware 13.37 installed on this hard drive with
an msdos partition table (Gparted) which will boot
properly. However, if I try to run LILO -b /dev/sdc2,
I get the partition table warning:

Warning: Ignoring entry 'boot'
Warning: LBA32 addressing assumed
Warning: /dev/sdc2 is not on the first disk
Warning: Device 0x0820: Inconsistent partition table, 2nd entry
CHS address in PT: 261:53:49 --> LBA (3949707)
LBA address in PT: 4196352 --> CHS (297:128:49)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified
If not sure, first try IGNORE-TABLE (-P ignore)

I try to rerun LILO with LILO -b -P ignore /dev/sdc2, but
this results in a display of all switches and their use
which would indicate that my syntax is wrong.

I also ran fdisk and printed the partition table which
showed no partitions.

What is wrong here?
 
Old 06-27-2018, 09:37 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
post your /etc/lilo.conf
 
Old 06-27-2018, 10:11 AM   #3
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
Pretty simple lilo.conf; don't see how it could be the cause of the problem, although change-rules?

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=1"
boot = /dev/sdc2

bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255

prompt
timeout = 100
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
vga = normal
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sdc2
label = Linux
video=800x600
read-only
# Linux bootable partition config ends
 
Old 06-27-2018, 10:34 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448
According to the LILO man page, "ignore-table" should go into lilo.conf as a global option.
 
Old 06-27-2018, 10:46 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448
Oops! Duplicate.
 
Old 06-27-2018, 12:03 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
what is the ouput of fdisk -l when booted into Slackware 13.37?
 
Old 06-27-2018, 02:54 PM   #7
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 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: 0xcf56eaa7

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 1250260991 625027072 7 HPFS/NTFS/exFAT

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x4a6c4a6b

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 625141759 312570848+ 7 HPFS/NTFS/exFAT

Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 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: 0x0c7903ec

Device Boot Start End Blocks Id System
/dev/sdc1 2048 4196351 2097152 82 Linux swap
/dev/sdc2 * 4196352 78165359 36984504 83 Linux
 
Old 06-27-2018, 07:56 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
has lilo always been installed to the sdc2 partition or was it installed to the mbr of the drive at one time?
 
Old 06-28-2018, 07:33 AM   #9
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
I always install LILO on the boot sector of the root partition not the MBR, but after all the
trouble I have been having I did a dd dump of the MBR and it does contain boot code, not just
the partition table. I can erase the boot code there leaving only the partition table and
disk identifier, but I don't see how that is going to cure the "inconsistent partition table".
 
Old 06-29-2018, 02:44 PM   #10
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
Problem solved! Took a gamble and ran LILO -P fix after making a copy of the MBR with dd.
This changed two bytes in the partition table. Reran LILO -b /dev/sdc2 and it ran
successfully. Boot is good.
 
Old 08-02-2018, 06:57 AM   #11
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: Debian
Posts: 900

Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
Originally Posted by raypen View Post
Problem solved!
Good. Maybe you could mark this thread as solved then?
 
  


Reply



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
Add Windows to LILO on MBR, partition table problem livebytheSword 4MLinux 1 01-08-2016 09:42 AM
Problem Booting with LILO - Inconsistent partition table stoa Linux From Scratch 16 12-25-2013 04:38 PM
Lilo inconsistent partition table on current with ssd zux Slackware 7 03-30-2011 12:32 PM
[SOLVED] Can't install lilo --> Inconsistent partition table hedron Slackware 10 11-13-2010 10:11 PM
lilo: Inconsistent partition table picobyte Linux - Hardware 3 10-26-2005 06:45 PM

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

All times are GMT -5. The time now is 06:41 PM.

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