
Originally Posted by
eruisi
Sorry I use mount command as you said still no luck.
I am using a Chinese firmware (squashFS, not yafFS. I guess this is the reason). Here is my disk info, it shows / is 100% used:
~ # df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 49.6M 49.6M 0 100% /
/dev/mtdblock/2 40.0M 1.8M 38.2M 5% /usr/local/etc
/dev/rd/0 40.0k 40.0k 0 100% /mnt/rd
/dev/scsi/host0/bus0/target0/lun0/part1 931.0G 109.1G 821.9G 12% /tmp/hdd/volumes/HDD1
/dev/scsi/host0/bus0/target0/lun0/part3 151.9M 4.0M 140.0M 3% /tmp/hdd/root
/dev/scsi/host0/bus0/target0/lun0/part1 931.0G 109.1G 821.9G 12% /tmp/usbmounts/hdd
Any ideas how to make / writable?
If you do actually already have a /opt directory and have a squashfs filesystem the only thing you can do to make it writable is to overmount it. Since you have room available on the /usr/local/etc I recommend that you overmount there which is an EXT3 filesystem to avoid problems. To do this issue the following commands:
Code:
# mkdir /usr/local/etc/opt
# mount -o bind /usr/local/etc/opt /opt
That's it your /opt will now be writable. You can put that mount command "mount -o bind /usr/local/etc/opt /opt" at the end of /usr/local/etc/rcS so that the overmount occurs automatically on boot up. Also if the /opt does exist and is not empty you will need to copy it to /usr/local/etc/opt before you issue the overmount (mount -o bind) command.
Code:
cp -r /opt /usr/local/etc
This previous command will do that for you.
If a /opt directory do not already exist then you are out of luck; you will need to unpack your firmware; add the /opt ; repack firmware and flash your media player.
Good luck.