Unable to delete ldlinux.sys read-only file (Solved)

Please post any bugs you have found
Post Reply
Message
Author
ab12
Posts: 6
Joined: Wed 11 Oct 2017, 15:52

Unable to delete ldlinux.sys read-only file (Solved)

#1 Post by ab12 »

Hi,

Can anyone advise me on how to delete an ldlinux.sys file I’ve somehow or other got on a xerus64-8.3 partition. It’s situated outside the xerus folder. I’ve tried every which way to delete it, but it keeps saying write protected and permission denied. Also tried to manually change permissions, but still refused.

I’ve tried using Precise 5.7 booted from a cd, which used to remove anything, but permission is still refused.

Many thanks for any suggestions.

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#2 Post by OscarTalks »

It is probably there as a result of you having installed syslinux bootloader in the partition at some point.

I think the file is refusing to delete because on installation it is given the "immutable" attribute. If so, try running chattr -i on the ldlinux.sys file to remove this attribute and then try deleting again. You might need the devx loaded to give you the chattr executable.

A search for "using chattr in linux" will bring up lots of further information.
Oscar in England
Image

ab12
Posts: 6
Joined: Wed 11 Oct 2017, 15:52

#3 Post by ab12 »

Thank you Oscar for your advice. Sorted the problem straight away.

Post Reply