From: "Jake McHenry" <linux@xxxxxxxxxxxxxxxxx> > I had the harddrive in the machine, not being used. So I copied the > files that I wanted (config files, tar files, etc) onto the harddrive > and put it in the other machine. Now I can't access it. > > I want to mount it just like a cdrom, etc.. But it won't let me. > > The info I got from parted was: > > Minor Start End Type Filesystem Flags > 1 0.031 194474.355 primary linux-swap > > I have no idea in hell how it became a swap partition, it wasn't this > after noon..... > > Anything I can do? Nothing easy. I have recovered by knowing something of the RedHat Linux directory structure and the way I had set it all up before hand, or at least remembering what partitions I had made by name if not /dev/what. I used the install process. I got it far enough that a control-alt-F1 showed the shell prompt. "fdisk -l /dev/hda" showed me the raw partitions and their sizes. It also gave me a leg up because I knew two of the partition devices without any work. "/dev/hda" is always "/boot", since I got into the habit of using a separate boot partition. And the swap partition is identified as being a "swap" partition instead of a Linux E2FS partition. From there I simply mounted the partitions one at a time to /mnt and looked at their top level directories. That allowed me to identify /, /var, /usr, /home, /usr/local, and so forth. I took notes and used that to mount / and rebuild the /etc/fstab file. From there it was an easy reboot. Of course, I believe fdisk is so deprecated these days it may not be present anymore. (It was too effective until it was emasculated to only allow 16 partitions.) {^_^} -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list