taking 1 swap partition off line

taking 1 swap partition off line

Post by roo » Fri, 01 Jan 1999 04:00:00



I have 2 swap partitions and only really need 1.  How do I get one of them
back? What steps should I take?
 
 
 

taking 1 swap partition off line

Post by Rick Moe » Fri, 01 Jan 1999 04:00:00


: I have 2 swap partitions and only really need 1.  How do I get one of them
: back? What steps should I take?

Depends on what you mean by "back".

To delete it, do "swapoff" to turn off swap.  Then use fdisk to
delete the partition, then remove the matching line from /etc/fstab,
then do "swapon" to turn swap back on.

You now have some unallocated space where you used to have a swap
partition.  What you want to put in its place is up to you.

--
Cheers,                   The cynics among us might say:   "We laugh,
Rick Moen                 monkeyboys -- Linux IS the mainstream UNIX now!
rick (at) linuxmafia.com  MuaHaHaHa!" but that would be rude. -- Jim Dennis

 
 
 

1. ! My swap partition blew off...

Hi !

        By trying to retrieve too much (Usenet) articles, my swap
partition blew off (100 Mb)...

        This partition used to be hda7, and when I fdisk /dev/hda, it
gaves me strange numbers for this partition, so I deleted it. Now,
when I try to fdisk hda, I have:  

Using /dev/hda as default device!

Unable to read /dev/hda

        When I boot, I have these messages when the kernel tries to
check the disk:

Jul  8 13:39:25 entropie kernel: Partition check:
Jul  8 13:39:25 entropie kernel:  hda:Started kswapd v 1.4.2.2
Jul  8 13:39:25 entropie kernel:  hda1 hda2 < hda5 hda6hda: read_intr:
status=0x59 { DriveReady SeekComplete DataRequest Error }
Jul  8 13:39:25 entropie kernel: hda: read_intr: error=0x10 {
SectorIdNotFound }, LBAsect=36933219, sector=0
Jul  8 13:39:25 entropie kernel: hda: read_intr: status=0x59 {
DriveReady SeekComplete DataRequest Error }
Jul  8 13:39:25 entropie kernel: hda: read_intr: error=0x10 {
SectorIdNotFound }, LBAsect=36933219, sector=0
Jul  8 13:39:25 entropie kernel: hda: read_intr: status=0x59 {
DriveReady SeekComplete DataRequest Error }
Jul  8 13:39:25 entropie kernel: hda: read_intr: error=0x10 {
SectorIdNotFound }, LBAsect=36933219, sector=0
Jul  8 13:39:25 entropie kernel: hda: read_intr: status=0x59 {
DriveReady SeekComplete DataRequest Error }
Jul  8 13:39:25 entropie kernel: hda: read_intr: error=0x10 {
SectorIdNotFound }, LBAsect=36933219, sector=0
Jul  8 13:39:25 entropie kernel: ide0: reset: success

etc.

        Though the other partitions (hda5 and hda6) are OK, I can't
use fdisk to recreat hda7 or whatever, because I can't use fdisk...
        What can I do, now ?

        Thanks for any help !!!
--

2. hello world

3. Korn Shell Script Question...looping

4. On-line/Off-line long-term power backup

5. umask()

6. Interested in simple off-line news reading package for slow lines?

7. Solstice Disk Suite vs Veritas Vol Mgr

8. MS-DOS Swap File vs. Swap Partition

9. Swap file VS Swap partition

10. 20+ meg Swap partition setup, but top only reports 860k of swap available...

11. Installing Win/Linux shared swap on old swap partition