I wounded my system with fdisk...
#1
Posted 21 February 2004 - 08:48 AM
I actually boot off of hdc, using GRUB, but it doesn't get anywhere close to opening the desktop...although it appears to be trying very hard.
Is there a simple way for me to restore the old partition table, or ( preferably ) explain the new layout to hdc? I have floppy boot disc, but don't really know how to use it wisely, and I understand that the RedHat9 install CD1 has a repair function...?
Thanks....( and by the way, when I get this mess fixed, how do I increase the size of a partition which is next to free space on the drive..?)
Allen
#2
Posted 21 February 2004 - 09:34 AM
In grub, edit the boot line, adding the word "single" at the end. Hit esc, then "b" to boot up. The boot process will give you just the minimal set of drivers and utilities (vi included) to edit the fstab and set things straight.
#3
Posted 21 February 2004 - 10:43 AM
My fear is that there was some space reserved on one of the partitions that I deleted (so I re-installed two replacements to sneak hdb9 back up to hdb11), for example /dev/shm ( whatever that is...?) and my system hangs without it.
#4
Posted 21 February 2004 - 12:44 PM
Is it the root partition that got changed in the process?
First stop changing the partitions and determine what your Redhat partitions are.
Originally, during the RedHat install, did you set up just one partition for everything, or do you have multiple partitions for RedHat?
Post what the partitions are, so we can take a look at them.
Make sure fstab points to the correct partitons for each.
Boot normally and see what happens.
If you added single to the grub menu of config file, remove it, so that the system will try to login to the GUI.
#5
Posted 21 February 2004 - 07:22 PM
I think maybe you hosed up your swap space. See where it was mouted in fstab, and just comment it out for now.
#6
Posted 21 February 2004 - 07:38 PM
Couple of questtions more..._is there a way to increase a partition size? Also, what is /dev/shm space used for? If you can point me to a good resource for questions like this great! Thanks again. I'll post the resolution should it happen....
#7
Posted 21 February 2004 - 08:42 PM
[root@x1 root]# cat /mnt/hdb6/etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/cwindows vfat auto,umask=0 0 0
/dev/hdb1 /mnt/dwindows vfat auto,umask=0 0 0
/dev/hdb5 /mnt/ewindows vfat auto,umask=0 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
[root@x1 root]# cat /etc/fstab
LABEL=/1 / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/hdb10 swap swap defaults 0 0
/dev/hdb8 swap swap defaults 0 0
/dev/hdc2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
I'm at a loss where to go from here! "fsck -a" wouldn't work in this instance, would it?
#8
Posted 21 February 2004 - 09:05 PM
mkswap [ -c ] device [size-in-blocks]
See the man page for more detail.
You should be able to run without a swap space anyway. Some folks prefer it that way, especially if you have enough ram. For now, just comment the lines out where swap areas are defined.
I don't know how you can restore the old partition table, but that shouldn't be necessary.
For what it's worth, I think you're pretty close to solving your woes. As long as you can still boot at all, there's hope.
Try this: from a command prompt, run fdisk /dev/hdX, where X is the drive. Type p to print out the partition table. Then see how that matches up with your fstab. That should help you sort things out.
Since you have 2 linux installations, be careful to keep things straight.
Don't worry about /dev/shm. It's a virtual drive, but don't try using it as a regular partition.
#9
Posted 21 February 2004 - 09:25 PM
Don't create anymore filesystems or swap space.
Where exactly is root for RedHat now - This is the installation we are talking about, right?
Both entries for grub and fstab need to point to the proper root directory for the kernel to boot. This is probably why you are getting the grub error message, it can't find vmlinuz...or what the kernel file is.
You have swap space from another installation, so this can be used. Just make sure that one of the partitions for swap space is in fstab.
If you can determine where root is, then you need to modify the grub.conf or menu.list to reflect where the root is now, so the kernel is found correctly, when grub attempts to boot.
Since you changed partitons, we need to make sure that we have the correct one. Sounds like you are getting good at this, so let's go one step at a time.
This is the issue, since you have multiple partitions and linux installations, you need to point to where root for RedHat is currently.
And, yes, you can extend the partition later on, with either PartitionMagic or a linux utility, such as qtparted.
I prefer these, as they give you a graphical representation of what the disks and partitions look like.
But please, don't do this now.
#10
Posted 23 February 2004 - 09:27 AM
Regards,
Steve
#11
Posted 23 February 2004 - 03:22 PM

Help










