I have a RaspberryPi3 with a headless stretch installation. It ran a VPN server and a DNS server. Today I wanted to mount a HDD to use as a place to drop files in the LAN following this guide. After editing the fstab the system wouldn't boot. I then got the SD card and opened the drive under windows with ext2fsd, located the fstab file, found my changes and reverted them. The pi still won't boot. How can I fix this? I'd rather not wipe the SD and reinstall everything.
EDIT: I just found out that my SD card mounted under windows with ext2fsd is mounted in read-only mode. I can hit save in notepad++ but the file doesn't change. How can I write to that SD card?
EDIT2: Fixed it now. Was able to find a bootable linux DVD from which I was able to change the files of the SD card as root. Linux is so nice and tells you when the fail saves, which windows(Notepad++) did not. The last question still remains: How to mount an ext4 linux drive under windows to be able to change faulty config files?
EDIT3: Got it working by adding the following line to fstab:
UUID=<MYUID> /mounts/MOUNTFORTHISDISK ntfs-3g rw,default 0 0
proc /proc proc defaults 0 0 PARTUUID=eda353fb-01 /boot vfat defaults 0 2 PARTUUID=eda353fb-02 / ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, no line here # use dphys-swapfile swap[on|off] for that /dev/sda1 /mnt/mybook /ntfs defaults 0 0 # this is the faulty line