
ハードドライブの 1 つをマウントしようとすると、ハードドライブのフォルダーが見つかりません。
これはコマンドの出力ですdf
:
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 33000428 119124 32881304 1% /
none 33000428 119124 32881304 1% /
198.27.85.63:/home/pub/rescue.v7 886788312 250295096 591423904 30% /nfs
198.27.85.63:/home/pub/pro-power 886788312 250295096 591423904 30% /power
198.27.85.63:/home/pub/commonnfs 886788312 250295096 591423904 30% /common
tmpfs 10240 204 10036 2% /dev
tmpfs 6600088 72 6600016 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 13200160 0 13200160 0% /run/shm
これは、fdisk -l コマンドを実行すると発生します。
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 3907029167 1953514583+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 3907029167 1953514583+ ee GPT
Disk /dev/md3: 1978.9 GB, 1978886193152 bytes
2 heads, 4 sectors/track, 483126512 cylinders, total 3865012096 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md3 doesn't contain a valid partition table
Disk /dev/md2: 21.0 GB, 20970405888 bytes
2 heads, 4 sectors/track, 5119728 cylinders, total 40957824 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md2 doesn't contain a valid partition table
/dev/sda1
コマンドを使用してハードドライブをマウントしようとすると、mount -o barrier=0 /dev/sda1
次のメッセージが表示されます。
mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab
これを修正して、すべてのデータをバックアップするにはどうすればよいですか?
/dev/sdb3 をマウントしようとすると、次のエラーが発生します。
mount: unknown filesystem type 'linux_raid_member'
その後、コマンドを使用しようとしましたmdadm --assemble --run /mnt /dev/sdb3
が、次のような結果が表示されます:
mdadm: /dev/sdb3 is busy - skipping
これをどうすれば修正できますか?
編集 これは私が使用した出力ですcat /proc/mdstat
md2 : active raid1 sda2[0] sdb2[1]
20478912 blocks [2/2] [UU]
md3 : active raid1 sda3[0] sdb3[1]
1932506048 blocks [2/2] [UU]
unused devices: <none>
答え1
最初の質問について:
コマンド mount -o barrier=0 /dev/sda1 を使用して /dev/sda1 ハード ドライブをマウントしようとすると、次のメッセージが表示されます。
mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab
これを修正して、すべてのデータをバックアップするにはどうすればよいですか?
答えはmount
、マウントポイント/etc/fstab
またはのいずれかで が/etc/mtab
設定されていますが、 には設定されていません。コマンドライン/dev/sda1
でマウントポイント(空のディレクトリでも問題ありません)を指定できます。例:mount
mkdir /mnt/hd
mount -o barrier=0 /dev/sda1 /mnt/hd
これが成功した場合は、ディレクトリを指定せずにマウントできるように構成設定を追加できます/etc/fstab
(マウントは fstab を読み取り、構成されたものを使用します)。また、そのパーティションの起動時の自動マウントを設定することもできます。
2番目の質問について:
/dev/sdb3 をマウントしようとすると、次のエラーが発生します。
mount: unknown filesystem type 'linux_raid_member'
次に、コマンド mdadm --assemble --run /mnt /dev/sdb3 を使用しようとしましたが、次のような結果が表示されます。
mdadm: /dev/sdb3 is busy - skipping
これをどうすれば修正できますか?
MD アレイの一部であるパーティションをマウントしないでください。に従って、対応する RAID デバイス ( または ) をマウントする必要があります。/dev/md2
この場合も、空のディレクトリがマウント ポイントとして機能します。/dev/md3
/proc/mdstat
mkdir /mnt/raid2
mount /dev/md2 /mnt/raid2
以前と同様に、ファイルにエントリを設定し/etc/fstab
、コマンドでディレクトリを省略したりmount
、システム起動時に自動マウントのメリットを享受したりすることができます。