[uClinux-dev] re-mount root filesystem

Harry Gunnarsson mrharryg at gmail.com
Fri Nov 2 08:58:11 EST 2007


Earlier, I ran jffs2 root file system, which was per default mounted rw, and
I wanted it ro and 'noatime' set. SInce I couldn't make uClinux set it per
default, I came up with this; re-mounting '/' in the 'rc' script

mount -t jffs2 -o remount,noatime,ro /dev/rom1 /

So in your case, you could try to do

mount -t ext2 -o remount,noatime,rw /dev/<wherever> /

No guarantees though....

Harry

On 11/2/07, advan <advan at rexian.com> wrote:
>
>  hi,everyone
>   I have one embedded device(mips R4000) with Kernel-2.4.25, it boots with
> a root filesystem in JFFS2 format (/dev/mtdblock1), I would like to switch
> the root filesystem to another in a RAMDISK with an ext2 filesystem, but I
> can't umount the JFFS2 root filesystem (device is busy). I tried to use
> 'fuser' to check who is using / root filesystem , but busybox doesn't
> support the 'fuser' command. Anyone know how to switch root filesystems, any
> feedback appreciated. Thank you in advance
>
> Best Regards
>                                             advan
>
>  ------------------------------
>  advan
> 2007-11-02
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20071102/2a8029c0/attachment.html


More information about the uClinux-dev mailing list