Strange swapon/swapoff problem

Khimenko Victor khim en sch57.msk.ru
Vie Ene 21 02:47:45 CST 2000


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

-- cut --
[root en localhost /root]# mkswap /dev/ide/host0/bus0/target0/lun0/part6
Setting up swapspace version 1, size = 592183296 bytes
[root en localhost /root]# swapon /dev/ide/host0/bus0/target0/lun0/part6
[root en localhost /root]# swapoff /dev/ide/host0/bus0/target0/lun0/part6
[root en 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 en localhost /root]# cat /dev/ide/host0/bus0/target0/lun0/part6 > /dev/null
[root en 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 en 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 en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda