LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2013, 07:17 AM   #1
adrhc
Member
 
Registered: Dec 2006
Location: Bucharest
Distribution: Ubuntu 16.04 LTS
Posts: 78

Rep: Reputation: 12
Volatile (ramdrive ?) folders


Hi, I have a network attached server (zyxel NSA310) and it seems that when I change some files after restart they disappear. Now I would like to know how can I learn which are the folders where if I change files they won't survive on restart (on linux in general). As far as I understand the lines below containing tmpfs, sysdisk.img (this one I don't understand why) are mounts where changes won't survive. I also noticed that changes to /var/spool/cron/crontabs/root are lost on restart and I don't understand why; looking below it seems to me that /var/spool/cron/crontabs shouldn't be a volatile folder.

root@nsa310:~# mount -l
rootfs on / type rootfs (rw)
/proc on /proc type proc (rw,relatime)
/sys on /sys type sysfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock6 on /zyxel/mnt/nand type yaffs2 (ro,relatime)
/dev/sda1 on /zyxel/mnt/sysdisk type ext2 (ro,relatime,errors=continue)
/zyxel/mnt/sysdisk/sysdisk.img on /ram_bin type ext2 (ro,relatime,errors=continue)
/zyxel/mnt/sysdisk/sysdisk.img on /usr type ext2 (ro,relatime,errors=continue)
/zyxel/mnt/sysdisk/sysdisk.img on /lib/security type ext2 (ro,relatime,errors=continue)
/zyxel/mnt/sysdisk/sysdisk.img on /lib/modules type ext2 (ro,relatime,errors=continue)
/dev/ram0 on /tmp/tmpfs type tmpfs (rw,relatime,size=5120k)
/dev/ram0 on /usr/local/etc type tmpfs (rw,relatime,size=5120k)
/dev/ram0 on /usr/local/var type tmpfs (rw,relatime,size=5120k)
/dev/mtdblock4 on /etc/zyxel type yaffs2 (rw,relatime)
/dev/md0 on /i-data/949018fd type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/sdb1 on /e-data/806e0d7ac6c3709c857f0734b8572729 type tntfs (rw,relatime,uid=99,gid=0,umask=00,nls=utf8,case_sensitive,nocache,errors=continue,mft_zone_multipli er=1) [Expansion Drive]
/dev/md0 on /usr/local/zy-pkgs type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/md0 on /etc/zyxel/zy-pkgs type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/md0 on /usr/local/apache/htdocs/zyxel/pkg type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/md0 on /usr/local/apache/web_framework/data/cache type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/mtdblock4 on /usr/local/apache/web_framework/data/config type yaffs2 (rw,relatime)


Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mtdblock6 48896 37756 11140 78% /zyxel/mnt/nand
/dev/sda1 497829 490379 7450 99% /zyxel/mnt/sysdisk
/dev/loop0 123955 106426 17529 86% /ram_bin
/dev/loop0 123955 106426 17529 86% /usr
/dev/loop0 123955 106426 17529 86% /lib/security
/dev/loop0 123955 106426 17529 86% /lib/modules
/dev/ram0 5120 4 5116 1% /tmp/tmpfs
/dev/ram0 5120 4 5116 1% /usr/local/etc
/dev/ram0 5120 4 5116 1% /usr/local/var
/dev/mtdblock4 10240 1508 8732 15% /etc/zyxel
/dev/md0 480213168 325569460 154643708 68% /i-data/949018fd
/dev/sdb1 976760032 563806900 412953132 58% /e-data/806e0d7ac6c3709c857f0734b8572729
/dev/md0 480213168 325569460 154643708 68% /usr/local/zy-pkgs
/dev/md0 480213168 325569460 154643708 68% /etc/zyxel/zy-pkgs
/dev/md0 480213168 325569460 154643708 68% /usr/local/apache/htdocs/zyxel/pkg
/dev/md0 480213168 325569460 154643708 68% /usr/local/apache/web_framework/data/cache
/dev/mtdblock4 10240 1508 8732 15% /usr/local/apache/web_framework/data/config
 
Old 07-15-2013, 01:13 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,336

Rep: Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907
Many embedded systems load the entire operating system into RAM so any changes must be specifically written to non volatile memory. In general with most desktop and servers all data is stored on a hard drive. I am unfamiliar with the zyxel NAS devices so I can not say exactly how it works.
 
1 members found this post helpful.
Old 07-16-2013, 05:32 AM   #3
adrhc
Member
 
Registered: Dec 2006
Location: Bucharest
Distribution: Ubuntu 16.04 LTS
Posts: 78

Original Poster
Rep: Reputation: 12
Thank you; I think that the type of the file system is the only all information that could help me in addition to your remark.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[C++] Volatile object is often only used to synchronize access to non-volatile data. TheIndependentAquarius Programming 1 05-28-2012 09:36 AM
Can a Ramdrive be used to speed up performance? hcgrant Linux - General 11 02-05-2011 10:57 AM
Persistent ramdrive for Linux? dhave Linux - Software 7 03-08-2009 01:47 PM
run centos on ramdrive mattsoftnet Linux - Server 1 09-13-2007 04:42 PM
Compiling speed increased by ramdrive? exodist Linux - Software 1 07-31-2004 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration