NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
drfrogsplat
Oct 10, 2014Tutor
no swap or root in /etc/fstab?
I noticed today that the contents of /etc/fstab is rather sparser than one might expect: LABEL=1af8fdf6:data /data btrfs defaults 0 0 there's no mention of the root partition, nor swap, which I'm ...
siigna
Oct 26, 2014NETGEAR Employee Retired
ReadyNAS OS has a bit different system architecture than RAIDiator, using systemd instead of SysV-style init.
Bringing up the OS array (/dev/md0) is taken care of by the initrd process, but that's always been the case.
Management of the root mount point is taken care of by systemd.
So no need to have it wasting space in fstab.
Same story with the swap space (/dev/md1). What was once part of fstab is now integrated in to systemd.
The proper way to temporarily disable your swap would be to use systemctl:
Bringing up the OS array (/dev/md0) is taken care of by the initrd process, but that's always been the case.
Management of the root mount point is taken care of by systemd.
So no need to have it wasting space in fstab.
Same story with the swap space (/dev/md1). What was once part of fstab is now integrated in to systemd.
The proper way to temporarily disable your swap would be to use systemctl:
### I'm on a fresh boot and swap has been setup and enabled.
root@nas-6E-3A-08:~# swapon -s
Filename Type Size Used Priority
/dev/md1 partition 2094844 0 -1
### systemd says swap is active. Your output may vary.
root@nas-6E-3A-08:~# systemctl status dev-md1.swap
dev-md1.swap - md1
Loaded: loaded (/lib/systemd/system/dev-md1.swap; enabled)
Active: active since Sun, 26 Oct 2014 10:56:02 -0700; 1min 41s ago
What: /dev/md1
Process: 4355 ExecDeactivate=/sbin/swapoff /dev/md1 (code=exited, status=0/SUCCESS)
Process: 4366 ExecActivate=/sbin/swapon /dev/md1 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/dev-md1.swap
### Temporarily stop the dev-md1.swap service, which deactivates swap.
root@nas-6E-3A-08:~# systemctl stop dev-md1.swap
root@nas-6E-3A-08:~# swapon -s
Filename Type Size Used Priority
### Start the swap service, activating swap once more.
root@nas-6E-3A-08:~# systemctl start dev-md1.swap
root@nas-6E-3A-08:~# swapon -s
Filename Type Size Used Priority
/dev/md1 partition 2094844 0 -1
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!