Swap partition problem

Swap partition problem

Post by George Hotellin » Thu, 16 Jan 1997 04:00:00



I get an error everytime I try to boot Linux, saying that the swap
partition is foobar, and I should run e2fsck (I think that's the prog,
I'm still a newbie).  I ran it, and it says to run it with the -b option
and it suggests a superblock.  Then I get an error saying bad
superblock, and to make sure the partition exists. So my question is
what to do now?  I could re-install Linux, as I lost some other files
with the swap partition (I did the unthinkable, I had to cut the power
while logged in as root.  Keyboard died) but I'm hoping that there's an
easier way.  BTW, I tried using fdisk to delete the partition and
reinstall it.  Finally, I've got 16 megs of RAM, do I even NEED a swap
partition?

--

http://home.sprynet.com/sprynet/wintermu
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1


------END GEEK CODE BLOCK------

 
 
 

Swap partition problem

Post by David Sye » Fri, 17 Jan 1997 04:00:00



> I get an error everytime I try to boot Linux, saying that the swap
> partition is foobar, and I should run e2fsck (I think that's the prog,
> I'm still a newbie).  I ran it, and it says to run it with the -b option
> and it suggests a superblock.  Then I get an error saying bad
> superblock, and to make sure the partition exists. So my question is
> what to do now?  I could re-install Linux, as I lost some other files
> with the swap partition (I did the unthinkable, I had to cut the power
> while logged in as root.  Keyboard died) but I'm hoping that there's an
> easier way.  BTW, I tried using fdisk to delete the partition and
> reinstall it.  Finally, I've got 16 megs of RAM, do I even NEED a swap
> partition?

I won't try and advise you on whether you *need* swap or not (I do).
But with 16M you can at least boot and run happily in a console without
swap, so do it (swapoff -a, or remove swap entries from  /etc/fstab and
reboot).  Then run `mkswap /dev/your_swap_partition'.  Swap partitions
do not have ext2 filesystems on the, so no wonder e2fsck didn't like
it.  Test it with `swapon /dev/your_swap_partition'.

Dave.

 
 
 

1. Swap partition problem

I recently installed a new hard drive and decided to set aside 100M of
the new drive for a swap partition.  I used fdisk -t and assigned the
partition the swap type.  I exited fdisk with w and checked the
assignments, everything looked fine.  When I rebooted and did fdisk -l,
it stated the partition was unknown and the type it was assigned was
92.  I did fdisk again and the same thing happened (and still happens)
when I rebooted.  I used mkswap and swapon.  I updated fstab.  When I
type free I see the swap partition but it is unused.  I am using the
Slackware Distribution 3.2.  I can't figure out what I am doing wrong.
Any help would be appreciated. Regards.

Pasquale Fazio

2. patch to 1.2.x and proxy-arp

3. Swap partition problems

4. Cannot make some of the latest ports

5. Swap partition problem

6. socksproxy 5

7. swap partition problem

8. how to translate PID to Internet connection

9. need help with swap partition problem

10. Slackware installation, swap partition problem

11. Swap Partition Problem

12. FAT32 and Swap partition problem!!!???

13. How to recompile the Kernel?! Mitsumi FX 400 don't work!! Swap partition problem....ARRGGHHH!!!