Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How do you delete files that are seemingly missing inodes? Post 302282829 by jaffachamp on Monday 2nd of February 2009 01:40:49 AM
Old 02-02-2009
Yeah, same results as trying to manually rm them.
Code:
$ ls
Andre?? 3000 Feat. Kelis  Les Mise??rables  ???????????? ???  ??????????????????  ???????????????
$ find . -print -exec /bin/rm -f {} \;
.
/bin/rm: cannot remove `.' or `..'
find: ./????????????: No such file or directory
find: ./Andr? 3000 Feat. Kelis: No such file or directory
find: ./??????????: No such file or directory
find: ./???????? ??: No such file or directory
find: ./Les Mis?rables: No such file or directory
$ ls
Andre?? 3000 Feat. Kelis  Les Mise??rables  ???????????? ???  ??????????????????  ???????????????

I hope there is an easy answer. So far, the only thing I can think of is a bit drastic: somehow forcibly orphan the files/directory or remove their references from the directory structure and let fsck handle the aftermath---although I have no clue how to do that.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

files missing

a few of some live payroll files have been deleted / missing ... i've restored last nites backup ... what could be the possibilities of this strange occurance ... users have menus to work on and use these live files ... we run an aix box with a ksh shell. Where do I start ?? Thanks (4 Replies)
Discussion started by: cubicle^dweller
4 Replies

2. Shell Programming and Scripting

echo and then cp the missing files

Hi.... I have two files abc.txt and xyz.txt. I want to echo and copy files from abc.txt to xyz.txt, which are not in xyz but present in abc.txt. Both of these files are in same directory. Please provide code with while or for loop.... :) (3 Replies)
Discussion started by: tushar_tus
3 Replies

3. Shell Programming and Scripting

Compare files in two folders and delete missing ones

I do not know much about shell scripting so I am at a loss here. If someone can help me, that would be great! I have two directories /dir1 /dir2 I need to delete all files from /dir1 and that does not have a correspondent file in /dir2. It should NOT check file suffixes in /dir2 . Why?... (20 Replies)
Discussion started by: kaah
20 Replies

4. Shell Programming and Scripting

Compare 2 folders to find several missing files among huge amounts of files.

Hi, all: I've got two folders, say, "folder1" and "folder2". Under each, there are thousands of files. It's quite obvious that there are some files missing in each. I just would like to find them. I believe this can be done by "diff" command. However, if I change the above question a... (1 Reply)
Discussion started by: jiapei100
1 Replies

5. Shell Programming and Scripting

How to take the missing files

Hi all , am using unix ksh I have a lots of files in /prb directory in the format as .. .. .. .. MMRR0607.DAT_2012 MMRR0707.DAT_2012 MMRR0907.DAT_2012 MMRR1107.DAT_2012 ... .. MMRR3107.DAT_2012 MMRR0208.DAT_2012 .. I need the output as Missing files are:- MMRR0807.DAT_2012 (note... (4 Replies)
Discussion started by: Venkatesh1
4 Replies

6. Shell Programming and Scripting

Regular expression, seemingly simple but

Hello, I want to test a hour variable with an expression regular The format is 00 01 02 03.......19 20 21 22 23 what follows in red doesn't work, it's clear 19 for example can't work. Can you help me the right regular expression ? case "$3" in () # Nothing, OK ! ;; (*) echo... (4 Replies)
Discussion started by: amazigh42
4 Replies

7. UNIX for Dummies Questions & Answers

Delete data blocks based on missing combinations

Hello masters, I am filtering data based on completeness. A (Name , Group) combination in File2 is only complete when it has data for all subgroups specified in File1. All incomplete (Name , Group) combinations do not appear in the output. So for example , Name1 Group 1 in File2 is... (6 Replies)
Discussion started by: senhia83
6 Replies

8. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies

9. Shell Programming and Scripting

Seemingly simple sed, delete between matching lines

There are many matching blocks of text in one file that need to be deleted. This example below is one block that needs to be either deleted or replaced with an empty line. This text below is the input file. The ouput file should be empty Searching Checks. Based on search criteria name: Value :... (2 Replies)
Discussion started by: bash_in_my_head
2 Replies

10. Programming

Mismatched free() / delete / delete [] line no missing

Could you tell me the possibilities of the reason to get the Mismatched free() / delete / delete . I unable to see the line no in the valgrind report. it displays the function name. with that function name, I am not able to find where exactly the issue is there.I am getting the Mismatched free()... (3 Replies)
Discussion started by: SA_Palani
3 Replies
fsirand(1M)						  System Administration Commands					       fsirand(1M)

NAME
fsirand - install random inode generation numbers SYNOPSIS
fsirand [-p] special DESCRIPTION
fsirand installs random inode generation numbers on all the inodes on device special, and also installs a file system ID in the superblock. This helps increase the security of file systems exported by NFS. fsirand must be used only on an unmounted file system that has been checked with fsck(1M) The only exception is that it can be used on the root file system in single-user mode, if the system is immediately re-booted afterwards. OPTIONS
-p Print out the generation numbers for all the inodes, but do not change the generation numbers. USAGE
See largefile(5) for the description of the behavior of fsirand when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
fsck(1M), attributes(5), largefile(5) SunOS 5.11 16 Sep 1996 fsirand(1M)
All times are GMT -4. The time now is 05:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy