linux挂载u盘windows分区

查看硬件系统磁盘情况:

很明显sda文件夹下有9个分区,sdb下有一个u盘

root@springwater-Aspire-4743:/mnt# cat /proc/partitions 
major minor  #blocks  name

   8        0  312571224 sda
   8        1     102400 sda1
   8        2   41841664 sda2
   8        3  122045805 sda3
   8        4          1 sda4
   8        5   51200000 sda5
   8        6   30720000 sda6
   8        7     999424 sda7
   8        8    1998848 sda8
   8        9   63648768 sda9
  11        0    1048575 sr0
   8       16    3915776 sdb
   8       17    3772416 sdb1


查看硬盘分区,很明显sda1应该是window7特意搞得一个分区B盘。我也不知道他的作用,貌似可以删除。

sda2为C盘,sda3为D盘,sda5为E盘,sda6为F盘,之后的为linux系统的文件系统


root@springwater-Aspire-4743:/mnt# fdisk -l /dev/sda

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x2432ad3e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848    83890175    41841664    7  HPFS/NTFS/exFAT
/dev/sda3        83891430   327983039   122045805    7  HPFS/NTFS/exFAT
/dev/sda4       327999486   625141759   148571137    f  W95 Ext'd (LBA)
/dev/sda5       327999488   430399487    51200000    7  HPFS/NTFS/exFAT
/dev/sda6       430401536   491841535    30720000    7  HPFS/NTFS/exFAT
/dev/sda7       491843584   493842431      999424   83  Linux
/dev/sda8       493844480   497842175     1998848   82  Linux swap / Solaris
/dev/sda9       497844224   625141759    63648768   83  Linux




挂载u盘到/mnt/ust

root@springwater-Aspire-4743:/mnt# cat mountUsb.sh 
#fat32文件系统
mount -t vfat /dev/sdb1 /mnt/usb



挂载windows分区到/mnt

root@springwater-Aspire-4743:/mnt# vi mountUsb.sh 
root@springwater-Aspire-4743:/mnt# cat mountWindow.sh 
mount -t ntfs /dev/sda2 /mnt/winC
mount -t ntfs /dev/sda3 /mnt/winD
mount -t ntfs /dev/sda4 /mnt/winE
mount -t ntfs /dev/sda6 /mnt/winF



你可能感兴趣的:(linux挂载u盘windows分区)