I want to delete a pagefile.sys from a disk which has win instaled
i use a slax from usb
i tried a lot of commands:
root@slax:/mnt/sdh1# clear
root@slax:/mnt/sdh1# chmod +x pagefile.sys
chmod: changing permissions of `pagefile.sys': Read-only file system
root@slax:/mnt/sdh1# rm -f pagefile.sys
rm: cannot remove `pagefile.sys': Read-only file system
root@slax:/mnt/sdh1# chmod 777 pagefile.sys
chmod: changing permissions of `pagefile.sys': Read-only file system
root@slax:/mnt/sdh1#
the pagefile.sys is about 756m and infected by a troyan
where is that fantastic command that delete everything...brute force?
tsixe_ton_seod_ doG_doG _uoy_rof_llik_uoy_dluow wrote 3 years ago
When the disk is mounted make sure its permissions are rw not ro (Read/Write) Not (Read Only), then you may remove everything or that file only with
# rm -rf pagefile.sys
root@slax:/mnt/sdh1# umount /dev/sdh1
umount: /mnt/sdh1: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
root@slax:/mnt/sdh1# umount /dev/sdh1
umount: /mnt/sdh1: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
root@slax:/mnt/sdh1#
and I cant unmount it
:root@slax:/mnt/sdh1# umount /dev/sdh1
umount: /mnt/sdh1: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
root@slax:/mnt/sdh1#
root@slax:~# mount
aufs on / type aufs (rw,si=e1a5b62c,xino=/mnt/live/memory/.aufs.xino,nowarn_perm)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /mnt/sda1 type vfat (rw,noatime,quiet,umask=0,check=s,shortname=mixed)
/dev/sdb1 on /mnt/sdb1 type vfat (rw)
/dev/sdf1 on /mnt/sdf1 type ntfs (rw)
/dev/sdg1 on /mnt/sdg1 type ntfs (rw)
/dev/sdh1 on /mnt/sdh1 type ntfs (rw)
/dev/sdi1 on /mnt/sdi1 type ntfs (rw)
root@slax:~#
As you can see, /dev/sdh1 is mounted with the ntfs native linux driver, and not with ntfs-3g.
In other words, it's mounted read-only, despite the (rw) it shows in there.
You need to unmount it and mount it with ntfs-3g, like I said above.
Restart slax in allways fresh mode, and type what I told you right after the login.
It should work
my usb is 96%full
the move to trash apear in the right click now
but :there is no more space in trash
how i can delete it directly?...without passing throught trash?