?
Solved

Can't boot to hard drive after partitioning

Posted on 1997-01-09
1
Medium Priority
?
305 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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