Cobra Forum

Linux => New to Ubuntu => Topic started by: mahesh on Aug 11, 2023, 07:24 AM

Title: Trying to add other partition to /etc/fstab: "Read-only file system"
Post by: mahesh on Aug 11, 2023, 07:24 AM
Hi!
I installed the last version of Lubuntu and I have a HD with a backup partition. I tried to add manually this partition to "/etc/fstab" with the following lines:
    Code:
sudo mkdir /media/backup
id -u antonio
1000
sudo nano /etc/fstab

I added the following line at the end of the file:
     Code:
UUID=7C026AC2026A80CE /media/backup ntfs rw,nosuid,nodev,user_id=1000,group_id=1000,allow_other,blksize=4096 0 0
After that I created links to the folders in ~/
Code:
ln -s /media/backup/softwares/ ~/
ln -s /media/backup/ ~/
ln -s /media/backup/texts ~/
ln -s /media/backup/videos/ ~/
ln -s /media/backup/programming/ ~/
ln -s /media/backup/music/ ~/
ln -s /media/backup/pictures/ ~/
ln -s /media/backup/downloads/ ~/
ln -s /media/backup/torrents/ ~/

The problem is when I try to create a file in one of these folders.

     Code:
touch softwares/test.txt
touch: cannot touch 'softwares/test.txt': Read-only file system

And when I try to edit a file like "text/test.txt" using any text editor, like Sublime Text or FeatherPad it asks me for authentication.
How can I fix this? I just want to create, delete, edit files, in other words use the files of this partition normally.

     Code:
lsb_release -a:
No LSB modules are available.                                                                                                                         
Distributor ID: Ubuntu                                                                                                                                 
Description:    Ubuntu 22.04.2 LTS                                                                                                                     
Release:        22.04                                                                                                                                 
Codename:       jammy