Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to unmount a folder and do check disk only in that path Post 302568303 by mirrorx on Thursday 27th of October 2011 06:39:54 AM
Old 10-27-2011
This is the output:
Code:
[root@NSMeXpressII /]# cd tmp
[root@NSMeXpressII tmp]# find /tmp -exec ls -l {} \;
total 16
drwx------  2 root root 16384 Sep  2  2010 lost+found
total 4
srwxrwxrwx  1 xfs xfs 0 Aug 24 14:57 fs7100
srwxrwxrwx  1 xfs xfs 0 Aug 24 14:57 /tmp/.font-unix/fs7100
total 8
-rw-r--r--  1 root root 152 Oct 27 08:31 cpu.call
-rw-r--r--  1 root root 152 Oct 27 08:31 /tmp/.nsmxwui/cpu.call
-rw-------  1 nsm nsm 39 Oct 27 08:01 /tmp/.s.PGSQL.5432.lock
total 0
total 0
srwxrwxrwx  1 nsm nsm 0 Oct 27 08:01 /tmp/.s.PGSQL.5432
total 4
srwxrwxrwx  1 nsm nsm 0 Sep 15 10:54 X991
srwxrwxrwx  1 nsm nsm 0 Sep 15 10:54 /tmp/.X11-unix/X991
[root@NSMeXpressII tmp]#


What this command do?

---------- Post updated at 10:24 AM ---------- Previous update was at 09:42 AM ----------

After done the previous output i've reproduced the error:

i've run the script again (i've generated the new files) i've tryed to delete them and verified they are undeletable.

Then i've run again your command: (find test/ -exec ls -l {} \Smilie

And this is the new output:

Code:
[root@NSMeXpressII tmp]# find test/ -exec ls -l {} \;
total 168
-rw-r--r--  1 nsm nsm 162689 Oct 27 09:11 FW-Log.txt
-rw-r--r--  1 nsm nsm 162689 Oct 27 09:11 test/FW-Log.txt
[root@NSMeXpressII tmp]#

why this file is undeletable?



Moderator's Comments:
Mod Comment Video tutorial on how to use code tags in The UNIX and Linux Forums.


---------- Post updated at 12:39 PM ---------- Previous update was at 10:24 AM ----------

(For mod) Ok thnkU Smilie

Last edited by Franklin52; 10-27-2011 at 05:47 AM.. Reason: Please use code tags, thank you
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to check the actual path instead of link path

Hi I have a path link /test/df/link1/actual/file1 here link1 is actually a softlink link1= a/b i need to print the ACTUAL FULL path instead of a linked path is there any direct command to print the actual path of any linked path eg showPhyscialPath /test/df/link1/actual/file1 and it... (4 Replies)
Discussion started by: reldb
4 Replies

2. HP-UX

Unmount and remove all Logical vol.Volume group and physical disk

Hi, Someone please help me with how i can unmount and remove all the files systems from a cluster. This is being shared by two servers that are active_standby. (3 Replies)
Discussion started by: joeli
3 Replies

3. Windows & DOS: Issues & Discussions

How can I upload a zip folder on a unix path from my windows folder?

Hello, I am an amature at UNIX commands and functionality. Please could you all assist me by replying to my below mentioned querry : How can I upload a zip folder on a unix path from my windows folder? Thanks guys Cheers (2 Replies)
Discussion started by: ajit.yadav83
2 Replies

4. UNIX for Dummies Questions & Answers

ls + folder path

I am using ls -l -R to view all the files in the parent directory and sub -directories. Is it possible to view the path of the files in another column. (1 Reply)
Discussion started by: soumodeep123
1 Replies

5. HP-UX

/usr out of disk space need to unmount/ expand volume /mount

Greetings, I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space. I have plenty of hard disk space on my computer so would like to expand the size of the volume. The... (5 Replies)
Discussion started by: Dirk_
5 Replies

6. OS X (Apple)

Can't Mount Disk / Image after bad unmount

I have had a little issue with one of my disks, the usb cacble was pulled out and one of the external drives on it would no longer mount. I used First Aid and it verified and repaired both OK / nothing to do). After lots of messing around and not being able to mount I used Drive Genius 2 and that... (1 Reply)
Discussion started by: Cranie
1 Replies

7. OS X (Apple)

When a disk won't 'Unmount"

hdiutil detach -Force disk&number (ex:hdiutil detach -Force disk1) (3 Replies)
Discussion started by: unimachead
3 Replies

8. Shell Programming and Scripting

Unmount USB disk

Hi, How can I unmount an usb disk using the command umount? (3 Replies)
Discussion started by: Guccio
3 Replies

9. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

10. Shell Programming and Scripting

Given a path get the last folder in the path

Hi, I have a path such as: PATH= "/home/user/Desktop/folder1/folder2"and I want to output the last folder in the path i.e. "folder 2" Any idea how I should do this? grep? Thanks! (1 Reply)
Discussion started by: bashnewbee
1 Replies
E2TOOLS(7)						 Miscellaneous Information Manual						E2TOOLS(7)

NAME
e2tools - utilities to manipulate files in an ext2/ext3 filesystem DESCRIPTION
E2tools is a simple set of GPL'ed utilities to read, write, and manipulate files in an ext2/ext3 filesystem. These utilities access a filesystem directly using the ext2fs library. I wrote these tools in order to copy files into a linux filesystem on a machine that does not have ext2 support. Of course, they can also be used on a linux machine to read/write to disk images or floppies without having to mount them or have root access. Supported functionality: e2cp copy files e2mv move files e2rm remove files e2mkdir create directory e2ln create hard links e2ls list files/directories e2tail output the last part of a file In general, to specify a directory or file on an ext2 filesystem for the e2tools utilities, use the following form: filesystem:directory_path The filesystem can be an unmounted partition or a regular file that's been formatted to contain an ext2 filesystem. In general, if a com- mand takes multiple file names on the command line, if the first one contains an ext2 file specification, the rest of the files are assumed to be on the same filesystem until another one is explicitly stated: /tmp/boot.img:/tmp/file1 /tmp/file2 /tmp/file3 /tmp/boot2.img:/tmp/file4 Files 1-3 are on /tmp/boot.img and the last file is on /tmp/boot2.img SEE ALSO
e2cp(1), e2ln(1), e2ls(1), e2mkdir(1), e2mv(1), e2rm(1), e2tail(1). AUTHOR
The e2tools were written by Keith Sheffield <sheff@pobox.com>. This manual page was written by Lucas Wall <lwall@debian.org>, for the Debian project (but may be used by others). March 2, 2005 E2TOOLS(7)
All times are GMT -4. The time now is 02:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy