NAS326 change place of .system directory
Song
Posts: 2 Freshman Member
NAS 326
Hello
At first I placed into NAS big hard disk and NAS configured raid and ".system" directory on it.
After I placed second small (e.g. system as I believe) disk and now I would like to replace .system, .media, admin and so on (system directories and files) to it (it is .dev/md2)
Is it possible ?
#NAS_Nov_2019
Hello
At first I placed into NAS big hard disk and NAS configured raid and ".system" directory on it.
After I placed second small (e.g. system as I believe) disk and now I would like to replace .system, .media, admin and so on (system directories and files) to it (it is .dev/md2)
Is it possible ?
#NAS_Nov_2019
0
All Replies
-
I think it can be done, but not by firmware. The .system directory is on the sysvol, which is accessible via /i-data/sysvol/, which actually is a symlink to /etc/zyxel/storage/sysvol/./etc/zyxel/volume is a symlink to the volume which contains .system and so. The content is something like /i-data/<some-hex-code>, which is the mountpoint of the volume.As a flash partition is mounted on /etc/zyxel/, this value is persistent. (In contrary to /i-data/, which is on a ramdisk).So, to move the .system directory, first copy it over
<div>cp -a /i-data/<current_sysvol>/.system /i-data/<new_sysvol>/ <br></div><div><br></div>cp -a /i-data/<current_sysvol>/.media /i-data/<new_sysvol>/ <br>
Then overwrite /i-data/sysvol for the case it's needed at shutdown<div>rm /i-data/sysvol</div><div><br></div><div>ln -s /i-data/<current_sysvol> /i-data/sysvol</div>
And change the persistent symlinkThen, after a reboot, the system should be using the new directories, and you can delete the old ones.<div>rm /etc/zyxel/storage/sysvol<br>ln -s /i-data/<new_sysvol> /etc/zyxel/storage/sysvol</div><div><br></div><div><br></div>
Do this on own risk.0 -
Thanks.
But if I would make it by official way, for example,
1) Shutdown NAS
2) I remove large hdd
3) I change place of system (small) hdd from second place to first
4) I run all init procedure (as new NAS) on small hdd
5) I insert large hdd into NAS
large hdd should recognized?0 -
That should also work. Maybe you'll have to perform a factory reset after removing the large hdd..
0 -
Is it possible to move everything to e-data (SD card) instead i-data?
0 -
My Tweaks package has an option to do so.
0
Categories
- All Categories
- 415 Beta Program
- 2.5K Nebula
- 152 Nebula Ideas
- 101 Nebula Status and Incidents
- 5.8K Security
- 296 USG FLEX H Series
- 281 Security Ideas
- 1.5K Switch
- 77 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.5K Consumer Product
- 254 Service & License
- 396 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 87 About Community
- 76 Security Highlight