USBドライブをマウントできません。 [閉じる]

USBドライブをマウントできません。 [閉じる]

Linuxを使った初日ですが、USBドライブをマウントする方法がわかりません。接続してfdisk -l位置をつかんで使用しました。ところで入力してみるとmount /dev/sda1sda1が存在しないと浮かびます。

root@kali:/media# fdisk -l

Disk /dev/sda: 62.9 GB, 62932647936 bytes
255 heads, 63 sectors/track, 7651 cylinders, total 122915328 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: 0x73876c0c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   122914815    61456384    b  W95 FAT32
root@kali:/media# mount /dev/sda1
mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab
root@kali:/media# 

私は何が間違っていましたか?

ベストアンサー1

man mount説明の要約セクションなど、さまざまな方法でマウントを呼び出すことができます。

 mount [-lhV]

 mount -a [-fFnrsvw] [-t vfstype] [-O optlist]

 mount [-fnrsvw] [-o option[,option]...]  device|dir

 mount [-fnrsvw] [-t vfstype] [-o options] device dir

同じページの説明セクションには次のようにman指定されています。

 If only directory or device is given, for example:

        mount /dir

 then mount looks for a mountpoint and if not found then for a device in
 the /etc/fstab file

1つの引数のみを提供するため、fileで検索し、そのエントリを見つけることができず、mount文句を言います。/dev/sda1/etc/fstab

次の項目に入力する/etc/fstabか使用する必要があります。

 mount /dev/sda1 /media/sda1

/media/sda1既存のディレクトリがあり、mountUSBドライブの形式を認識しているとします(を使用して指定しない場合-t)。

Kali Linuxがあまりにも親切でドライブを接続すると、自動的にドライブをマウントしないという事実に少し驚きました。

おすすめ記事