Wouldn't it be simpler to load them onto a harddisk directory (eg. /var/data) and add a symlink in /var?
As a bit of background, I need to load more files into /var than the storage
I can size the partitions loaded from flash but the space is still limited and this will need to be redone on a firmware change
On my octagon 9000 the partition loaded into /var is mtdblock6
As a test I formatted a usb stick with the jffs2 filesystem and copied all the files from /var onto it.
From here I dismounted the usb device, /var and mounted the usb as /var
This works fine but using is usb stick for this is not really my goal.
I'm looking next at removing the hdd, resizing (shrinking) the partition by a few Gb then adding a new partition to be used as the mount point for /var.
I wont have time to try this today but the changes needed are in the /etc/rcS file
This
mount /dev/mtdblock6 /var -t jffs2
if [ $? -ne 0 ]; then
/usr/sbin/flash_eraseall -j /dev/mtd6
mount /dev/mtdblock6 /var -t jffs2
fi
Changes to
### mount user mtd
mount /dev/sda2 /var -t jffs2
#if [ $? -ne 0 ]; then
# /usr/sbin/flash_eraseall -j /dev/mtd6
# mount /dev/mtdblock6 /var -t jffs2
#fi
Look Here -> |
Wouldn't it be simpler to load them onto a harddisk directory (eg. /var/data) and add a symlink in /var?
Two reasons, i'm tring to replace all of /var and if you wipe the plugings you will also wipe the symlink
I got this working on my Ultaplus F-9000 today
1. Removed Hdd and conected to my PC
2. Resized the NTFS partition shrinking it by 10gb (using gparted)
3. Created a second partition as ext3
4. Reinstalled the hdd
5. Changed the /etc/rcS file
/etc/rcS changes
Change this
### mount user mtd
mount /dev/mtdblock6 /var -t jffs2
if [ $? -ne 0 ]; then
/usr/sbin/flash_eraseall -j /dev/mtd6
mount /dev/mtdblock6 /var -t jffs2
fi
To This
### mount user mtd
#mount /dev/sda2 /var -t jffs2
mount /dev/sda2 /var -t ext3
#if [ $? -ne 0 ]; then
# /usr/sbin/flash_eraseall -j /dev/mtd6
# mount /dev/mtdblock6 /var -t jffs2
#fi
First of, sorry for replying to an old thread.
But I really want to know how to edit the file "rcS" in /etc folder. It's a read-only file.
I've tried many times but it never worked.
Please help how to edit it.
Last edited by maxx09; 22-11-12 at 09:55 PM.
Bookmarks