All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.x mount /dev/ram0 problem.
@ 2004-03-29 15:34 Siseci
  2004-03-29 15:59 ` Richard B. Johnson
  2004-03-30  0:15 ` Andrew Morton
  0 siblings, 2 replies; 3+ messages in thread
From: Siseci @ 2004-03-29 15:34 UTC (permalink / raw)
  To: linux-kernel


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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.x mount /dev/ram0 problem.
  2004-03-29 15:34 2.6.x mount /dev/ram0 problem Siseci
@ 2004-03-29 15:59 ` Richard B. Johnson
  2004-03-30  0:15 ` Andrew Morton
  1 sibling, 0 replies; 3+ messages in thread
From: Richard B. Johnson @ 2004-03-29 15:59 UTC (permalink / raw)
  To: Siseci; +Cc: linux-kernel

On Mon, 29 Mar 2004, Siseci wrote:

>
> Hi.
> I have a problem about ramdisk.
> Kernel version: 2.6.3 and 2.6.4
>
[SNIPPED...]

Verify that /dev/ram0 is not still mounted on /initrd.
I noticed that the stuff that uses initrd and pivot-root
for booting, works 'strangely' compared to the past. You
may find that /initrd remained mounted when you initialized
its virtual device, confusing the issue.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.x mount /dev/ram0 problem.
  2004-03-29 15:34 2.6.x mount /dev/ram0 problem Siseci
  2004-03-29 15:59 ` Richard B. Johnson
@ 2004-03-30  0:15 ` Andrew Morton
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2004-03-30  0:15 UTC (permalink / raw)
  To: Siseci; +Cc: linux-kernel

"Siseci" <siseci@postmark.net> wrote:
>
> 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?

It's a 2.6 bug which I haven't fixed yet.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-30  0:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-29 15:34 2.6.x mount /dev/ram0 problem Siseci
2004-03-29 15:59 ` Richard B. Johnson
2004-03-30  0:15 ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.