Re: Strange swapon/swapoff problem

From: Guest section DW (dwguest@win.tue.nl)
Date: Fri Jan 21 2000 - 01:55:58 EST


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@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 --

# 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@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:24 EST