Strange swapon/swapoff problem

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Thu Jan 20 2000 - 09:58:01 EST


Looks like you can not use partition used as swap-partition as "normal"
partition afterwards:

-- cut --
[root@localhost /root]# mkswap /dev/ide/host0/bus0/target0/lun0/part6
Setting up swapspace version 1, size = 592183296 bytes
[root@localhost /root]# swapon /dev/ide/host0/bus0/target0/lun0/part6
[root@localhost /root]# swapoff /dev/ide/host0/bus0/target0/lun0/part6
[root@localhost /root]# dd if=/etc/part6 of=/dev/ide/host0/bus0/target0/lun0/part6
dd: /dev/ide/host0/bus0/target0/lun0/part6: Input/output error
9+0 records in
8+0 records out
[root@localhost /root]# cat /dev/ide/host0/bus0/target0/lun0/part6 > /dev/null
[root@localhost /root]# dd if=/etc/part6 of=/dev/ide/host0/bus0/target0/lun0/part6
dd: /dev/ide/host0/bus0/target0/lun0/part6: Input/output error
33545+0 records in
33544+0 records out
[root@localhost /root]#
-- cut --

Why someone in sane mind will do this ? Ok, I share swap partition between
Windows98 and Linux. On Linux bootup I mkswap partition, on linux shutdown
I mkdosfs the same partition and Windows98 is happy. Now (with 2.3.36+devfs)
is does not work :-(( Mkdosfs compains
-- cut --
mkdosfs 0.3b (Yggdrasil), 5th May 1995 for MS-DOS FS
mkdosfs: failed whilst writing FAT
-- cut --
and even simple dd will fail. If I do not mkswap and swapon that partition
all works well: I can do mkdosfs and use dd.

P.S. It can be devfs fault but it does not look so...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:22 EST