LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2014, 04:02 PM   #1
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 237
Blog Entries: 12

Rep: Reputation: Disabled
Question I need some more {lilo, booting, partition} understanding.


I've got my drive setup so that I can dual boot Windows and Slackware, with two other partitions that I chain load (those two partitions use their own boot loader).

Here's the output from `fdisk -l`
Code:
/dev/sda1   *          63   644034559   322017248+   7  HPFS/NTFS/exFAT
/dev/sda2       644036606  1053631844   204797619+   5  Extended
/dev/sda3      1053631845  1057628312     1998234   82  Linux swap / Solaris
/dev/sda4      1057628313  1250263727    96317707+  83  Linux
/dev/sda5       644036608   748894207    52428800   83  Linux
/dev/sda6       748894271  1053631844   152368787   83  Linux
Previously, I had my lilo.conf setup like this:
Code:
other = /dev/sda1
  label = Windows
  table = /dev/sda

image = /boot/vmlinuz
  root = /dev/sda2
  label = Old-Slack
  read-only

other = /dev/sda5
  label = Debian

other = /dev/sda6
  label = New-Slack
Note that Old-Slack's root was set to the Extended partition. This worked fine until I installed Windows 7 and had to reset the MBR with lilo again, and after that point all of my links to dev/sda2 were broke because they weren't pointing to the actual partition with data on it. I know this wasn't something that happened on this one partition: each of my Linux partitions reference a directory on Old-Slack and they all broke after my MBR fix.

Now I've edited sda2 out and sda4 in (the correct partition) and things are back to normal.

How was my system running before when it was referencing the Extended partition instead of the actual partition with the data on it (sda4)? Did I just get lucky? Did I even fix it this time?
 
Old 03-28-2014, 09:14 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,904

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
until I installed Windows 7
Did you install windows 7 or reinstall windows 7? If you installed windows 7 it would be hard to say with out knowing what your partition layout was before installing windows.

Last edited by colorpurple21859; 03-28-2014 at 09:16 PM.
 
Old 03-28-2014, 10:15 PM   #3
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 237
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Did you install windows 7 or reinstall windows 7? If you installed windows 7 it would be hard to say with out knowing what your partition layout was before installing windows.
It was an upgrade from XP, so the partition setup is exactly the same.
 
Old 03-29-2014, 07:51 PM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,904

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
the partition setup is exactly the same.
something had to change in the partitioning scheme if everything quit working after upgrading to windows 7. How did you
Quote:
reset the MBR with lilo
?
 
Old 03-30-2014, 11:59 AM   #5
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 237
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
something had to change in the partitioning scheme if everything quit working after upgrading to windows 7. How did you ?
I used a Slackware DVD to boot /dev/sda4 and then ran lilo as root, using some the config options in the first post. I had to do something because otherwise I was getting a kernel panic because it said it couldn't read /dev/sda2, which seems understandable.

I certainly don't believe I changed the partitioning scheme. Otherwise, I would have lost data, right? That seems like something really non-trivial that I would have remembered doing.

It's definitely a puzzle.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Booting with LILO - Inconsistent partition table stoa Linux From Scratch 16 12-25-2013 05:38 PM
Will Slackware 14.0 support booting from a btrfs partition using LILO? blue_k Slackware 3 10-14-2012 02:54 AM
Having Trouble Understanding the Disk Partition dual-booting Linux Pl3th0r4x Linux - General 8 01-30-2012 10:50 AM
lilo trashed, when booting from cd, lilo command is not present wakeboarder3780 Linux - Software 3 03-23-2006 06:02 PM


All times are GMT -5. The time now is 09:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration