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)

  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    arrow-up
    12
    ·
    1 month ago

    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?

  • noodles@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 month ago

    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!

  • CapitalType@moist.catsweat.com
    link
    fedilink
    arrow-up
    5
    ·
    1 month ago

    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.

  • mathemachristian [he/him]@hexbear.net
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    Look into /etc/fstab and check if there is ro 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?

  • Nightwatch Admin@feddit.nl
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    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.

    • groet@feddit.org
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 month ago

      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.

  • Onno (VK6FLAB)@lemmy.radio
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    1 month ago

    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.

  • schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago

    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.