nanomir
22-11-2008, 13:46
Hi all, had a few troubles understanding the filesystem after flashing for first time with Oleg firmware, so here are my notes:
With a USB disk in Asus WL 500g, and Samba active with hidden read/write:
access from Windows as "\\WL-ASUS\disc0_1" - can read, but cannot write (if it is hidden read/write)
access from Windows as "\\WL-ASUS\disc0_1$" - can write on a hidden read/write, but seems to remount the disc0_1 mount in the telnet shell as "ro" read-only
So, trying to copy a file from a telnet shell session to disc0_1, once it has been accessed from Windows as disc0_1$, notifies a problem:
[admin@WL-ASUS root]$ cp /usr/bin/ipkg.sh /tmp/mnt/disc0_1
cp: unable to open `/tmp/mnt/disc0_1/ipkg.sh': Read-only file system
Accidentally, my disc0_5 partition was still rw, so I tried to mount /opt to a directory there - mount --bind command works...
[admin@WL-ASUS root]$ mkdir /tmp/mnt/disc0_5/optasus
[admin@WL-ASUS root]$ mount --bind /tmp/mnt/disc0_5/optasus/ /opt/
[admin@WL-ASUS root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /tmp/mnt/disc0_1 type vfat (ro,noatime)
/dev/discs/disc0/part5 on /tmp/mnt/disc0_5 type vfat (rw,noatime)
/dev/discs/disc0/part6 on /tmp/mnt/disc0_6 type vfat (rw,noatime)
/dev/discs/disc0/part7 on /tmp/mnt/disc0_7 type ntfs (ro)
/dev/discs/disc0/part5 on /opt type vfat (rw,noatime)
Regardless of what mount says, all is ok with directories - the following saves in dir /tmp/mnt/disc0_5/optasus:
[admin@WL-ASUS root]$ echo "blabla" > /opt/blabla.txt
Cheers...
EDIT: Well, for mount commands, better to check tutorials like
How to update DynDNS behind a modem - AsusForum.NET -- WL500g (http://wl500g.info/showthread.php?p=109028) which then refers to Ipkg - WL-HDD Wiki (http://wlhdd.co.uk/wiki/Ipkg); or the instructions at NSLU2-Linux - Applications / SlimServer browse (http://www.nslu2-linux.org/wiki/Applications/SlimServer)
With a USB disk in Asus WL 500g, and Samba active with hidden read/write:
access from Windows as "\\WL-ASUS\disc0_1" - can read, but cannot write (if it is hidden read/write)
access from Windows as "\\WL-ASUS\disc0_1$" - can write on a hidden read/write, but seems to remount the disc0_1 mount in the telnet shell as "ro" read-only
So, trying to copy a file from a telnet shell session to disc0_1, once it has been accessed from Windows as disc0_1$, notifies a problem:
[admin@WL-ASUS root]$ cp /usr/bin/ipkg.sh /tmp/mnt/disc0_1
cp: unable to open `/tmp/mnt/disc0_1/ipkg.sh': Read-only file system
Accidentally, my disc0_5 partition was still rw, so I tried to mount /opt to a directory there - mount --bind command works...
[admin@WL-ASUS root]$ mkdir /tmp/mnt/disc0_5/optasus
[admin@WL-ASUS root]$ mount --bind /tmp/mnt/disc0_5/optasus/ /opt/
[admin@WL-ASUS root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /tmp/mnt/disc0_1 type vfat (ro,noatime)
/dev/discs/disc0/part5 on /tmp/mnt/disc0_5 type vfat (rw,noatime)
/dev/discs/disc0/part6 on /tmp/mnt/disc0_6 type vfat (rw,noatime)
/dev/discs/disc0/part7 on /tmp/mnt/disc0_7 type ntfs (ro)
/dev/discs/disc0/part5 on /opt type vfat (rw,noatime)
Regardless of what mount says, all is ok with directories - the following saves in dir /tmp/mnt/disc0_5/optasus:
[admin@WL-ASUS root]$ echo "blabla" > /opt/blabla.txt
Cheers...
EDIT: Well, for mount commands, better to check tutorials like
How to update DynDNS behind a modem - AsusForum.NET -- WL500g (http://wl500g.info/showthread.php?p=109028) which then refers to Ipkg - WL-HDD Wiki (http://wlhdd.co.uk/wiki/Ipkg); or the instructions at NSLU2-Linux - Applications / SlimServer browse (http://www.nslu2-linux.org/wiki/Applications/SlimServer)