2.6.x mount /dev/ram0 problem.

From: Siseci
Date: Mon Mar 29 2004 - 10:38:09 EST



Hi.
I have a problem about ramdisk.
Kernel version: 2.6.3 and 2.6.4

root@fen:~# dd if=/dev/zero of=/dev/ram0 bs=1024 count=2048
2048+0 records in
2048+0 records out
root@fen:~# mke2fs /dev/ram0
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
....

root@fen:~# mount /dev/ram0 /mnt
root@fen:~# ls -al /mnt
total 17
drwxr-xr-x 3 root root 1024 Mar 29 20:28 ./
drwxr-xr-x 22 root root 4096 Dec 16 02:28 ../
drwxr-xr-x 2 root root 12288 Mar 29 20:28 lost+found/

root@fen:/mnt# echo test > /mnt/test
root@fen:/mnt# ls -al /mnt
total 18
drwxr-xr-x 3 root root 1024 Mar 29 20:29 ./
drwxr-xr-x 22 root root 4096 Dec 16 02:28 ../
drwxr-xr-x 2 root root 12288 Mar 29 20:28 lost+found/
-rw-r--r-- 1 root root 5 Mar 29 20:29 test
root@fen:~# umount /mnt
root@fen:~# mount /dev/ram0 /mnt
root@fen:~# ls -al /mnt
total 17
drwxr-xr-x 3 root root 1024 Mar 29 20:28 ./
drwxr-xr-x 22 root root 4096 Dec 16 02:28 ../
drwxr-xr-x 2 root root 12288 Mar 29 20:28 lost+found/

My test file does not appear on /mnt.
This was working with 2.4 kernels
i think the problem is related with 2.6 kernels
What is the problem?

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