Unable to delete file after installing Cygwin

ysg

New member
Local time
10:36 AM
Messages
7
Hello,

I installed cygwin in C:\cygwin\... Unfortunately, for one reason or another, my whole cygwin install became horribly buggered up (my home directory was not recognized and I could not access many of my commands/applications that I had installed/built). Now, I figured that I'm going to nuke everything from orbit (just delete the cygwin directory in my C drive) and start from scratch (besides, I would have loved to make an update or two to some of the apps). This became painfully difficult, as some directories and files could not be deleted. I'm running Win 7 and I am an admin.

This is the error that I get (with an exclamation point) when I try to delete a file:

Invalid MS-DOS function.

nul
Type: File
Size: 3.77 KB
Date modified: 10/30/2012 1:01 PM

Buttons: "Try Again" "Cancel"

If you need more information, please let me know and I'll try to provide it as best as I can. But I'd love to delete this directory and re-install, if you could help me, I'd greatly appreciate it.
 

My Computer My Computer

OS
Windows 7 Enterprise 32bit

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Motherboard
ASUSTeK COMPUTER INC. P8H77-M
Memory
8.00 GB
Graphics Card(s)
Intel(R) HD Graphics 4000
Sound Card
On Board
Monitor(s) Displays
Dell 24"
Screen Resolution
1920 x 1080
Hard Drives
(1) INTEL SSDSC2CT180A3 ATA Device (2) ST500DM002-1BD142 ATA Device (3) WDC WD3200AAKS-75L9A0 ATA Device (4) Generic- Compact Flash USB Device (5) Generic- MS/MS-Pro USB Device (6) Generic- SD/MMC USB Device (7) Generic- SM/xD-Picture USB
PSU
500w Corsair
Case
Cooler Master
Cooling
3 Fans
Keyboard
Logitech MK300
Mouse
Logitech WOM
Internet Speed
75Mb
Antivirus
Norton 360
Browser
Firefox, Opera, IE

My Computer My Computer

OS
Windows 7 Enterprise 32bit
Restore your system to a date before you installed the software!
http://www.sevenforums.com/tutorials/700-system-restore.html

Just out of interest why do you want Window 7 to "look" like Linux? Just curious!
No. I do have extensive Linux experience and for certain tasks find it much easier to accomplish them from a *nix command line. It's a nice addition to Windows that makes the experience overall better.
Thanks for that, nice to add a bit more to my knowledge base. When you said "No" does that mean you can't do a system restore?
 

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Motherboard
ASUSTeK COMPUTER INC. P8H77-M
Memory
8.00 GB
Graphics Card(s)
Intel(R) HD Graphics 4000
Sound Card
On Board
Monitor(s) Displays
Dell 24"
Screen Resolution
1920 x 1080
Hard Drives
(1) INTEL SSDSC2CT180A3 ATA Device (2) ST500DM002-1BD142 ATA Device (3) WDC WD3200AAKS-75L9A0 ATA Device (4) Generic- Compact Flash USB Device (5) Generic- MS/MS-Pro USB Device (6) Generic- SD/MMC USB Device (7) Generic- SM/xD-Picture USB
PSU
500w Corsair
Case
Cooler Master
Cooling
3 Fans
Keyboard
Logitech MK300
Mouse
Logitech WOM
Internet Speed
75Mb
Antivirus
Norton 360
Browser
Firefox, Opera, IE
Restore your system to a date before you installed the software!
http://www.sevenforums.com/tutorials/700-system-restore.html

Just out of interest why do you want Window 7 to "look" like Linux? Just curious!
No. I do have extensive Linux experience and for certain tasks find it much easier to accomplish them from a *nix command line. It's a nice addition to Windows that makes the experience overall better.
Thanks for that, nice to add a bit more to my knowledge base. When you said "No" does that mean you can't do a system restore?
Haha, I said "No" to your question asking me if I wanted to make Windows look like Linux :) .

I'd like to try first in safe mode to delete those files (should work). I can't do it right now because I'm busy at work.
 

My Computer My Computer

OS
Windows 7 Enterprise 32bit
No. I do have extensive Linux experience and for certain tasks find it much easier to accomplish them from a *nix command line. It's a nice addition to Windows that makes the experience overall better.
Thanks for that, nice to add a bit more to my knowledge base. When you said "No" does that mean you can't do a system restore?
Haha, I said "No" to your question asking me if I wanted to make Windows look like Linux :) .

I'd like to try first in safe mode to delete those files (should work). I can't do it right now because I'm busy at work.
But just deleting the files/folders will not repair your registry! Do a system restore and be safe!
 

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Motherboard
ASUSTeK COMPUTER INC. P8H77-M
Memory
8.00 GB
Graphics Card(s)
Intel(R) HD Graphics 4000
Sound Card
On Board
Monitor(s) Displays
Dell 24"
Screen Resolution
1920 x 1080
Hard Drives
(1) INTEL SSDSC2CT180A3 ATA Device (2) ST500DM002-1BD142 ATA Device (3) WDC WD3200AAKS-75L9A0 ATA Device (4) Generic- Compact Flash USB Device (5) Generic- MS/MS-Pro USB Device (6) Generic- SD/MMC USB Device (7) Generic- SM/xD-Picture USB
PSU
500w Corsair
Case
Cooler Master
Cooling
3 Fans
Keyboard
Logitech MK300
Mouse
Logitech WOM
Internet Speed
75Mb
Antivirus
Norton 360
Browser
Firefox, Opera, IE
Hello,

I installed cygwin in C:\cygwin\... Unfortunately, for one reason or another, my whole cygwin install became horribly buggered up (my home directory was not recognized and I could not access many of my commands/applications that I had installed/built). Now, I figured that I'm going to nuke everything from orbit (just delete the cygwin directory in my C drive) and start from scratch (besides, I would have loved to make an update or two to some of the apps). This became painfully difficult, as some directories and files could not be deleted. I'm running Win 7 and I am an admin.

This is the error that I get (with an exclamation point) when I try to delete a file:

Invalid MS-DOS function.

nul
Type: File
Size: 3.77 KB
Date modified: 10/30/2012 1:01 PM

Buttons: "Try Again" "Cancel"

If you need more information, please let me know and I'll try to provide it as best as I can. But I'd love to delete this directory and re-install, if you could help me, I'd greatly appreciate it.

The way you state the situation is you "did not" use an uninstall routine, correct? If that is the case, sometimes, reinstalling the software and then uninstalling it using the proper uninstall process will set things right.

If it were me, I would go with reinstalling and then use the process described in the following link to uninstall;

http://cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all

I have no idea what kind of problems you may have self-inflected by what you state in the rest of your post, so good luck.

But that's just my .02 cents.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 7 Professional x64
CPU
Intel i5 quad processor
Motherboard
DP67BG
Memory
16 GB
Graphics Card(s)
Radeon HD 5770
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Samsung SyncMaster
Screen Resolution
1920X1080
Hard Drives
WD 2TB (SATA Internal)
WD 1TB (USB External)
PSU
Corsair GS800
Case
Tower (Generic)
Cooling
3 Internal Fans
Keyboard
MS Wireless
Mouse
MS Optical Wired
Internet Speed
54 mbps
Antivirus
Emsisoft
Browser
IE-Version 9, Palemoon-Version 24.2.0
I would still opt for a system restore. Then you can install again. Better safe than sorry IMHO!
 

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Motherboard
ASUSTeK COMPUTER INC. P8H77-M
Memory
8.00 GB
Graphics Card(s)
Intel(R) HD Graphics 4000
Sound Card
On Board
Monitor(s) Displays
Dell 24"
Screen Resolution
1920 x 1080
Hard Drives
(1) INTEL SSDSC2CT180A3 ATA Device (2) ST500DM002-1BD142 ATA Device (3) WDC WD3200AAKS-75L9A0 ATA Device (4) Generic- Compact Flash USB Device (5) Generic- MS/MS-Pro USB Device (6) Generic- SD/MMC USB Device (7) Generic- SM/xD-Picture USB
PSU
500w Corsair
Case
Cooler Master
Cooling
3 Fans
Keyboard
Logitech MK300
Mouse
Logitech WOM
Internet Speed
75Mb
Antivirus
Norton 360
Browser
Firefox, Opera, IE
Back
Top