This laptop has one hard disk with two partitions. One of them has a bunch of data. I can’t delete the data at all, dolphin(the file manager) gives a “not enough permissions error”. When I try to delete stuff with rm it displays this:
rm: cannot remove ‘filename’: Read-only file system
What do I do?
Try ntfsfix command
lsblk
This command will list your drives find the ntfs partition it will be something like: /dev/sda1 Then run ntfsfix on that partition as root
sudo ntfsfix /dev/sda1
If you still boot windows you should disable fast startup it can cause this issue, Good luck!
Look into
/etc/fstab
and check if there isro
next to the entry for the NTFS partition. Or give more info on your setup kinda hard to know what’s going wrong if we don’t know how you mount. Gnome file manager? Command line?Probably you shut down Windows incorrectly so now it’s locked. If you still have Windows installed, try to restart it. If not… well, i would just copy all files to another storage and format NTFS.
I’d like to see your mount options.
As others have said, it’s best to explicitly mount it with the
rw
option.Second, because NTFS doesn’t understand the Unix-like file ownership of users and groups, you have to specify the UID and GID of the mounted filesystem using the
uid=
andgid=
mount options. If you don’t specify these, all files within the NTFS volume will appear as being owned by root. Use theuid=1000,gid=1000
options to mount the volume as owned by your user.Third, use the
windows_names
option as well. Otherwise the filesystem will allow you to create files with illegal names, and that will completely fuck up the volume when mounted on Windows. For example, the:
character is permitted by NTFS, but not by Windows.Although, in general, just avoid using NTFS on Linux if you can. The driver is good, but there are too many basic conceptual differences between NTFS and most Linux filesystems.
Yeah… I am so sorry but I’m just a beginner and all I see here is a bunch of jargon. I am trying the solution that nightwatch_admin@feddit.nl has suggested here at the moment.
Could you please point me to some sort of simple guide/video? If that’s not too big of a hassle
Not sure if the Linux NTFS driver supports read-write access. If it does, you should be able to remount it as rw. If not, there are rescue disks around that do have rw NTFS support.
You could just delete the entire partition and recreate it. You’d need to unmount it before you do.
Windows might have locked the drive, making it read-only (hybrid power off stuff) or you might just need to mount it with rw permissions.
How did you mount it?
Best way IMHO is copy all the files to another disk, double check and then format the partition into your favourite filesystem, and copy everything back. NTFS can be a bit of trouble.
That is the “low tech”; works 100% of the time; will make your live easier in the future solution.
It takes longer than remounting but getting rid of a NTFS drive in a Linux only environment is a good move.