Strange swapon/swapoff problem
Guest section DW
dwguest en win.tue.nl
Vie Ene 21 17:14:03 CST 2000
On Thu, Jan 20, 2000 at 05:58:01PM +0300, Khimenko Victor wrote:
> 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 --
# mkswap /dev/hdc1
Setting up swapspace version 0, size = 98664448 bytes
# swapon /dev/hdc1
# swapoff /dev/hdc1
# dd if=/dev/zero of=/dev/hdc1
dd: /dev/hdc1: No space left on device
192713+0 records in
192712+0 records out
Nothing wrong here (2.3.40pre6).
You do not mention a kernel version.
-
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