delete file ldlinux.sys (syslinux)

Screenshot at 2017-07-06 08-45-10

adull@nano ~ $ cd /media/adull/
adull@nano /media/adull $ ll
total 12
drwxr-x---+ 3 root root 4096 Jul  6 17:00 ./
drwxrwxrwx  3 root root 4096 Jun  2 10:49 ../
drwx------  2 root root 4096 Jun 23 09:59 ext2/
adull@nano /media/adull $ ls -la ext2/
ls: cannot open directory 'ext2/': Permission denied
adull@nano /media/adull $ sudo ls -la ext2/
[sudo] password for adull: 
total 68
drwx------  2 root root  4096 Jun 23 09:59 .
drwxr-x---+ 3 root root  4096 Jul  6 17:00 ..
-r--r--r--  1 root root 61440 Jun 19 10:22 ldlinux.sys
adull@nano /media/adull $ sudo rm -rf ext2/
rm: cannot remove 'ext2/ldlinux.sys': Operation not permitted
adull@nano /media/adull $ 

use chattr

sudo chattr -i ldlinux.sys
sudo chown root ldlinux.sys
sudo chmod 777 ldlinux.sys
sudo rm ldlinux.sys
Advertisements

About NanoSoftTech

NanoSoftTech
This entry was posted in Debian, Linux Mint. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s