You are not logged in.
I have been playing around with the differences 'between' ls and 'find' commands.
# find / -type d
If I run this code with Arch Linux as the main OS, it stalls the OS intermittently and this type of output is displayed.
http://i107.photobucket.com/albums/m297 … 095343.jpg
Note: In VirtualBox this code runs fine.
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
Offline
Please use thumbnails. This looks like hardware damage to me, or at least a corrupted filesystem.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
https://ata.wiki.kernel.org/index.php/L … r_messages
"UNC Uncorrectable error - often due to bad sectors on the disk"
Last edited by frank604 (2015-03-16 14:44:42)
Offline
When I run find on / or such I habitually send stderr to /dev/null to avoid all the damn "Permission denied" errors. This prompted me to see if there was a smarter way of doing that, but there doesn't seem to be.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
When I run find on / or such I habitually send stderr to /dev/null to avoid all the damn "Permission denied" errors. This prompted me to see if there was a smarter way of doing that, but there doesn't seem to be.
~ $ sudo find / -ignore_readdir_race -type d | grep denied
~ $ sudo find / -type d | grep denied
find: `/proc/9831/task/9831/fd/5': No such file or directory
find: `/proc/9831/task/9831/fdinfo/5': No such file or directory
find: `/proc/9831/fd/5': No such file or directory
find: `/proc/9831/fdinfo/5': No such file or directory
~ $ sudo find / -ignore_readdir_race -type d | grep denied
~ $
Offline
@OP sorry for hijacking your thread
Well, the errors are going to stderr, so you might as well send stdout to /dev/null in your examples. And unfortunately it doesn't work when run as non-root:
$ find / -xdev >/dev/null
find: `/usr/share/polkit-1/rules.d': Permission denied
...
$ find / -xdev -ignore_readdir_race >/dev/null
find: `/usr/share/polkit-1/rules.d': Permission denied
...
Edit: also it's not "Permission denied" errors being masked avoided in your examples anyway, which is probably the real reason it doesn't work as non-root. But thanks for playing
find / -type d ! -readable ! -executable -prune -o -print
Last edited by alphaniner (2015-03-16 19:49:09)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline