ramdisk problem 2.1.2[56]

Edward Welbon (welbon@bga.com)
Wed, 12 Feb 1997 00:44:34 -0600 (CST)


When I attempt to build an ext2 filesystem on a ramdisk, mke2fs complains
about not being able erase block 0. I am able to mount the file system
but any file write operation on the mounted file system hangs. Is this a
known problem? I am fairly sure that all of my pertinent libs etc. are at
the correct levels. I see the same problem with 2.1.25 also.

-----

max1-108:~# mke2fs -b 1024 /dev/ram0 1024
mke2fs 1.06, 7-Oct-96 for EXT2 FS 0.5b, 95/08/09
Linux ext2 filesystem format
Filesystem label=
256 inodes, 1024 blocks
51 blocks (4.98%) reserved for the super user
First data block=1
Block size=1024 (log=0)
Fragment size=1024 (log=0)
1 block group
8192 blocks per group, 8192 fragments per group
256 inodes per group

Writing inode tables: done
Warning: could not erase block 0: Attempt to write block from filesystem
resulted in short write
Writing superblocks and filesystem accounting information: done

max1-108:/usr/src/initrd# mount -t ext2 /dev/ram1 /mnt
max1-108:/usr/src/initrd# cd /mnt Attempt to write block from filesystem
resulted in short write
Writing superblocks and filesystem accounting information: done

max1-108:/usr/src/initrd# mount -t ext2 /dev/ram1 /mnt
max1-108:/usr/src/initrd# cd /mnt
max1-108:/mnt# ls
lost+found/
max1-108:/mnt# touch barf

... hangs

Ed Welbon; welbon@bga.com;

If you pick up a starving dog and make him prosperous, he will not bite
you. This is the principal difference between a dog and a man.
-- Mark Twain