Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Can't boot to hard drive after partitioning

Posted on 1997-01-09
1
290 Views
Last Modified: 2013-12-15
Recently I used the Quarterdeck product PARTITION-IT to resize some of the DOS partitions on the hard disk of my computer (Pentium 100). In the process I moved (but not resized) the Linux active partition and the Linux swap partition. Subsequently the LILO boot loader went into panic mode.

I was able to use the Slackware boot/root floppies to mount the active partition (hda3) and it seems intact. Therefore I concluded that I would have to reinstall LILO from the hard disk, which I was able to do with the command

      lilo -r /mnt

which changes root to /mnt (where I had mounted /dev/hda3)
prior to installing LILO. This seemed to work, however I still get kernel panic when I try to boot from the hard disk.

Someone has suggested that I should use Linux <fdisk> to
reset the Linux partitions, however I understand this is a data-destructive process, to be used as a last resort only.

Can someone advise me how to retrieve the situation? More generally, what are the do's and don'ts of trying to use a DOS-based partition utility when Linux partitions are present? I should mention that LILO is using the MBR to boot to Linux/DOS,

Thanks for any help you can provide....

Roger Young,
roger@maths.grace.cri.nz
0
Comment
Question by:roger010997
1 Comment
 

Accepted Solution

by:
markg2 earned 100 total points
ID: 1626848
Linux Fdisk is not necessarily data destructive.  It seems that your partition type may have been altered by the DOS utility (either at the partition or the master boot record of the drive).  Try resetting your partition type in the Linux fdisk to 'boot', this *should* fix your problem and *should not* be data destructive, and if you get the urge to move partitions around again, try a utility called FIPS (avail with redhat linux releases), it is 'Linux aware'.  
Note: You may want to fdisk your Master Boot Record from DOS before this procedure (at DOS prompt: fdisk /mbr - this is non-destructive), and then re-install LILO *after* doing the Linux fdisk.

Good Luck. (and be sure to back up your data, just to be safe!)
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question