Well, I don't know of an automated way to restore it, but from your paste, created by hand..
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
UUID=3fc55e0f-a9b3-4229-9e76-ca95b4825a40 / ext4 errors=remount-ro 0 1
UUID=718e611d-b8a3-4f02-a0cc-b3025d8db54d none swap sw 0 0
UUID=41e60bc2-2c9c-4104-9649-6b513919df4a /home ext4 defaults 0 0
UUID=02fc2eda-d9fb-47fb-9e60-5fe3073e5b55 /media/Files_Server ext4 defaults 0 0
Please wait for a couple of other people review and approve this before you blindly copy and reboot with it, a second set of eyes is always good ;)
I've left out sdd and sr0 as they look like they're done by gvfs.
Permissions for ntfs and vfat file systems must be set with the dmask
, fmask
and umask
options. dmask
controls permissions for directories, fmask
controls permissions for files, and umask
controls both. Since these options set masks, they should be the complement of the permissions you want. For example, rwx for the owner and rx for others is 022 rather than 755.
To set the owner, use the uid
and gid
options for user and group, respectively. You can find your UID with the command id -u
. To find your GID, use id -g
. These values are both usually 1000.
A common set of mount options for ntfs is uid=1000,gid=1000,dmask=027,fmask=137
. This sets you as the owner of the drive, and sets the permissions to drwxr-x---
.
Here are two lines from my /etc/fstab working
UUID=EEA2B69CA2B668AB /WIN_C ntfs-3g defaults,nls=utf8,umask=000,dmask=027,fmask=137,uid=1000,gid=1000,windows_names 0 0
UUID=65AEC0E830EA0497 /WIN_D ntfs-3g rw 0 0
If you get no visible error after rebooting and partitions stay readonly or you get an error similar to:
Error mounting /dev/sda6 at /media/WindowsDrive:
Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda6" "/media/rolindroy/Media Center"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda6': Operation not permitted The NTFS partition is in an unsafe state.
Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option
This is because Windows 8 and 10 offer a "Fast Startup" option that depends on a "non-complete" shutdown. You can disable fast startup by following these steps under "Power Options".
Best Answer
As your goal is "to syncronize a local folder with the ftp folder with a crontab rsync", I suggest you to write a small script that mounts the FTP, rsync, unmount FTP. Then run this script from crontab.
It should go something like this:
Make sure you chmod +x on the script.
crontab -e
Also, if you really want the FTP folder mounted all the time, you could make a script that mounts/unmounts your drive. If you also add it to fstab, you could manually mount the drive.
fstab:
network-mount.sh:
Add this to crontab (crontab -e):
Also watch out for your rsync not completing before the next is run. This could be done automatically(check if rsync running), or based upon how much data that need to be in sync(amount of time rsync takes, worst case scenario).
Assuming you don't run rsync for anything else, checking if it's running could be done like this: