Results 1 to 3 of 3

Thread: deleting ldlinux.sys

  1. #1
    Join Date
    Aug 2010
    Beans
    226
    Distro
    Ubuntu 20.04 Focal Fossa

    deleting ldlinux.sys

    Sorry for the very basic question, but I am confused.
    I inadvertently put system boot files onto an external backup disk and I want to delete them (I screwed up exactly like this guy https://askubuntu.com/questions/1247...quires-root-pe)

    I thought sudo should make ownership issues moot. Most I can delete e.g.:
    Code:
    $ ls /media/fred/Backups2/pics
    blue-lowerleft.png   debian.jpg          red-upperleft.png
    blue-lowerright.png  logo-50.jpg         red-upperright.png
    blue-upperleft.png   red-lowerleft.png   TRANS.TBL
    blue-upperright.png  red-lowerright.png
    fred@fred-Inspiron-3847:~$ sudo rm -rf /media/fred/Backups2/pics
    [sudo] password for fred: 
    fred@fred-Inspiron-3847:~$ ls /media/fred/Backups2/pics
    ls: cannot access '/media/fred/Backups2/pics': No such file or directory
    but ldlinux.sys I can't touch

    Code:
    $ ls /media/fred/Backups2/ldlinux.sys
    /media/fred/Backups2/ldlinux.sys
    fred@fred-Inspiron-3847:~$ rm /media/fred/Backups2/ldlinux.sys
    rm: cannot remove '/media/fred/Backups2/ldlinux.sys': Operation not permitted
    fred@fred-Inspiron-3847:~$ sudo rm /media/fred/Backups2/ldlinux.sys
    rm: cannot remove '/media/fred/Backups2/ldlinux.sys': Operation not permitted
    fred@fred-Inspiron-3847:~$ sudo rm -f /media/fred/Backups2/ldlinux.sys
    rm: cannot remove '/media/fred/Backups2/ldlinux.sys': Operation not permitted
    I note that, while root is the owner, it has only read access to the file, which seems bizarre.

  2. #2
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: deleting ldlinux.sys

    Your not the first person to ask that question. May be the answer given 7 years ago will still work for you.

    https://unix.stackexchange.com/quest...om-a-partition

    Information about the immutable bit. Apparently, once the immutable bit is set on a file even Root will not be able to delete the file.

    http://www.aboutlinux.info/2005/11/m...hich-even.html

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  3. #3
    Join Date
    Aug 2010
    Beans
    226
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: deleting ldlinux.sys

    That did it, thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •