LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   No medium found: cant mount swap part (https://www.linuxquestions.org/questions/linux-hardware-18/no-medium-found-cant-mount-swap-part-329352/)

Dark Elf 06-01-2005 08:31 PM

No medium found: cant mount swap part
 
I bought a NEC dvd-rw drive and installed it in an external enclosure. Recently i decided i wanted to install it in my new tower. The two other cd drives occupied one cable, while the other cable had only the hdd on it, as master. Due to physical restrictions inside my machine, i had to set the dvd as master and the hdd as the slave on that same cable. Now FD2 boots normally until it needs to mount all the partitions.
I get:

activating swap partitions:
swapon: /dev/hda6: no medium found
blah blah blah cant read superblock

no medium found while trying to open /dev/hda3


Sorry about the blahs but it was a long message about maybe the drive was corrupt and whatnot. Anyway, i dual-boot XP and FD2 with a FAT partition as /dev/hda2.

I never had any problems booting until i installed this dvd drive. I havent tried taking it out because it was such a hassle putting it in. I dont like being defeated by a machine.

If i left out any necessary info let me know and i'll add it.

Thanks

Electro 06-01-2005 08:45 PM

Fedora and Redhat uses labels to mount certain drives. You have to change the fstab and probably the bootloader for the change of device.

Dark Elf 06-01-2005 09:03 PM

my bootloader listed linux as (hd 0,2) and i've changed it to everything imaginable with no positive effect.
How do i access fstab and change it?

michaelk 06-02-2005 06:54 AM

The reason your having problems is drive drive changed locations from hda to hdb assuming they are connected to the 1st IDE controller. hda is now your DVD drive. Fedora does not use a label for the swap partition. You will need to modify the /etc/fstab file to change the drive id from hda to hdb for swap and the FAT32 partitions. You need to be logged in as root to edit files in this directory.

Change:
/dev/hda6 swap swap defaults 0 0
to
/dev/hdb6 swap swap defaults 0 0

Your fstab might not look exactly like the above. Change the FAT32 partitions from hda to hdb too.

Dark Elf 06-02-2005 02:15 PM

Thanks for the help.
I changed fstab from hda6 to hdb6. Now i no longer get an error message regarding that. Only:

fsck.ext3/dev/hda3

There's no mention of hda3 in fstab. i dont know what file to change now.



Dark Elf 06-02-2005 11:52 PM

OK, i tried to figure out what file the critical reference to /dev/hda was in. I looked in mtab and lilo.conf, among others. i corrected the entry in lilo.conf, but to no effect. I really need help finding out where to look.


All times are GMT -5. The time now is 12:59 AM.