
Ubuntu日本語フォーラム

ログインしていません。
いつもお世話になってます.
11.04にアップデート後から,外付けのUSBハードディスクがマウントできなくなっています.
10.10からのアップデートだったのですが,どうにもマウントできなかったので,泣く泣く
11.04を新規インストールしたのですが,残念ながら結果は同じでした・・・
USBの外付けHDDの型番は,BuffaloのHD-H250U2です.
他のUSB機器(マウスやUSBメモリ)は今まで通り認識され,マウントされます.
USBポートを変えてつないでも,同じでした.
ubuntu起動後にUSBのHDDの電源を入れて記録されるsyslog.1の内容です.
May 8 00:15:19 ubuntu kernel: [ 224.537364] usb 2-1.3: new high speed USB device using ehci_hcd and address 10
May 8 00:15:19 ubuntu kernel: [ 224.696003] scsi13 : usb-storage 2-1.3:1.0
May 8 00:15:27 ubuntu kernel: [ 233.112545] scsi 13:0:0:0: Direct-Access USB-HS WDC WD2500BB-00R 0.01 PQ: 0 ANSI: 0
May 8 00:15:27 ubuntu kernel: [ 233.112904] sd 13:0:0:0: Attached scsi generic sg7 type 0
May 8 00:15:27 ubuntu kernel: [ 233.114668] sd 13:0:0:0: [sdg] 488397168 512-byte logical blocks: (250 GB/232 GiB)
May 8 00:15:27 ubuntu kernel: [ 233.116260] sd 13:0:0:0: [sdg] Write Protect is off
May 8 00:15:27 ubuntu kernel: [ 233.116262] sd 13:0:0:0: [sdg] Mode Sense: 0b 00 00 08
May 8 00:15:27 ubuntu kernel: [ 233.193858] usb 2-1.3: reset high speed USB device using ehci_hcd and address 10
May 8 00:15:43 ubuntu kernel: [ 248.270369] usb 2-1.3: device descriptor read/64, error -110
May 8 00:15:58 ubuntu kernel: [ 263.447266] usb 2-1.3: device descriptor read/64, error -110
May 8 00:15:58 ubuntu kernel: [ 263.623258] usb 2-1.3: reset high speed USB device using ehci_hcd and address 10
May 8 00:16:13 ubuntu kernel: [ 278.700879] usb 2-1.3: device descriptor read/64, error -110
May 8 00:16:28 ubuntu kernel: [ 293.882311] usb 2-1.3: device descriptor read/64, error -110
May 8 00:16:28 ubuntu kernel: [ 294.058460] usb 2-1.3: reset high speed USB device using ehci_hcd and address 10
May 8 00:16:33 ubuntu kernel: [ 299.078876] usb 2-1.3: device descriptor read/8, error -110
May 8 00:16:38 ubuntu kernel: [ 304.199418] usb 2-1.3: device descriptor read/8, error -110
May 8 00:16:39 ubuntu kernel: [ 304.375437] usb 2-1.3: reset high speed USB device using ehci_hcd and address 10
May 8 00:16:44 ubuntu kernel: [ 309.395820] usb 2-1.3: device descriptor read/8, error -110
May 8 00:16:49 ubuntu kernel: [ 314.516284] usb 2-1.3: device descriptor read/8, error -110
May 8 00:16:49 ubuntu kernel: [ 314.620755] sd 13:0:0:0: Device offlined - not ready after error recovery
May 8 00:16:49 ubuntu kernel: [ 314.620805] usb 2-1.3: USB disconnect, address 10
May 8 00:16:49 ubuntu kernel: [ 314.620842] sd 13:0:0:0: [sdg] Asking for cache data failed
May 8 00:16:49 ubuntu kernel: [ 314.620848] sd 13:0:0:0: [sdg] Assuming drive cache: write through
May 8 00:16:49 ubuntu kernel: [ 314.621131] sd 13:0:0:0: [sdg] READ CAPACITY failed
May 8 00:16:49 ubuntu kernel: [ 314.621141] sd 13:0:0:0: [sdg] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
May 8 00:16:49 ubuntu kernel: [ 314.621146] sd 13:0:0:0: [sdg] Sense not available.
May 8 00:16:49 ubuntu kernel: [ 314.621200] sd 13:0:0:0: [sdg] Asking for cache data failed
May 8 00:16:49 ubuntu kernel: [ 314.621208] sd 13:0:0:0: [sdg] Assuming drive cache: write through
May 8 00:16:49 ubuntu kernel: [ 314.621213] sdg: detected capacity change from 250059350016 to 0
May 8 00:16:49 ubuntu kernel: [ 314.621383] sd 13:0:0:0: [sdg] READ CAPACITY failed
May 8 00:16:49 ubuntu kernel: [ 314.621389] sd 13:0:0:0: [sdg] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
May 8 00:16:49 ubuntu kernel: [ 314.621394] sd 13:0:0:0: [sdg] Sense not available.
May 8 00:16:49 ubuntu kernel: [ 314.621443] sd 13:0:0:0: [sdg] Asking for cache data failed
May 8 00:16:49 ubuntu kernel: [ 314.621449] sd 13:0:0:0: [sdg] Assuming drive cache: write through
May 8 00:16:49 ubuntu kernel: [ 314.621453] sd 13:0:0:0: [sdg] Attached SCSI disk
May 8 00:16:49 ubuntu udevd-work[5102]: inotify_add_watch(6, /dev/sdg, 10) failed: No such file or directory
May 8 00:16:49 ubuntu kernel: [ 314.724415] usb 2-1.3: new high speed USB device using ehci_hcd and address 11
このように,認識しようとはしているようなのですが,エラーが生じてマウントできない状態です.
また,この状態でのfdisk -lの結果です.
ディスク /dev/sda: 1000.2 GB, 1000204886016 バイト ヘッド 255, セクタ 63, シリンダ 121601 Units = シリンダ数 of 16065 * 512 = 8225280 バイト セクタサイズ (論理 / 物理): 512 バイト / 512 バイト I/O size (minimum/optimal): 512 bytes / 512 bytes ディスク識別子: 0xb686634f デバイス ブート 始点 終点 ブロック Id システム /dev/sda1 * 1 13 102400 7 HPFS/NTFS パーティション 1 は、シリンダ境界で終わっていません。 /dev/sda2 13 13068 104858624 7 HPFS/NTFS /dev/sda3 13068 121601 871797760 7 HPFS/NTFS 警告: GPT (GUID パーティションテーブル) が '/dev/sdb' に検出されました! この fdisk ユーティリティは GPT をサポートしません。GNU Parted を使ってください。 ディスク /dev/sdb: 2000.4 GB, 2000398934016 バイト ヘッド 255, セクタ 63, シリンダ 243201 Units = シリンダ数 of 16065 * 512 = 8225280 バイト セクタサイズ (論理 / 物理): 512 バイト / 512 バイト I/O size (minimum/optimal): 512 bytes / 512 bytes ディスク識別子: 0x00000000 デバイス ブート 始点 終点 ブロック Id システム /dev/sdb1 1 243202 1953514583+ ee GPT
lsusbの内容を見ても,認識できている様子はありません.
どうしたら,外付けのHDDを今まで通りに使うことができるようになるでしょうか?
よろしくお願いします.
オフライン
USB接続HDD自体の異常、もしくは、PC側の異常の可能性は無いでしょうか。
別マシンや、問題となっているPCでLiveCDを試すなどして上記の可能性が排除できれば、
http://ubuntuforums.org/showpost.php?p=7351957&postcount=12
https://answers.launchpad.net/ubuntu/+question/4272
あたりで示されているワークアラウンドを試してみて下さい。
オフライン
お世話になります.
問題となっているPCはWindows7とのデュアルブートです.
Windows7では今まで通り認識され,使用することができています.
LiveCDも試してみます.
よろしくお願いします.
オフライン
LiveCDでの結果です。
11.04(LiveCD)では同じように、マウントできませんでした。
エラーのログも同様です。
10.10(LiveCD)では、すんなりマウントされました。
syslogです。
May 8 02:45:55 ubuntu kernel: [ 179.083342] usb 2-1.3: new high speed USB device using ehci_hcd and address 5
May 8 02:45:56 ubuntu kernel: [ 179.240850] scsi12 : usb-storage 2-1.3:1.0
May 8 02:46:04 ubuntu kernel: [ 187.515915] scsi 12:0:0:0: Direct-Access USB-HS WDC WD2500BB-00R 0.01 PQ: 0 ANSI: 0
May 8 02:46:04 ubuntu kernel: [ 187.517377] sd 12:0:0:0: Attached scsi generic sg7 type 0
May 8 02:46:04 ubuntu kernel: [ 187.519244] sd 12:0:0:0: [sdg] 488397168 512-byte logical blocks: (250 GB/232 GiB)
May 8 02:46:04 ubuntu kernel: [ 187.520999] sd 12:0:0:0: [sdg] Write Protect is off
May 8 02:46:04 ubuntu kernel: [ 187.521005] sd 12:0:0:0: [sdg] Mode Sense: 0b 00 00 08
May 8 02:46:04 ubuntu kernel: [ 187.521009] sd 12:0:0:0: [sdg] Assuming drive cache: write through
May 8 02:46:04 ubuntu kernel: [ 187.524988] sd 12:0:0:0: [sdg] Assuming drive cache: write through
May 8 02:46:04 ubuntu kernel: [ 187.524996] sdg: sdg1
May 8 02:46:04 ubuntu kernel: [ 187.531707] sd 12:0:0:0: [sdg] Assuming drive cache: write through
May 8 02:46:04 ubuntu kernel: [ 187.531714] sd 12:0:0:0: [sdg] Attached SCSI disk
May 8 02:46:05 ubuntu ntfs-3g[5276]: Version 2010.8.8 external FUSE 28
May 8 02:46:05 ubuntu ntfs-3g[5276]: Mounted /dev/sdg1 (Read-Write, label "HD-HU2", NTFS 3.1)
May 8 02:46:05 ubuntu ntfs-3g[5276]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=999,gid=999,dmask=0077,fmask=0177
May 8 02:46:05 ubuntu ntfs-3g[5276]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,relatime,fsname=/dev/sdg1,blkdev,blksize=4096,default_permissions
May 8 02:46:05 ubuntu ntfs-3g[5276]: Global ownership and permissions enforced, configuration type 1
May 8 02:46:30 ubuntu kernel: [ 214.025356] usb 1-1.3: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
11.04のバグでしょうか?
11.04固有の現象に思われます。
オフライン
どうやら11.04でなにかがエンバグしたようですね。
前述のワークアラウンドは少し情報が古く、同じ現象では無いかもしれませんが、試してみる価値はあるかと思います。
まだ未試行であれば、一度試してみて下さい。
オフライン
お世話になってます。
同じ状況での、バグ報告がLaunchpadにありましたので、報告いたします。
https://bugs.launchpad.net/ubuntu/+sour … bug/779735
修正するためのパッチがあるのですが、私には敷居が高く見送っております。
次のカーネルアップデートに盛り込まれたらいいのですが・・・
もし、盛り込まれなかった場合、上記のパッチを当てる方法は、どのようにしたらいいのでしょうか?
オフライン
http://d.hatena.ne.jp/adsaria/20081104/1225766991
「カーネルのソースコードの展開」まで進んで下さい。
「カーネルのコンパイル」の
root@ubuntu804:/usr/src# cd linux-source-2.6.24
まで進んでください。
--- usb-2.6.orig/drivers/scsi/sd.c
+++ usb-2.6/drivers/scsi/sd.c
@@ -1904,17 +1904,23 @@ sd_read_cache_type(struct scsi_disk *sdk
~(省略)~
if (scsi_status_is_good(res)) {
int offset = data.header_length + data.block_descriptor_length;
/usr/src# gedit
テキストエディタに貼り付けた上記を
/usr/src/linux-source-2.6.38/
に保存します。
名前は取り敢えず sd.patch
/usr/src/linux-source-2.6.24# patch -p 1 < sd.patch
完了です。
/usr/src/linux-source-2.6.38# cat -n drivers/scsi/sd.c | grep 1907
を実行して「int first_len;」が表示されるか確認して下さい。
/usr/src/linux-source-2.6.38# cat -n drivers/scsi/sd.c | grep 'int first_len;'
でも良いです。確認が取れたらカーネルのコンパイルを再開して完成したカーネルから起動します。
ソースのダウンロード、解凍、は時間が数分掛かるので途中で停止したりしないで下さい。
オフライン
hir0 さん による投稿:
http://d.hatena.ne.jp/adsaria/20081104/1225766991
「カーネルのソースコードの展開」まで進んで下さい。
「カーネルのコンパイル」の
root@ubuntu804:/usr/src# cd linux-source-2.6.24
まで進んでください。
リンク先の手順について…
日本の Ubuntu ユーザは何でもルート権限で作業したがる傾向があるようで,
// それは作法として推奨されていないはずなのですが --
検索で引っかかるカーネルコンパイルの手順はどれも /usr/src にカーネルソースを展開しています.
しかし,本家のヘルプ Kernel/Compile - Community Ubuntu Documentation には
sudo apt-get install linux-source device-tree-compiler # device-tree-compiler is only needed if you are targeting the PowerPC architecture
mkdir ~/src
cd ~/src
tar xjvf /usr/src/linux-source-<version-number-here>.tar.bz2
cd linux-source-<version-number-here>
とあり,Debian の 8.6. 新しいカーネルのコンパイル でも
以降では、あなたがマシン上で行動する自由があって、ホームディレクトリのどこかにカーネルソースを展開すると仮定します[27]。
(中略)
[27] 他にも、カーネルソースを展開してカスタムカーネルをビルドできる場所はありますが、特別なパーミッションを必要としないここが最も簡単です。
と,一般ユーザのホームディレクトリをカーネルソースの展開先とし,
ビルドしたカーネルイメージ等のインストール以外のほとんどの作業を,一般ユーザで行う手順が書かれています.
オフライン
hir0さん、einundzwanzighundertsechsさん、ありがとうございます。
次期カーネルアップデートまで待つつもりでしたが、時間がとれたのと、せっかく教えていただいたので、
パッチを当ててカーネルをコンパイルしてみました。
何回かエラーが出てコンパイルに失敗いたしましたが、最終的にはうまくいきました。
結果ですが、以前の10.10の時と同様に、外付けのUSBのHDDが認識されてマウントされました。
また、快適に使用できるようになり、ありがとうございました。
einundzwanzighundertsechsさんに教えていただいた、ユーザーのホームディレクトリで
管理者権限を使わないコンパイルも、同様に成功いたしましたので、報告いたします。
また何かあったら宜しくお願いします。
オフライン
僕も同じ問題に困っています。
Ubuntu 11.04に更新してから、buffalo HD-250が使えなくなっています。
dmesgを見ますと、同じエラーが出ます。
結果は、ノートパソコンでもデスクトップパソコンでも同じです。
試しに、Fedora 14をインストールしているUSBメモリーからパソコンを立ち上げて、HD-250を接続しました。
ディスクが正しく認識され、自動マウントにも成功しました。
以上ご参考まで。
オフライン
すみません。
UbuntuでUSB-HDDの問題を解決したい。 参考としてFedora 14では問題が出ない。
と言うのでしたらトピックの内容を実行しましたか?、結果どうなりましたか。辺りを。
Ubuntuで起こるUSB-HDDの問題はFedora 14では起こらない。 と言う参考事例。
と言うのでしたら別OS(Windows,Mac,Linux等)でUSB-HDDにアクセス出来る情報提供と言う事でしょうか。
後者でしたら遅れながらUbuntuも随時対応されていきますので(早ければアップデートで対応済かな)多分10月のリリース版では対応済なはずなので緊急お手軽を求む場合は情報提供を例に、別OSで対応して下さい。
オフライン