11-16-2007
Oops didnt see the last part - so the format command hangs..
did u check dmesg and find out if there is anything wrong with that disk
why dont u umount the disk, run an fsck -y and then try
~Sage
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Just subscribed to this forum. Not a regular user of Unix.:)
I did the following:
We have a directory structure /a/b/c5/
Where c5 is the only directory inside b.
export ANOOP=/a/b/c*/
echo $ANOOP=/a/b/c5/
I have to create a symbolic link to anoop.txt in the directory... (2 Replies)
Discussion started by: Pankajakshan
2 Replies
2. Shell Programming and Scripting
Hiii... There...
I am making a Script in which I am taking the value of a variable "var"
through key board.
But I want, if no values are supplied for "var" for more than 5 seconds then script shuld automatically exit.Script is as follow :
#cat abc
#!/bin/bash
echo "Enter Your Choice : "... (4 Replies)
Discussion started by: prashantshukla
4 Replies
3. UNIX and Linux Applications
I am looking at installing PiKdev which needs libqt3-mt and kdelibs4-dev. The installed package is qt-r1008952-i486-1 which claims to be a gui toolkit. find / -name "*libqt*" yields nothing with mt just a lot of support, compatible, and access widgets. Normally I would consider this a no go but... (0 Replies)
Discussion started by: slak0
0 Replies
4. Solaris
Hello everyone, my job has an old Solaris 9 box, that no one knows the password for, but we need to format the hard drives to salvage it, we are able to get to the password prompt when we telnet into it but that is it, is there a way that we can format the drives without knowing the password.
... (1 Reply)
Discussion started by: campch5
1 Replies
5. Shell Programming and Scripting
Hi,
I am a little bit confusing of using find command.
Actually, I am planning to delete the files whatever the files are existing in the day before yesterday. So, I am writing the command like this.
find . -name "*.txt" -ctime -2 { here I am confusing, if I will use +2 or +1 also I am... (5 Replies)
Discussion started by: nagraju.allam
5 Replies
6. Solaris
Hello,
I have a few questions about format and disks in general. Would like to get some interpretation.
defects:
primary: ..... defects form the factory?
grown: ........ defects happening as drive is in use?
What would be a rule of thumb regarding a point when the drive would require it to... (4 Replies)
Discussion started by: pepi
4 Replies
7. Shell Programming and Scripting
Hi,
I ran a script named cat item
when I searched for this script using command PS
I get two process . I don't understand this. Also this script has run for 15 minutes but the time is showing as 0:00:confused::confused:
ps -ef | grep cat_item
catmgr 4508 4486 0 05:10:29 ? 0:00... (5 Replies)
Discussion started by: TomG
5 Replies
8. Shell Programming and Scripting
1. increase file space
first, double space a file:
awk '1;{print ""}'
I probably can understand it:print a blank line every time.But when I read triple space a file I am confused:
awk '1;{print "\n"}'
doesn't it meaning print a blank line every time too?
2. number each line of file, but... (6 Replies)
Discussion started by: hhdzhu
6 Replies
9. Shell Programming and Scripting
This situation is extracted from a larger context. My intention for now is to escape the forward slashes in the path of a filename. (Ultimately the LINEs will come from a file.)
while read LINE ; do
sed 's/\//\\\//g' <<< "$LINE" # ok
escaped=`sed 's/\//\\\//g' <<< "$LINE"` #... (12 Replies)
Discussion started by: Ralph
12 Replies
LEARN ABOUT BSD
quotacheck
QUOTACHECK(8) System Manager's Manual QUOTACHECK(8)
NAME
quotacheck - filesystem quota consistency checker
SYNOPSIS
quotacheck [ -v ] filesystem ...
quotacheck [ -v ] -a
DESCRIPTION
Quotacheck examines each filesystem, builds a table of current disk usage, and compares this table against that recorded in the disk quota
file for the filesystem. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are
updated (the latter only occurs if an active filesystem is checked).
Available options:
-a If the -a flag is supplied in place of any filesystem names, quotacheck will check all the filesystems indicated in
/etc/fstab to be read-write with disk quotas.
-v quotacheck reports discrepancies between the calculated and recorded disk quotas.
Parallel passes are run on the filesystems required, using the pass numbers in /etc/fstab in an identical fashion to fsck(8).
Normally quotacheck operates silently.
Quotacheck expects each filesystem to be checked to have a quota files named quotas located at the root of the associated file system.
These defaults may be overridden in /etc/fstab. If a file is not present, quotacheck will create it.
Quotacheck is normally run at boot time from the /etc/rc.local file, see rc(8), before enabling disk quotas with quotaon(8).
Quotacheck accesses the raw device in calculating the actual disk usage for each user. Thus, the filesystems checked should be quiescent
while quotacheck is running.
FILES
quotas at the filesystem root
/etc/fstab default filesystems
BUGS
The quotas file may be named arbitrarily but must reside in the filesystem for which it contains quota information. Quotacheck will give
the error:
%s dev (0x%x) mismatch %s (0x%x)
if the quotas file is not in the filesystem being checked. This restriction is enforced by the kernel but may be lifted in the future.
SEE ALSO
quota(1), quotactl(2), fstab(5), edquota(8), fsck(8), quotaon(8), repquota(8)
HISTORY
The quotacheck command appeared in 4.2BSD.
4.2 Berkeley Distribution January 24, 1996 QUOTACHECK(8)