Re: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding

Matthew Dharm (mdharm-kernel@one-eyed-alien.net)
Sat, 12 May 2001 16:25:01 -0700


--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I was under the impression that you need to call swapon on swap partitions,
and not on mounted filesystems.

Matt

On Sun, May 13, 2001 at 01:00:39AM +0200, BERECZ Szabolcs wrote:
> Hi!
>=20
> root@kama3:/home/szabi# cat /proc/mounts
> ...
> /dev/hdb2 /usr ext2 rw 0 0
> ...
> root@kama3:/home/szabi# swapon /dev/hdb2
> set_blocksize: b_count 1, dev ide0(3,66), block 2, from c0126b48
> set_blocksize: b_count 1, dev ide0(3,66), block 3, from c0126b48
> set_blocksize: b_count 1, dev ide0(3,66), block 4, from c0126b48
> set_blocksize: b_count 1, dev ide0(3,66), block 5, from c0126b48
> set_blocksize: b_count 1, dev ide0(3,66), block 6, from c0126b48
> set_blocksize: b_count 1, dev ide0(3,66), block 7, from c0126b48
> set_blocksize: b_count 1, dev ide0(3,66), block 8, from c0126b48
> set_blocksize: b_count 1, dev ide0(3,66), block 1, from c0126b48
> Unable to find swap-space signature
> swapon: /dev/hdb2: Invalid argument
> root@kama3:/home/szabi#
>=20
> and then set_blocksize keeps flooding the console, not continuously,
> but 20-40 lines at a time, then it sleeps a bit, sometimes half a
> minute (caused by kupdated?)
>=20
> root@kama3:/home/szabi# mount -o remount,ro /usr
> ll_rw_block: device 03:42: only 4096-char blocks implemented (1024)
> root@kama3:/home/szabi#
>=20
> once I got these:
> ll_rw_block: device 03:42: only 4096-char blocks implemented (1024)
> EXT2-fs error (device ide0(3,66)): ext2_write_inode: unable to read inode=
block
> - inode=3D2084, block=3D8207
> ll_rw_block: device 03:42: only 4096-char blocks implemented (1024)
> EXT2-fs error (device ide0(3,66)): ext2_write_inode: unable to read inode=
block
> - inode=3D6328, block=3D24609
> ...
>=20
> szabi@kama3:/hdc1/kernel/linux-2.4.4-ac6# gdb vmlinux
> (gdb) disas 0xc0126b48
> ...
> 0xc0126b43 <sys_swapon+371>: call 0xc012bcc0 <set_blocksize>
> 0xc0126b48 <sys_swapon+376>: mov 0xe8(%edi),%edi
> 0xc0126b4e <sys_swapon+382>: mov %edi,0xffffffd0(%ebp)
> ...
>=20
> I tried it on several partitions, and it worked on /dev/hdc,
> and did not work on /dev/hdb
> on /dev/hdb all the filesystems are ext2
> on /dev/hdc one fs is a new, clean ext2, the others are reiserfs
>=20
> so I really don't know what's the problem.
>=20
> do you need any other information?
>=20
> Bye,
> Szabi
>=20
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--=20
Matthew Dharm Home: mdharm-usb@one-eyed-alien.=
net=20
Maintainer, Linux USB Mass Storage Driver

C: Like the Furby?
DP: He gives me the creeps. Think the SPCA will take him?
-- Cobb and Dust Puppy
User Friendly, 1/2/1999

--vtzGhvizbBRQ85DL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6/cZMz64nssGU+ykRAh/uAKDudwxk+ilFazTdXSJooR4zT7LK4gCgkXoV
AyAhFm93Kn3g7V6NZoF03h4=
=gdQE
-----END PGP SIGNATURE-----

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