Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor ram recovery router screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Trying to remove files on mounted drive

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
iOXeR's Avatar
Member with 96 posts.
 
Join Date: Jan 2005
Experience: Yes, please.
26-Sep-2005, 08:10 PM #1
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.
lotuseclat79's Avatar
Distinguished Member with 14,988 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
27-Sep-2005, 11:48 PM #2
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
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
28-Sep-2005, 05:18 AM #3
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
__________________
seldom right,but never in doubt...
Here's a few links I find helpful:
Intro to Linux:A Hands-on Guide
USALUG
A little Linux help
OpenSUSE help+
Bash Commands
iOXeR's Avatar
Member with 96 posts.
 
Join Date: Jan 2005
Experience: Yes, please.
28-Sep-2005, 10:04 PM #4
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.
Squashman's Avatar
Distinguished Member with 14,988 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: IIAHYAYCESA,YAADA!
28-Sep-2005, 11:13 PM #5
You would be better off with a BartPE cd.
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
29-Sep-2005, 05:13 AM #6
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
iOXeR's Avatar
Member with 96 posts.
 
Join Date: Jan 2005
Experience: Yes, please.
29-Sep-2005, 11:28 PM #7
Squashman,
I have a BartPE cd and I didn't even think about it! Thanks for reminding me.
jiml8's Avatar
Senior Member with 1,513 posts.
 
Join Date: Jul 2005
Experience: I've been at this for too long.
29-Sep-2005, 11:43 PM #8
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?
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
30-Sep-2005, 05:02 AM #9
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
jiml8's Avatar
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.
Closed Thread Bookmark and Share

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.

Thread Tools


You Are Using:
Server ID
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.
Powered by Cermak Technologies, Inc.