1 huangjacky@huangjacky-laptop:~$ sudo fdisk -
l
2 [sudo] password
for huangjacky:
3 omitting empty partition (5
)
4
5 Disk /dev/sda: 500.1 GB, 500107862016
bytes
6 255 heads, 63 sectors/track, 60801 cylinders, total 976773168
sectors
7 Units = sectors of 1 * 512 = 512
bytes
8 Sector size (logical/physical): 512 bytes / 512
bytes
9 I/O size (minimum/optimal): 512 bytes / 512
bytes
10 Disk identifier: 0x95b895b8
11
12 Device Boot Start
End Blocks Id System
13 /dev/sda1 * 63 102414374 51207156 7 HPFS/NTFS/
exFAT
14 /dev/sda2 102414436 976768064 437176814+
f W95 Ext'd (LBA)
15 /dev/sda5 102414438 348176744 122881153+ 7 HPFS/NTFS/
exFAT
16 /dev/sda6 348176808 593939114 122881153+
b W95 FAT32
17 /dev/sda7 593939178 802671659 104366241 7 HPFS/NTFS/
exFAT
18 /dev/sda8 802671723 874032389 35680333+ 7 HPFS/NTFS/
exFAT
19 /dev/sda9 874032453 976768064 51367806 7 HPFS/NTFS/
exFAT
20
21 Disk /dev/sdb: 80.0 GB, 80026361856
bytes
22 255 heads, 63 sectors/track, 9729 cylinders, total 156301488
sectors
23 Units = sectors of 1 * 512 = 512
bytes
24 Sector size (logical/physical): 512 bytes / 512
bytes
25 I/O size (minimum/optimal): 512 bytes / 512
bytes
26 Disk identifier: 0xe445604b
27
28 Device Boot Start
End Blocks Id System
29 /dev/sdb1 * 2048 148301823 74149888 83
Linux
30 /dev/sdb2 148303870 156299263 3997697 5
Extended
31 /dev/sdb5 148303872 156299263 3997696 82 Linux swap / Solaris
shel l脚本需要注意的地方就是if这个条件这里[]和then要是在同一行那么就得加上;,还有就是 中间的判断要和中括号有空格,比如[ 判断条件 ],有一次我就是少了个空格,代码一直错,还找不到问题在什么地方。
1 huangjacky@huangjacky-laptop:~$ sudo sh ~/game/
mountwin.sh
2 mount or umount win disk?please type m/
u
3 m
4 check and create mount directory!
5 start mount win disk!!
6 mount over!Have fun