michalpolkowski / alt-f

Automatically exported from code.google.com/p/alt-f
0 stars 0 forks source link

Cannot replace /etc/fstab with Alt-F #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using Alt-F RC1 (the latest available release on this website at this 
time), and have flashed it onto a DNS-323 (not sure the hardware revision). Not 
using RAID, just 2 1TB disks. Using Ubuntu 12.04 on my system.

USB device plugged into the NAS auto mounts with 'ro' option, which I'd like to 
change. I tried changing the /etc/fstab as needed (both through the Alt-F 
config interface as well as the file on the filesystem), then tried saving the 
changes, both through 'loadsave_settings -sf' and through clicking the Save 
Settings button in the web interface.

But then when issuing the 'reboot' command when SSHed into the device and 
SSHing again into it, I see that the /etc/fstab has reverted to its original 
form after the reboot.

So I tried the steps to add my file to /etc/fstab (preceded with aufs.sh -n and 
followed by aufs.sh -r), but saw that /etc/fstab already exists there. So I 
tried to change it, then reboot, but again it went back to the same file. I 
tried it again a couple more times, one time running 'loadsave_settings -sf' 
before, and another time after, the aufs.sh -r command. That didn't work either.

I tried doing aufs.sh -u and aufs.sh -m (the alternate flags instead of -n and 
-r), but those give me an error (something about a device being busy) when I'm 
logged into the device through SSH.

I've following the settings in the wiki here, but how can I get my own 
/etc/fstab to persist across reboots? (Same question will apply to adding 
/root/.ssh directory and files underneath it so that I can SSH without a 
password.)

Original issue reported on code.google.com by veerukri...@hotmail.com on 10 Sep 2012 at 2:17

GoogleCodeExporter commented 9 years ago
-RC2 is the latest, not RC1

-Filesystems are mounted RO when are are errors that can't be repaired 
automatically. See the System log, System->Utilities->Logs. You have to run 
fsck manually without the '-p' option; after the filesystems are clean they 
will be mounted RW.

-fstab is not saved into flash, it is rebuild as new filesystems are found; the 
exception are NFS/SMB filesystem entries, those are preserved. Why? The box 
disks are easily exchanged and even hot-pluggable.

This is not an issue, it is a feature (at least for me), so I'm closing this. 
Please use the forum for general questions.

Original comment by whoami.j...@gmail.com on 12 Sep 2012 at 2:14