Sponsored Content
Operating Systems Solaris /bin/find: stat() error <File> : No such file or directory Post 302820373 by prash358 on Wednesday 12th of June 2013 02:38:39 PM
Old 06-12-2013
Quote:
Originally Posted by MadeInGermany
Yes, you can try
Code:
umount /var

If this works you can directly proceed with fsck and mount, as you suggested.
But it will likely fail with "device busy" unless it is in single-user mode.
--
In single-user mode and OK prompt you'll loose remote connection e.g. ssh connection. So make sure you access the system through a console (ILO/ALOM board, serial console, grahical console, etc.).
You can shutdown -y -i 0 -g 0 to the OK prompt and then type boot -s.
I have tested the below scenario before deploying on Production machine:

When i try to unmount /var partition after booting with boot -s from OK prompt

Then i get

Code:
umount /var
umount: /var busy

Then run fsck

Code:
fsck -Y -F ufs /var
/dev/md/dsk/d140 IS CURRENTLY MOUNTED READ/WRITE.
CONTINUE?  yes

** /dev/md/dsk/d140
** Currently Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
FILESYSTEM MAY STILL BE INCONSISTENT.
27191 files, 3092944 used, 5161717 free (2965 frags, 644844 blocks, 0.0% fragmentation)

***** PLEASE RERUN FSCK ON UNMOUNTED FILE SYSTEM *****

Then rebooted the machine and it was fine, but not sure why i am unable to unmount /var when booting into Single user mode.

Please assist.

Last edited by Scott; 06-12-2013 at 03:50 PM.. Reason: Code tags not quote tags for the last time! Thread closed.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. Shell Programming and Scripting

cp: cannot stat: No such file or directory

Hi there, I need some help with cp files from one directory into several others. The code is as follows: SUB=`ls src_directory | wc -l` OUT_LOOP=$(($SUB / $MK_NUMS)) IN_LOOP=$(($SUB % $MK_NUMS)) COUNT=$MK_NUMS while ] do mkdir dst_directory$COUNT ls -1 src_directory |... (4 Replies)
Discussion started by: Krush187
4 Replies

3. SuSE

cp: cannot stat no such file or directory

#!/bin/ksh cp /etc/apache2/vhosts.d/orginal/test-yast2_vhost.conf-bk /etc/apache2/vhosts.d/test-yast2_vhost.conf /usr/sbin/rcapache2 graceful when i ran this script I'm getting following error. cp: cannot stat /etc/apache2/vhosts.d/orginal/test-yast2_vhost.conf-bk no such file or directory... (1 Reply)
Discussion started by: s_linux
1 Replies

4. Shell Programming and Scripting

#!/bin/bash cannot find file or directory

Hello, When i run a bash script on ubuntu i get this message.. #!/bin/bash cannot find file or directory... Can anibody help me with this, because the file actually exists.... Is there any extra configuration to be made? (5 Replies)
Discussion started by: oliveiraum
5 Replies

5. Shell Programming and Scripting

Mv : cannot stat :no such file or directory

this is my script x=1 o=0 while do fi ];then (this check is a certain extension with a number exist) let x++ else mv /var/log/mrnet.log.1.gz /var/log/mrnet.log.$x.gz o=1 fi done mrnet.log.1.gz exist already... (1 Reply)
Discussion started by: Froob
1 Replies

6. UNIX for Dummies Questions & Answers

Cp: cannot stat...: no such file or directory

Please review the issue below and tell me what I need to do. I cannot copy the zip file. $ ls -l total 10 drwxrwx--- 1 root vboxsf 0 Feb 1 16:10 sf_Temp drwxrwx--- 2 root vboxsf 4096 Jan 31 17:59 sf_VBoxShared dr-xr-xr-x 6 oracle root 2048 Dec 19 09:20 VBOXADDITIONS_4.2.6_82870 $ cp -r... (2 Replies)
Discussion started by: lutus
2 Replies

7. Shell Programming and Scripting

Cp: cannot stat No such file or directory

Hi Please review this script and let me know what i need to do. This is my script #!/bin/bash #SCRIPT: forms.sh #PURPOSE: Process a file line by line with redirected while-read loop. #PURPOSE: and copy the forms to the follder foldername=sample_dir mkdir -p $foldername while read... (5 Replies)
Discussion started by: Rami Reddy
5 Replies

8. UNIX for Dummies Questions & Answers

Cannot stat ‘/albiero’: No such file or directory

So on my external hard drive, I am trying to copy one folder into another folder sudo cp /albiero /home and get the error message cannot stat ‘/albiero': No such file or directory Though both folders exist drwxr-xr-x 44 root root 4096 Oct 31 15:15 albiero drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: albiero
2 Replies

9. UNIX for Dummies Questions & Answers

Cp: cannot stat ‘src/last??’: No such file or directory

Good day. I am trying to install the latest version of LAST program (last.cbrc.jp) on my Windows64bit using Cygwin64. I successfully downloaded it and followed the instructions on how to install it. However, when I tried to run the command "make install prefix=~", I got this error, as shown... (0 Replies)
Discussion started by: nicole_john_
0 Replies

10. Shell Programming and Scripting

Getting error: /usr/bin/env: ruby: No such file or directory

Hi, I installed ruby using rvm with root user on Linux. Now i m trying the below command as a non root user with sudo privileges. sudo /usr/local/rvm/rubies/ruby-2.2.5/bin/gem install passenger I get the below error: I had even reset the path for both gem as well as ruby as you... (8 Replies)
Discussion started by: mohtashims
8 Replies
mountall(1M)						  System Administration Commands					      mountall(1M)

NAME
mountall, umountall - mount, unmount multiple file systems SYNOPSIS
mountall [-F FSType] [-l | -r] [file_system_table] umountall [-k] [-s] [-F FSType] [-l | -r] [-n] umountall [-k] [-s] [-h host] [-n] DESCRIPTION
mountall is used to mount file systems specified in a file system table. The file system table must be in vfstab(4) format. If no file_sys- tem_table is specified, /etc/vfstab is used. If - is specified as file_system_table, mountall reads the file system table from the standard input. mountall mounts only those file systems with the mount at boot field set to yes in the file_system_table. For each file system in the file system table, the following logic is executed: if there exists a file/usr/lib/fs/FSType/fsckall, where FSType is the type of the file system, save that file system in a list to be passed later, and all at once, as arguments to the /usr/lib/fs/FSType/fsckall script. The /usr/lib/fs/FSType/fsckall script checks all of the file systems in its argument list to determine whether they can be safely mounted. If no /usr/lib/fs/FSType/fsckall script exists for the FSType of the file system, the file system is individually checked using fsck(1M). If the file system does not appear mountable, it is fixed using fsck before the mount is attempted. File systems with a - entry in the fsckdev field are mounted without first being checked. umountall causes all mounted file systems except root, /usr, /var, /var/adm, /var/run, /proc, and /dev/fd to be unmounted. If the FSType is specified, mountall and umountall limit their actions to the FSType specified. There is no guarantee that umountall unmounts busy file sys- tems, even if the -k option is specified. OPTIONS
The following options are supported: -F Specify the FSType of the file system to be mounted or unmounted. -h host Unmount all file systems listed in /etc/mnttab that are remote-mounted from host. -k Use the fuser -k mount-point command. See the fuser(1M) for details. The -k option sends the SIGKILL signal to each process using the file. As this option spawns kills for each process, the kill messages might not show up immediately. There is no guarantee that umountall unmounts busy file systems, even if the -k option is specified. -l Limit the action to local file systems. -n List the actions that would be performed for the specified options, but do not actually execute these actions. Repeating the command without the -n option executes the listed actions, assuming that the /etc/mnttab file has not changed in the interval prior to repeating the command. -r Limit the action to remote file system types. -s Do not perform the umount operation in parallel. FILES
/etc/mnttab Mounted file system table /etc/vfstab Table of file system defaults /usr/lib/fs/FSType/fsckall Script called by mountall to perform the file system check of all file systems of type FSType ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
fsck(1M), fuser(1M), mount(1M), mnttab(4), vfstab(4), attributes(5) DIAGNOSTICS
No messages are printed if the file systems are mountable and clean. Error and warning messages come from fsck(1M) and mount(1M). SunOS 5.10 28 Oct 2002 mountall(1M)
All times are GMT -4. The time now is 02:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy