linux挂载U盘

liweihui@liweihui-desktop:/$ sudo fdisk -l
[sudo] password for liweihui: 

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9324    74894998+  83  Linux
/dev/sda2            9325        9726     3229065    5  Extended
/dev/sda5            9325        9726     3229033+  82  Linux swap / Solaris

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8db118c3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       19457   156288321    7  HPFS/NTFS

liweihui@liweihui-desktop:/$ sudo mount -t auto -o iocharset=cp936 /dev/sdb1 /mnt/usb/
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sdb1': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by
          clicking on the 'Safely Remove Hardware' icon in the Windows
          taskbar then shutdown Windows cleanly.

Choice 2: If you don't have Windows then you can use the 'force' option for
          your own responsibility. For example type on the command line:

            mount -t ntfs-3g /dev/sdb1 /mnt/usb/ -o force

    Or add the option to the relevant row in the /etc/fstab file:

            /dev/sdb1 /mnt/usb/ ntfs-3g force 0 0
liweihui@liweihui-desktop:/$ sudo mkdir /mnt/usb
liweihui@liweihui-desktop:/$ sudo mount -t ntfs-3g  /dev/sdb1 /mnt/usb/ -o force

你可能感兴趣的:(windows,linux,Solaris)