• ベストアンサー

quotacheck ができません!

最近、RedHatLinuxを7.0から7.2にバージョンを上げました。 すると、以前はできてた"quotacheck"コマンドの実行で エラーが出るようになりました。 パーティションの移動も同時にやったので、 なにが原因か分かりません。 エラーは以下のとおりです。 quotacheck: Cannot remount filesystem mounted on /var read-only so counted values might not be right. Please stop all programs writing to filesystem or use -m flag to force checking. 検索で調べてみましたが、解決できる情報はまだ見つかっていません。 http://www.linuxml.net/log/real/msg02937.html http://the.turbolinux.co.jp/archive/ml/users/msg11337.html よろしくお願いします。

質問者が選んだベストアンサー

  • ベストアンサー
  • nightowl
  • ベストアンサー率44% (490/1101)
回答No.2

パーティションを切るときに何か問題があったのかも? # /sbin/fdisk -l デバイス名(例えば /dev/hda1 とか /dev/sda1 など) の結果はどうでしょうか。

tokugawa15
質問者

補足

上記のコマンドを実行した結果、 "ディスク /dev/ida/c0d0p9: ヘッド 255, セクタ 32, シリンダ 1505 ユニット = シリンダ数 of 8160 * 512 バイト ディスク /dev/ida/c0d0p9 は正常な領域テーブルを含んでいません" というメッセージが出ます。 そういえば、パーティション作成のときに "ほにゃららに失敗しました"(すいません、正確には覚えていません) というメッセージが出たことを覚えていますが、 もしかしてそれが原因でしょうか? パーティションの移動の前にメーカーに問い合わせて 「fdiskコマンドでできますよ」と言われたので メッセージを気にせず使っているんですけど… (OSの再起動で解決されたのかなと思っていました) 追加の情報、よろしくお願いします。

その他の回答 (3)

  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.4

># man quotacheck >で見たところ、"-m"に関する説明がなかったので、 >実行をためらっていました。 わたしのman quotacheckにはありますので参考にして下さい。 quotacheck(8) NAME     quotacheck - scan a filesystem for disk usage, create,     check and repair quota files SYNOPSIS     quotacheck [ -gubcfinvdMmR ] [ -F quota-format ] -a filesystem -M This flag forces checking of filesystem in read- write mode if a remount fails. Do this only when you are sure no process will write to a filesystem while scanning. -m Don't try to remount filesystem read-only. See com- ment with option -M.

tokugawa15
質問者

お礼

-mオプションは、書き込み中は使用しない方がいいということですね。 機会をうかがって、再インストールするのが一番かもしれません。 ありがとうございました。

  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.3

>Please stop all programs writing to filesystem or use -m flag to force checking. quotacheckをどのように実行してるのですか? これくらいは質問に書きましょう。 メッセージにあるとおり、quotacheckに-mオプションをつけてみましたか?

tokugawa15
質問者

補足

クォータをユーザーのみで使用していまして、 いままで # quotacheck -uva で使っていました。(チェックは /var のみです) ご指摘のとおり"-m"をつけて実行しましたところ、 チェック自体は行なえました。 # man quotacheck で見たところ、"-m"に関する説明がなかったので、 実行をためらっていました。 この"-m"は、通常使用しても問題ないのでしょうか? 関連した情報を、よろしければお願いします。

  • nightowl
  • ベストアンサー率44% (490/1101)
回答No.1

とりあえず /var をアンマウントして fsck をかけてみたらどうですか?

tokugawa15
質問者

補足

/var は、デバイスが使用中との出力があり、 アンマウントできませんでした。 ちなみにOSの起動時には、/var は"clean"となっています。

関連するQ&A

  • MySQL 文のエラーにつきまして

    INSERT INTO toukou_table (username, shopname, taikenbi, shimei, minutes, price, repeat, hyouka, title, comment, flag) VALUES ('$username', '$shopname', '$taikenbi', '$shimei', '$minutes', '$price', '$repeat', '$hyouka', '$title', '$comment', '0'); 上記の文章で、 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'repeat, hyouka, title, comment, flag) VALUES('~', 'アロマフェアリー' at line 1 というエラーが出ますが、一見、どこがどう間違ってるのか、さっぱりわかりません。 PHPの変数の内容は事前にvar_dump()で確認済みで問題はありません。 DBのカラム名にも問題がありません。 どこがどう間違ってるのか、ご指摘お願い致します。

    • ベストアンサー
    • MySQL
  • CentOS 4.3 フリーズ後、起動時にGUI走らない

    # uname -r 2.6.9-34.0.2.EL # df -h Filesystem サイズ 使用 残り 使用% マウント位置 /dev/hda1 72G 3.5G 65G 6% / none 502M 0 502M 0% /dev/shm 今まで普通にGUIも起動していて、リモートからsshでログイン、sysreport打った時に反応なくなりました。 そこで、家に帰ってキーボード操作不可を確認後リセットボタンを押しました。 そしてboot中 You system appears to habe shut down unckeanly Press Y within 1 seconds to force file system integrity check... Checking root file system [ok] Remounting root filesystem in read-write mode: [ok] No Software RAID disks Setting up Logical Volume Management: [ok] Checking filesystems Mounting local filesystems: [ok] Enabling local filesystems: [ok] Enabling local filesystem quotas: [ok] Enabling swap space: [ok] ここで停止しています。現在1時間半ほどたっています。 サービスは稼働しているようでリモートログイン(SSH)は可能です。 (コンソールから操作できない) 現状は、ファイルシステムをチェックしている状態、という事でよいのですかね…?1時間以上変化がないので不安になっています。 一応SSHでコマンドラインな操作はできるのですが 現状を打破できる有用な手はありますでしょうか?

  • 英文翻訳をお願いします。

    At 08:00 the 53rd (Welsh) Division came under orders of Eastern Force, and Dobell received an appreciation from Dallas at 09:15. This stated that if the present positions of the 53rd (Welsh) and 54th (East Anglian) Divisions were to be maintained, the German and Ottoman occupation of Sheikh Abbas must be ended. This was confirmed by G. P. Dawnay, Brigadier General General Staff (BGGS), Eastern Force. Dallas suggested Sheikh Abbas might best be recaptured by Desert Column, as the 52nd (Lowland) Division was too far away. However, by 08:10 the Imperial Mounted Division had arrived back at Deir el Belah and the Anzac Mounted Division was marching via Abu Thirig past Hill 310 where Chauvel met Chetwode. Chetwode ordered the horses of both divisions to water and return to a position near El Dameita to support an attempt by the infantry to retake Ali Muntar. At 08:30 when the Anzac Mounted Division also arrived back at Deir el Belah, Chetwode took over command of the two mounted divisions from Chauvel.

  • 英文を日本語訳して下さい。

    Some infantry divisional commanders considered the artillery insufficient for the width of the proposed attack. They thought a more narrowly focused attack would make better use of the available artillery. Chetwode and Chauvel, "the two most experienced generals in the force", watched the extension of the Ottoman defences at Gaza with "some foreboding." They had seen the strength and determination of Ottoman defenders in entrenched positions at the Battle of Magdhaba and the Battle of Rafa. After receiving fresh information regarding Ottoman deployments on 10 April, Dobell modified his plan to incorporate a more flexible approach. While the first stage would remain unchanged, during the second stage of the battle he might attack directly by swinging his line slightly northeast, with only one division attacking Gaza to create a gap for Desert Column, depending on whether the hostile Atawineh defences were reinforced by units from the Hareira detachment. Or he might send most of his force to the coastal side of Gaza to make an attack there. By 16 April Murray had moved his advanced GHQ EEF in a railway train, from El Arish to Khan Yunis, and was in telephone communication with Dobell's Eastern Force battle headquarters at Deir el Belah, 5 miles (8.0 km) south of the Wadi Ghuzzee. Meanwhile, Chetwode moved his Desert Column headquarters from near In Seirat to Tel el Jemmi. Just after 19:00, the infantry divisions marched towards the Wadi Ghuzzee crossings, while the Anzac Mounted Division left Deir el Belah at 18:30 with the New Zealand Mounted Brigade leading the night march. At 04:30 on 17 April the Canterbury Mounted Rifles Regiment led the way across the Wadi Ghuzzee at the Shellal ford, followed by the remainder of the Anzac Mounted Division.

  • 日本語訳をお願いします><!

    “In the little Crimson Manual it's written plain and clear/That who would wear the scarlet coat shall say good-bye to fear:/Shall be a guardian of the right,a sleuth-hound of the trailー/In the little Crimson Manual there's no such word as“fail.”Only the Canadian Mounties could possiby inspire such poetry,and so they did,in these lines from Rfobert Service's “Clancy of the Mounted Police."But then,no police force in the world possesses as romantic a history as the legendary Royal Canadian Mounted Police.The Royal Canadian Mounted Police began as the Northwest Mounted Police.Their mission is to tame the west.To their eternal credit they did it wisely and well.During the first years of their existence the Mounties used negotiation not force of arms to enforce the law on the vast frontier.The RCMP training center at Regina,Saskatchewan instills the recruits with the values that benefits a symbol of national pride.The RCMP still drills Mounties in the century old exhibitions of horsemanship known as the musical ride.“I think the biggest satisfaction of being part of the musical ride has to do with the look on people's faces when you are performing.Especially when we come to near the end of the ride when the charge is about to begin as we head at full gallop towards the crowd some of the people start to scatter and we come to a dead stop and they all ‘oh!.'”

  • `./configure` の次に `make` ができない

    xautoclick というマウスのクリック連打ソフトをインストールするため、下記のサイトから .tar.gz 形式のアーカイブをダウンロードしました。 http://xautoclick.sourceforge.net/ そしてデスクトップ上で展開し、同梱の INSTALL ドキュメントに従ってシェルから (root でログインした後に) `./configure` と入力しました。 次に `make` と入力したのですが、 「make: `all' に対して行うべき事はありません.」 というエラーメッセージが表示され、インストールすることできません。 以下が、シェルの表示メッセージです。 ---------- debian:/home/user/Desktop/xautoclick-0.19-src# ./configure Checking for c compiler ... gcc Checking for c++ compiler ... can't find g++ Checking for gcc as c++ compiler ... no, disabling compilation of all c++ code Checking for GNU Make ... yes, using make Checking for extra headers ... no Checking for extra libraries ... no Checking for gcc support of -MM option ... yes Checking for inttypes.h ... no Checking for stdint.h ... no Checking for unistd.h ... no Checking for malloc.h ... no Checking for X11 header presence ... not found (check if the dev(el) packages are installed Checking for X11 ... no Checking for XTest extension ... no No X11 found. Not building anything that depends on it Debug symbols disabled. All compiler warnings disabled. Cleaning up source tree ... done Generating config.mak ... done. aAutoClick : no cAutoClick : no gAutoClick : no gAutoClick2 : no qtAutoClick : no Installation to /usr/local Now type 'make' to build. debian:/home/user/Desktop/xautoclick-0.19-src# make make: `all' に対して行うべき事はありません. ---------- `./configure` のところで失敗しているようなのですが、何を改善すればよいのでしょうか? "Checking for..." のところで "no" と表示されたものは、インストールしなければならないということなのでしょうか? ご教示ください。宜しくお願い致します。

  • debian ブート時 fsck エラー

    debian etch です。 突然、ブート時に以下のようなエラーがでるようになりました。 fsck.ext3: No such file or directory while trying to open /dev/hda1 /dev/hda1: The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> .... # e2fsck -b 8193 /dev/hda1 を実行しても、上記と同じエラーが出ます。 ファイルシステムは ext3 なのですが、どうすればよいのでしょう? また、原因は何なのでしょうか? よく分からないので、教えてください。

  • GUIが起動しなくなりました。(エラーが出ます)

    はじめまして。 DynaBookPX200 で Vine Linux 3.2 を使っています。 今までは、GUI で普通に起動していたのですが、 先日、マウスが動かなくなり、電源コードをそのまま抜いてしまったところ、次から GUI が起動しなくなってしまいました。 症状は以下の通りです。 電源を入れると TOSHIBA のロゴが表示され、その後、Vine Linux の起動が始まります。そしてあるところまで進むと、止まってしまいます。 止まる直前に画面に表示されている文字を以下に記載します。 (スクロールして画面から消えてしまった部分は省略しています。) Mounting proc filesystem :      [ OK ] Unmounting initrd :          [ OK ] Loading SCSI module (off) :      [ OK ] Configuring kernel parameters :    [ OK ] Setting clock (localtime) : Sat Jun 6 15:17:59 JST 2009 [ OK ] Loading default keymap (jp106) :   [ OK ] Activating swap partitions :     [ OK ] Setting hostname ***.***.***.*** :  [ OK ] Mounting USB filesystem :       [ OK ] Your system appears to have shut down uncleanly Press Y within 1 seconds to force file system integrity check... Checking root filesystem / contains a file system with errors, check forced. / : Inodes that were part of a corrupted orphan linked list found. / : UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.      (i.e., without -a or -p options)                    [FAILED] *** An error occured during the file system check. *** Dropping you to a shell; the system will reboot *** when you leave the shell. Give root password for maintenance (or type Control-D to continue): 以上です。最後の行の : の後にカーソルが点滅し、 そこで root のパスワードを入力すると、コマンドプロンプトが起動します。コマンドプロンプトの使い方はよくわからないのですが、ls や cd といったコマンドは正常に機能していました。 コマンドプロンプトを exit で抜けると、再起動してまた上記と 同じ画面が出て、これが繰り返されます。 このような感じで、GUI が起動しなくなってしまいました。 表示されているエラーは、日本語にすると以下のようなものです。 「前回、システムを正常終了しなかった」 「ファイルシステムをチェックしたら、エラーが見つかった」 何かのファイルが壊れてしまったのでしょうか。 どなたか原因などお詳しい方いらっしゃいましたら ご教授頂けないでしょうか。

  • PHPでDBの複数行更新について

    はじめまして、PHPを最近使い始めました初心者です。 [環境] PHP: 5.4.7 DB: SQLite 3.7.15.2 a  OS: Windows 7 DB上のテーブルへ複数行を挿入するソースを書いてますが 下記の文法エラーとなり行き詰っています。 [配列データとソース] Array ( [0] => Array ( [0] => 1359904500 [1] => 1359905400 [2] => 150 ) [1] => Array ( [0] => 1359990900 [1] => 1359991800 [2] => 150 ) [2] => Array ( [0] => 1360077300 [1] => 1360078200 [2] => 150 ) [3] => Array ( [0] => 1360163700 [1] => 1360164600 [2] => 150 ) 以下100件ほど続きます $sql1 = "INSERT INTO aaa (id,sstamp,estamp,data,flag) VALUES " ; $flag = 1; $count = count($time_array) ; for ( $i=1; $i< $count; $i++ ) { $sql1.= "(null,'".$time_array[$i][0]."',"."'".$time_array[$i][1]."',"."'".$time_array[$i][2]."',"."'".$flag."')," ; } $sql1 = substr($sql1, 0, -1) ; var_dump($sql1) ; $result = $db->query($sql1) ; [エラー] Warning: SQLite3::query(): Unable to prepare statement: 1, near ",": syntax error var_dumpでsql作成用変数($sql1)を見てみると問題ないように見えました。 解せないのは、変数内容をsqliteのコマンドラインへコピぺすると 正常に挿入できてしまいました。また配列を一つにしてみるとエラーなくDB挿入できました。 これよりSQL複数行挿入のvalue以下の記述が怪しいと思い、確認しましたが (aa, bb, cc), (dd, ee, ff)になっているようと思えます。 どこに問題があるかご教示をお願いいたします。

    • 締切済み
    • PHP
  • 起動時filesystemチェック時のエラー

    TurboLinux10D起動時のfilesystemチェック時?にエラーが発生して以下の表示が出るようになってしまいました。 なお、以下の英文で一番左の文字は途切れてて読めなかったものを想像で補っています。 (ディスプレイの水平表示位置の調節ができない状態なもので) sck.et2/: The superblock could not be read or does not describe a correct ext2 filsystem. If the device is valid and it really contains an ext2 filsystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> Is a directory while trying to open/ NG *** An error occurred during the file system check. *** Dropping you to a shell; the system will reboot *** when you leave the shell. ?ive root password for maintenance (or type Control-D to continue): とりあえずパスワードを入力して、e2fsckコマンドを実行してみたのですが、芳しくありません。 長い時間かけてチェックしてくれたようには見えますが。 必要なデータは別マシンのセカンダリに繋いでマウントすることで回収したのですが、 できればこのHDDも正常動作するように復旧したいです。 気がついたらこの状態だったもので、何をした後この状態になったのかはわかりません。 「何をするとこのようなメッセージが出て起動できなくなってしまうのか」と、 「この状態から復旧するにはどうしたらよいのか」について、 わかる方いましたらよろしくお願いします。