How can I edit the fstab file?

OK, I'm totally new to linux in general, so I apologize for my questions, but I have been searching extensively to find answers. My problem is I'm installing Zorin and now I'd like to move my home directory to a second drive I have attached. I've gotten through all the steps, but now it says I have to add a line to my fstab file. I've tried gedit, mu I get errors. The command I'm trying is

sudo gedit /etc/fstab
to which I receive this -
mkdir: cannot create directory ‘/run/user/0’: Permission denied
Authorization required, but no authorization protocol specified

(gedit:16646): Gtk-WARNING **: 13:39:03.358: cannot open display: :0

I'm using Zorin 18. I have the thing working but it tells me if I don't edit this file it'll all come undone and it took my dumb *** a long time to do it so I don't want to mess it up. Please help.

Try

sudo nano /etc/fstab

instead. Graphical Interfaces like Gedit should not be opened in superuser like that.

2 Likes

Are you trying this through the Live environment?

You have to edit it through the installed system.

1 Like

If you don't like editing /etc/fstab directly, you can also use the app disks to automount drives or partitions at boot.

1 Like