lkml.org 
[lkml]   [2001]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: mount /dev/hdb2 /usr; swapon /dev/hdb2 keeps flooding
    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!
    >
    > 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#
    >
    > 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?)
    >
    > 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#
    >
    > 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=2084, block=8207
    > 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=6328, block=24609
    > ...
    >
    > 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)
    > ...
    >
    > 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
    >
    > so I really don't know what's the problem.
    >
    > do you need any other information?
    >
    > Bye,
    > Szabi
    >
    > -
    > 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/

    --
    Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
    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
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2005-03-22 12:52    [W:0.025 / U:124.656 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site