Solved

Can't boot to hard drive after partitioning

Posted on 1997-01-09
1
298 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
[X]
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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

724 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