- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: can't umount / remove files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 06:58 AM
12-17-2002 06:58 AM
can't umount / remove files
I have a file in the directory that I am unable to remove. Doing a ls shows the file exists. But when I do a rm , mv, it tells me that it cannot cannot access: No such file or directory. The file is neon.dump.Z.1112. Any help is greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 07:00 AM
12-17-2002 07:00 AM
Re: can't umount / remove files
rm ./
If all else fails unmount the filesystem, run a full fsck on it, and remount. If its corrupt the fsck will prompt to remove its inode entry. We had a similar problem just today - lost an entire directory to some sort of corruption, only fsck could clear it up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 07:01 AM
12-17-2002 07:01 AM
Re: can't umount / remove files
Do rm -i * in the directory where the file is. Say no to ALL other files, and yes when the file you want to delete is displayed.
Or, depending on the filename, you should be able to do a wildcard match.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 07:06 AM
12-17-2002 07:06 AM
Re: can't umount / remove files
ls -l | cat -v
This will show misc characters, and then you can remove it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 07:09 AM
12-17-2002 07:09 AM
Re: can't umount / remove files
to move the selected file to a better name, use ls() -i to locate
the file's inode value. Then:
find . -inum 12345 -ok mv '{}' new_file_name \;
"-ok" is a safety check, prompting you for confirmation of the
command it is about to execute. You can use "-exec" instead to avoid
the prompting. The value 12345 is the result of ls() -i command.
Best regards ;-))
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 07:12 AM
12-17-2002 07:12 AM
Re: can't umount / remove files
Perform the following steps to remove files that contain special
characters:
1. ll -i | more
Note: Verify the file's inode.
2. find . -xdev -inum # -exec ll {} \;
Note: Verify ll of the inode.
3. find . -xdev -inum # -exec rm -i {} \;
Note: Confirm the deletion of each file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 07:29 AM
12-17-2002 07:29 AM
Re: can't umount / remove files
#ls -l>test
#vi test
Remove all the lines except the required one.
put a rm -r before the file.
then run sh test.
when you are redirecting the directory listing to a file it will give you all the characters associated with that filename.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 10:46 AM
12-17-2002 10:46 AM
Re: can't umount / remove files
If possible, move all needed files to a temp dir, with the only file left in the current dir, rm *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2002 01:30 PM
12-17-2002 01:30 PM
Re: can't umount / remove files
cd to the directory the file is in.
type rm -f neon
then hit escape escape. The shell should fill in the rest of the filename, special characters and all.
You might want to check and see if there is a softlink from another filesystem here. You know, like print spools have links from /usr/spool to /var/spool so the print data lands on var.
-f says, I don't care, get rid of it.
As am interesting aside, I once has a problem like this.
root fs got full. I went through the whole thing, found nothing big.
Then I started unmounting filesystems.
After unmounting /schmobagel I cd' into it.
What did I find? Files, tons of them, which got copied in by a cron job while I had it unmounted.
You see when you mount a filesystem you need a folder by the same name. If you copy stuff in while its not mounted, when you mount, you can't see whats there, but its on the root fs.
Probably useless but its a cool story.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 07:25 AM
12-18-2002 07:25 AM
Re: can't umount / remove files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2002 10:22 AM
12-18-2002 10:22 AM
Re: can't umount / remove files
In my shop the only two that knew about it are me and my backup.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2002 01:05 PM
12-20-2002 01:05 PM