 | Member with 96 posts. | | Join Date: Jan 2005 Experience: Yes, please. | | Trying to remove files on mounted drive I'm currently trying to remove the remaining trails of spyware on a computer. I used my live cd linux distro and mounted the drive ( mount -w /dev/hda1 /mnt/hda1 ) and I tried removing the remaining files using rm. It would output the name of the file followed by "Operation not permitted". Then, just to make sure it wasn't just a problem with these files, I tried deleting a worthless file with no luck. Is there something I'm missing?
[EDIT]
Just so you know, I also checked to see if it was a problem with the permissions, but it wasn't.
Last edited by iOXeR : 26-Sep-2005 08:31 PM.
| | Distinguished Member with 14,988 posts. | | Join Date: Sep 2003 Location: -71.45091, 42.27841 | | Quote: |
Originally Posted by iOXeR I'm currently trying to remove the remaining trails of spyware on a computer. I used my live cd linux distro and mounted the drive ( mount -w /dev/hda1 /mnt/hda1 ) and I tried removing the remaining files using rm. It would output the name of the file followed by "Operation not permitted". Then, just to make sure it wasn't just a problem with these files, I tried deleting a worthless file with no luck. Is there something I'm missing?
[EDIT]
Just so you know, I also checked to see if it was a problem with the permissions, but it wasn't. | Hi iOXeR,
When you say you checked to see if it was a problem with the permissions, but it wasn't, then the question remains why?
Can you create a worthless file with just -w? It appears that you cannot delete one, so I would guess not.
Try -rwx or -wx on the mount command, and see if that works. -x permission is usually required to read a file, and is probably needed in a mounted file system to do what you want along with the -w, i.e. -rwx should work, and -wx may also. Be sure to double check the mount man page to be sure you have the correct command syntax.
-- Tom
__________________ The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein | | Senior Member with 1,962 posts. | | Join Date: Aug 2002 Location: Back East,Way Back East | | The filesystem on hda1 must be ntfs or fat32 as you say there's spyware on it. Depending on which LiveCD distro you're using, ntfs may not be writable(hence removable); fat32 would be ok, though.
With Knoppix you can mount the fat drive as read/write with this command: Code: mount -o rw /mnt/hda1
What LiveCD are you using?
lynch | | Member with 96 posts. | | Join Date: Jan 2005 Experience: Yes, please. | | Quote:
When you say you checked to see if it was a problem with the permissions, but it wasn't, then the question remains why?
Can you create a worthless file with just -w? It appears that you cannot delete one, so I would guess not.
Try -rwx or -wx on the mount command, and see if that works. -x permission is usually required to read a file, and is probably needed in a mounted file system to do what you want along with the -w, i.e. -rwx should work, and -wx may also. Be sure to double check the mount man page to be sure you have the correct command syntax.
| What I meant to say was that it wasn't a problem with permissions. I read the manual for mount and it said that the -w option allowed reading and writing. Quote: |
The filesystem on hda1 must be ntfs or fat32 as you say there's spyware on it. Depending on which LiveCD distro you're using, ntfs may not be writable(hence removable); fat32 would be ok, though. With Knoppix you can mount the fat drive as read/write with this command: Code: mount -o rw /mnt/hda1 What LiveCD are you using? lynch
| It's ntfs. So if I understand you correctly, the LiveCD can only read ntfs and not write to it, right? I'm using Knoppix. | | Distinguished Member with 14,988 posts. | | Join Date: Apr 2003 Location: 1265 Lombardi Ave Experience: IIAHYAYCESA,YAADA! | | You would be better off with a BartPE cd. | | Senior Member with 1,962 posts. | | Join Date: Aug 2002 Location: Back East,Way Back East | | You would need to use the verrryyy slowww Capture ntfs utility which is in kmenu>knoppix>utilities>capture ntfs. You may have problems with that if running spk2.
Squashman's suggestion is better.
lynch | | Member with 96 posts. | | Join Date: Jan 2005 Experience: Yes, please. | | Squashman,
I have a BartPE cd and I didn't even think about it! Thanks for reminding me. | | Senior Member with 1,513 posts. | | Join Date: Jul 2005 Experience: I've been at this for too long. | | Captive NTFS has problems with the 2.6 kernel; if the live CD uses that, then Captive isn't a good choice.
I only have XP on a laptop and no install disk, just an install partition. Will BartPE work with that? | | Senior Member with 1,962 posts. | | Join Date: Aug 2002 Location: Back East,Way Back East | | I think you need an XP disk to create a Bartpe disk, dont you? Quote:
Requirements to build:
1. The files from your Windows Installation CD-Rom.
Supported Windows versions are:
* Windows XP Home Edition (must be slip streamed with Service Pack 1 or higher)
* Windows XP Professional (must be slip streamed with Service Pack 1 or higher)
* Windows Server 2003, Web Edition
* Windows Server 2003, Standard Edition
* Windows Server 2003, Enterprise Edition
2. PE Builder runs on Windows 2000/XP/2003/BartPE systems.
3. CD/DVD writer if you want to creat a bootable CD/DVD.
| lynch | | Senior Member with 1,513 posts. | | Join Date: Jul 2005 Experience: I've been at this for too long. |
02-Oct-2005, 09:53 AM
#10 | That is what I understood. Was just wondering if anyone had found a way around that. I also wonder if the install partition would/could count as an install CD. |  THIS THREAD HAS EXPIRED.
Are you having the same problem?
We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.
|
Smart Search
| Find your solution! | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |  WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
| You Are Using: |
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:31 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd. | |
|