Re: Why can't I flush /dev/ram0?

Richard B. Johnson
2001-06-18T21:24:20Z

On Mon, 18 Jun 2001, Kelledin Tane wrote:

> At this point, I'm trying to get an initrd working properly. So far, it
> works, the system boots, etc. etc., but whenever I try to do a "blockdev
> --flushbufs /dev/ram0", I get "device or resource busy"
>
> When I mount the filesystem to check it out, nothing appears to have
> anything open on the filesystem. So why am I not able to flush it
> clean?
>
> This is kernel 2.4.5 stock, btw.
>
> Kelledin
>

If you have a directory called /initrd, in your root file-system,
you may find that the old initrd is still mounted:

Script started on Mon Jun 18 17:22:20 2001
# ls /initrd
bin dev etc lib linuxrc sbin
# umount /initrd
# ls /initrd
# exit
exit
Script done on Mon Jun 18 17:22:44 2001

Unmount it first.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.