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?
EDIT: I backed up the data and reformatted the partition. This completely broke my install and fedora wouldn’t open at all. I popped in a live USB, backed up some other stuff and I am reinstalling fedora right now (writing this from the live installer :P)
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?
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!
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.
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?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.
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.
Difficult to say without knowing your setup. The message is probably correct as written, the file system is for some reason read-only; perhaps you (intentionally or mistakenly) mounted it read-only, or your setup doesn’t support mounting it for writing.
are you using ntfs-3g or the older removedtier ntfs driver?