Messed up the drive mount points

Linux/win98 dual boot system, 1 drive, different partions, recently resized/shrunk linux partition with partition magic and physically moved swap partition to another location on drive, getting a fail during startup, need to redo mount points, like I did during install, rhat6.1 mandrake/mcmillan 6.5,
will only accept specific walkthrough, Thanks

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Did You also create or delete partitons? if so, the other partitions got renumbered by Partiton magic... here's the solution

1. boot into some linux from Floppy/CDRom
(SuSE has a start option 'rescue system', has redhat something like this?)

2. do a 'fdisk -l', note the locastions of all linux/linux swap partitions shown

3. make a directory /mnt, if not exist

4. mount those linux patitions found in step 2, one after the other, to /mnt and have a look at the contents to find where they should be mounted... for example, if you find X11R6/bin in one partiton, id should be mounted to /usr, if you find spool/mail, it goes to /var, if you find etc/fstab, you've found your root partiton, and should mount this writeable now...

5. edit /mnt/etc/fstab to suit the new locations of your partitons. don't forget the swap partitions...

6. now boot from your system's boot floppy (I assume you have one?)

6a (if you do not have a boot floppy made during installation for your system) mount the root filesys to /mnt, mount the /usr partiton to /mnt/usr, mount the var partition to /mnt/var and so on... then do a chroot /mnt bash --login and you'll find yourself at a root prompt in your installed system.

7. Now check /etc/lilo.conf (or whatever bootmanager You are using) against the new locations, then reinstall the bootmanager

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dvngdgAuthor Commented:
Extremely detailed as I requested, I accept, but I won't try this for a few days, so I might have a follow up question,

Thanks much
well, this approach is quite safe, I've done it this way several times, sometimes needing more space for win, sometimes more space for linux, sometimes needing an extra partiton for some othe OS...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.