Stubborn file (extlinux.sys), cannot delete
Posted: 05 Jan 2011, 16:06
This is not a standard Porteus install, as I've installed v09 on an ext3 partition, using extlinux to boot (when using the liloinst.sh file, KDE loads with 1024x768 resolution, which looks awful on my laptop as it has a wider screen). So, this is not a bug with the current system, and it's probably my lack of knowledge that is the problem...
Anyway, I had the extlinux/ext3 setup running 32 bit v09 (a la markds HOWTO on slax.org), and decided to upgrade to 64 bit (this is my backup USB stick, so I still had a working linux Porteus install if things went haywire). To clear out before the new install, I deleted my /slax directory and attempted to delete /boot, but received an error, stating that extlinux could not be removed. I played around with it for a bit and got it moved to my .Trash folder, but now I can't delete it completely from there, either.
So, what do I need to do to get rid of this file? No, it's not important, as it's not interfering with me booting into my new 64 bit install, but it's annoying, and it's something I'd like to learn about. I thought that, as root, I would have all the permissions I need.
Anyway, here's some more info, and please note that I was running 32 bit v09 from a different usb drive (sdb1) while trying to remove this file. I had mounted the ext3 partition at /mnt/sdc2:
Thanks, all!
Anyway, I had the extlinux/ext3 setup running 32 bit v09 (a la markds HOWTO on slax.org), and decided to upgrade to 64 bit (this is my backup USB stick, so I still had a working linux Porteus install if things went haywire). To clear out before the new install, I deleted my /slax directory and attempted to delete /boot, but received an error, stating that extlinux could not be removed. I played around with it for a bit and got it moved to my .Trash folder, but now I can't delete it completely from there, either.
So, what do I need to do to get rid of this file? No, it's not important, as it's not interfering with me booting into my new 64 bit install, but it's annoying, and it's something I'd like to learn about. I thought that, as root, I would have all the permissions I need.
Anyway, here's some more info, and please note that I was running 32 bit v09 from a different usb drive (sdb1) while trying to remove this file. I had mounted the ext3 partition at /mnt/sdc2:
I think I previously tried rm -f and that didn't work, either.root@slax:/mnt/sdc2/.Trash-0/files/oldboot.2/syslinux# ls -a
./ ../ extlinux.sys
root@slax:/mnt/sdc2/.Trash-0/files/oldboot.2/syslinux# ls -l
total 15
-r--r--r-- 1 root root 14336 Dec 14 12:42 extlinux.sys
root@slax:/mnt/sdc2/.Trash-0/files/oldboot.2/syslinux# rm extlinux.sys
rm: cannot remove `extlinux.sys': Operation not permitted
root@slax:/mnt/sdc2/.Trash-0/files/oldboot.2/syslinux# chmod -x extlinux.sys
chmod: changing permissions of `extlinux.sys': Operation not permitted
root@slax:/mnt/sdc2/.Trash-0/files/oldboot.2/syslinux# chown root extlinux.sys
chown: changing ownership of `extlinux.sys': Operation not permitted
Thanks, all!