Temat: [Extroot] Nie zapisuje ustawień w fstab
Witam,
Postanowiłem zainstalować extroota w 1043N. Postępuję zgodnie z http://eko.one.pl/?p=openwrt-externalroot z opcją swap.
W fstab zapisuje to:
config 'global' 'automount'
option 'from_fstab' '1'
option 'anon_mount' '1'
config 'global' 'autoswap'
option 'from_fstab' '1'
option 'anon_swap' '0'
config 'mount'
option 'fstype' 'ext4'
option 'options' 'rw,noatime'
option 'enabled_fsck' '0'
option 'device' '/dev/sda2'
option 'enabled' '1'
option 'is_rootfs' '1'
config 'swap'
option 'device' '/dev/sda1'
option 'enabled' '1'Niestety, po zapisaniu pliku i wykonaniu restartu routera plik jest pusty ![]()
Poniżej parę informacji
fdisk:
Command (m for help): p
Disk /dev/sda: 4011 MB, 4011851776 bytes
88 heads, 24 sectors/track, 3710 cylinders
Units = cylinders of 2112 * 512 = 1081344 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sda1 1 60 63348 82 Linux swap / Solaris
/dev/sda2 61 3710 3854400 83 LinuxMontowanie ręcznie idzie bez problemu, a po restarcie urządzenia cały czas mam starą konfigurację, a plik /etc/fstab jest pusty. Dodam, że po zapisie sprawdzam, czy zapisało plik i wygląda OK.
W pliku jest tylko:
# WARNING: this is an auto generated file, please use uci to set defined filesys temsCO się dzieje?
EDIT:
Pod adresem http://wiki.openwrt.org/doc/uci/fstab znajduje się takie oto info
In the OpenWrt 'Backfire' 10.03 release there is a bug. Solution is: vi /etc/init.d/fstab and put a # in front of the line:
echo '# WARNING: this is an auto generated file, please use UCI to set defined filesystems' > /etc/fstabThis creates the file /etc/fstab and thus prevents creating a symlink to /tmp/fstab. In order for UCI to work, there need to be symlink! In case the bug has already taken place, delete /etc/fstab and then type this code to busybox.
ln -s /tmp/fstab /etc/fstabIt will create a symlink to the /tmp/fstab file, fixing the bug completely.
Nie wiem tylko jak to rozumieć - skoro rozwiązaniem jest utworzenie linku do /tmp/fstab to po restarcie nic tam nie będzie!
Z tego co rozumiem rozwiązaniem są tylko i wyłącznie polecenia UCI, będę walczył tak, choć nie lubię ich.