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?
mhomannConnect With a Mentor Commented:
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
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...
All Courses

From novice to tech pro — start learning today.