Chinaunix首页 | 论坛 | 博客
  • 博客访问: 713370
  • 博文数量: 235
  • 博客积分: 4309
  • 博客等级: 中校
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 11:25
个人简介

If you don\\\\\\\\\\\\\\\'t wanna do it, you find an EXCUSE; if you do, you\\\\\\\\\\\\\\\'ll find a WAY :-)

文章分类

全部博文(235)

文章存档

2014年(3)

2013年(2)

2012年(31)

2011年(199)

分类: BSD

2012-08-31 16:18:53

目前需求: 分割移动硬盘,并能够拷贝超过5GB大小的单个文件; 该硬盘长期作用于FreeBSD && MS WINDOWS ..
分区方案: 2分区 (FAT32 + FreeBSD)
分区大小: 1/2 Size /Partition


  1. ko# dd if=/dev/zero of=/dev/da0 bs=1k count=1 # 跟移动硬盘打个招呼说:“表妹,跟我走吧!” $_$
  2. ko# fdisk -BI da0 # 其实是聊聊天,明天会不会下雨呵? O_o



  1. ko# fdisk -u /dev/da0                   # 好了,聊天过后进入真题 ^_^
  2. ******* Working on device /dev/da0 *******
  3. parameters extracted from in-core disklabel are:
  4. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  5. Figures below won't work with BIOS for partitions not in cyl 1
  6. parameters to be used for BIOS calculations are:
  7. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  8. Do you want to change our idea of what BIOS thinks ? [n] n
  9. Media sector size is 512
  10. Warning: BIOS sector numbering starts with sector 1
  11. Information from DOS bootblock is:
  12. The data for partition 1 is:
  13. sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  14. start 63, size 976768002 (476937 Meg), flag 80 (active)
  15. beg: cyl 0/ head 1/ sector 1;
  16. end: cyl 384/ head 254/ sector 63
  17. Do you want to change it? [n] y
  18. Supply a decimal value for "sysid (165=FreeBSD)" [165]
  19. Supply a decimal value for "start" [63]
  20. Supply a decimal value for "size" [976768002] 488384064
  21. ================================================================
  22. > echo '976768002/2' |bc
  23. 488384001
  24. > echo '488384001+63' |bc
  25. 488384064
  26. ================================================================
  27. Explicitly specify beg/end address ? [n]
  28. sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  29. start 63, size 488384064 (238468 Meg), flag 80 (active)
  30. beg: cyl 0/ head 1/ sector 1;
  31. end: cyl 704/ head 128/ sector 63
  32. Are we happy with this entry? [n] y
  33. The data for partition 2 is:
  34. Do you want to change it? [n] y
  35. Supply a decimal value for "sysid (165=FreeBSD)" [0] 12
  36. Supply a decimal value for "start" [0] 488384127
  37. Supply a decimal value for "size" [0] 488383876
  38. ================================================================
  39. > echo '488384064+62' |bc
  40. 488384126
  41. > echo '976768002-488384126' |bc
  42. 488383876
  43. ================================================================
  44. fdisk: WARNING: partition does not end on a cylinder boundary
  45. fdisk: WARNING: this may confuse the BIOS or some operating systems
  46. Correct this automatically? [n] y
  47. fdisk: WARNING: adjusting size of partition to 488367873
  48. Explicitly specify beg/end address ? [n]
  49. sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
  50. start 488384127, size 488367873 (238460 Meg), flag 0
  51. beg: cyl 704/ head 129/ sector 1;
  52. end: cyl 383/ head 254/ sector 63
  53. Are we happy with this entry? [n] y
  54. The data for partition 3 is:
  55. Do you want to change it? [n]
  56. The data for partition 4 is:
  57. Do you want to change it? [n]
  58. Partition 1 is marked active
  59. Do you want to change the active partition? [n]
  60. We haven't changed the partition table yet. This is your last chance.
  61. parameters extracted from in-core disklabel are:
  62. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  63. Figures below won't work with BIOS for partitions not in cyl 1
  64. parameters to be used for BIOS calculations are:
  65. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  66. Information from DOS bootblock is:
  67. 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  68. start 63, size 488384064 (238468 Meg), flag 80 (active)
  69. beg: cyl 0/ head 1/ sector 1;
  70. end: cyl 704/ head 128/ sector 63
  71. 2: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
  72. start 488384127, size 488367873 (238460 Meg), flag 0
  73. beg: cyl 704/ head 129/ sector 1;
  74. end: cyl 383/ head 254/ sector 63
  75. 3:
  76. 4:
  77. Should we write new partition table? [n] y
对FreeBSD分区进行格式化:

  1. ko# newfs -U /dev/da0s1
  2. /dev/da0s1: 238468.8MB (488384064 sectors) block size 32768, fragment size 4096
  3. using 323 cylinder groups of 740.00MB, 23680 blks, 47360 inodes.
  4. with soft updates
  5. super-block backups (for fsck -b #) at:
  6. 192, 1515712, 3031232, 4546752, 6062272, 7577792, 9093312, 10608832, 12124352,
  7. 13639872, 15155392, 16670912, 18186432, 19701952, 21217472, 22732992,
  8. 24248512, 25764032, 27279552, 28795072, 30310592, 31826112, 33341632,
  9. 34857152, 36372672, 37888192, 39403712, 40919232, 42434752, 43950272,
  10. 45465792, 46981312, 48496832, 50012352, 51527872, 53043392, 54558912,
  11. 56074432, 57589952, 59105472, 60620992, 62136512, 63652032, 65167552,
  12. 66683072, 68198592, 69714112, 71229632, 72745152, 74260672, 75776192,
  13. 77291712, 78807232, 80322752, 81838272, 83353792, 84869312, 86384832,
  14. 87900352, 89415872, 90931392, 92446912, 93962432, 95477952, 96993472,
  15. 98508992, 100024512, 101540032, 103055552, 104571072, 106086592, 107602112,
  16. 109117632, 110633152, 112148672, 113664192, 115179712, 116695232, 118210752,
  17. 119726272, 121241792, 122757312, 124272832, 125788352, 127303872, 128819392,
  18. 130334912, 131850432, 133365952, 134881472, 136396992, 137912512, 139428032,
  19. 140943552, 142459072, 143974592, 145490112, 147005632, 148521152, 150036672,
  20. 151552192, 153067712, 154583232, 156098752, 157614272, 159129792, 160645312,
  21. 162160832, 163676352, 165191872, 166707392, 168222912, 169738432, 171253952,
  22. 172769472, 174284992, 175800512, 177316032, 178831552, 180347072, 181862592,
  23. 183378112, 184893632, 186409152, 187924672, 189440192, 190955712, 192471232,
  24. 193986752, 195502272, 197017792, 198533312, 200048832, 201564352, 203079872,
  25. 204595392, 206110912, 207626432, 209141952, 210657472, 212172992, 213688512,
  26. 215204032, 216719552, 218235072, 219750592, 221266112, 222781632, 224297152,
  27. 225812672, 227328192, 228843712, 230359232, 231874752, 233390272, 234905792,
  28. 236421312, 237936832, 239452352, 240967872, 242483392, 243998912, 245514432,
  29. 247029952, 248545472, 250060992, 251576512, 253092032, 254607552, 256123072,
  30. 257638592, 259154112, 260669632, 262185152, 263700672, 265216192, 266731712,
  31. 268247232, 269762752, 271278272, 272793792, 274309312, 275824832, 277340352,
  32. 278855872, 280371392, 281886912, 283402432, 284917952, 286433472, 287948992,
  33. 289464512, 290980032, 292495552, 294011072, 295526592, 297042112, 298557632,
  34. 300073152, 301588672, 303104192, 304619712, 306135232, 307650752, 309166272,
  35. 310681792, 312197312, 313712832, 315228352, 316743872, 318259392, 319774912,
  36. 321290432, 322805952, 324321472, 325836992, 327352512, 328868032, 330383552,
  37. 331899072, 333414592, 334930112, 336445632, 337961152, 339476672, 340992192,
  38. 342507712, 344023232, 345538752, 347054272, 348569792, 350085312, 351600832,
  39. 353116352, 354631872, 356147392, 357662912, 359178432, 360693952, 362209472,
  40. 363724992, 365240512, 366756032, 368271552, 369787072, 371302592, 372818112,
  41. 374333632, 375849152, 377364672, 378880192, 380395712, 381911232, 383426752,
  42. 384942272, 386457792, 387973312, 389488832, 391004352, 392519872, 394035392,
  43. 395550912, 397066432, 398581952, 400097472, 401612992, 403128512, 404644032,
  44. 406159552, 407675072, 409190592, 410706112, 412221632, 413737152, 415252672,
  45. 416768192, 418283712, 419799232, 421314752, 422830272, 424345792, 425861312,
  46. 427376832, 428892352, 430407872, 431923392, 433438912, 434954432, 436469952,
  47. 437985472, 439500992, 441016512, 442532032, 444047552, 445563072, 447078592,
  48. 448594112, 450109632, 451625152, 453140672, 454656192, 456171712, 457687232,
  49. 459202752, 460718272, 462233792, 463749312, 465264832, 466780352, 468295872,
  50. 469811392, 471326912, 472842432, 474357952, 475873472, 477388992, 478904512,
  51. 480420032, 481935552, 483451072, 484966592, 486482112, 487997632
对FAT32 分区进行格式化:

  1. ko# newfs_msdos /dev/da0s2
  2. /dev/da0s2: 488248576 sectors in 7628884 FAT32 clusters (32768 bytes/cluster)
  3. BytesPerSec=512 SecPerClust=64 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=488367873 FATsecs=59601 RootCluster=2 FSInfo=1 Backup=2
显示分区情况:

  1. ko# fdisk /dev/da0
  2. ******* Working on device /dev/da0 *******
  3. parameters extracted from in-core disklabel are:
  4. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  5. Figures below won't work with BIOS for partitions not in cyl 1
  6. parameters to be used for BIOS calculations are:
  7. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  8. Media sector size is 512
  9. Warning: BIOS sector numbering starts with sector 1
  10. Information from DOS bootblock is:
  11. The data for partition 1 is:
  12. sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  13. start 63, size 488384064 (238468 Meg), flag 80 (active)
  14. beg: cyl 0/ head 1/ sector 1;
  15. end: cyl 704/ head 128/ sector 63
  16. The data for partition 2 is:
  17. sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
  18. start 488384127, size 488367873 (238460 Meg), flag 0
  19. beg: cyl 704/ head 129/ sector 1;
  20. end: cyl 383/ head 254/ sector 63
  21. The data for partition 3 is:
  22. The data for partition 4 is:
挂载分区:

  1. ko# mount /dev/da0s1 /media/
  2. ko# mount_msdosfs /dev/da0s2 /mnt/
  3. mount_msdosfs: /dev/da0s2: Disk too big, try '-o large' mount option: Invalid argument
  4. ko# mount_msdosfs -o large /dev/da0s2 /mnt/
检查一下:

  1. ko# df
  2. Filesystem Size Used Avail Capacity Mounted on
  3. /dev/ada0p2 9.9G 649M 8.4G 7% /
  4. devfs 1.0k 1.0k 0B 100% /dev
  5. /dev/ada0p4 118G 27G 81G 25% /var
  6. /dev/ada0p5 2G 23M 1.8G 1% /tmp
  7. /dev/ada0p6 118G 46G 62G 43% /usr
  8. /dev/ada0p7 103G 64G 31G 67% /usr/home
  9. /dev/da0s1 229G 8.0k 210G 0% /media
  10. /dev/da0s2 232G 96k 232G 0% /mnt
  11. ko# gpart show da0
  12. => 63 976773105 da0 MBR (465G)
  13. 63 488384064 1 freebsd [active] (232G)
  14. 488384127 488367873 2 !12 (232G)
  15. 976752000 21168 - free - (10M)
HowTo: Mounting NTFS partition in write mode on FreeBSD

My brother's old laptop died and I got to keep its hard-drive. Being a Windows machine, it had a bunch of NTFS partitions.
So this post explains how to identify a NTFS partition, mount it as read-only and finally learn how to mount it in write mode.
I should mention that FreeBSD 7.4 was used but the same steps should apply to latter versions of the OS.

Physically attached the hard-drive (in my case I plugged an USB HDD) and have a look at /var/log/messages to identify the harddrive.

  1. # tail -n 20 /var/log/messages
  2. Jan 26 21:40:03 flumen kernel: da0: Fixed Direct Access SCSI-4 device
  3. Jan 26 21:40:03 flumen kernel: da0: 40.000MB/s transfers
  4. Jan 26 21:40:03 flumen kernel: da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C)
  5. Similar information can be collected from dmesg.
  6. # dmesg
  7. umass0: on uhub4
  8. da0 at umass-sim0 bus 0 target 0 lun 0
  9. da0: Fixed Direct Access SCSI-4 device
  10. da0: 40.000MB/s transfers
  11. da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C)
  12. Let's find out which is the NTFS partition:

  1. # fdisk /dev/da0
  2. ******* Working on device /dev/da0 *******
  3. parameters extracted from in-core disklabel are:
  4. cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl)
  5. Figures below won't work with BIOS for partitions not in cyl 1
  6. parameters to be used for BIOS calculations are:
  7. cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl)
  8. Media sector size is 512
  9. Warning: BIOS sector numbering starts with sector 1
  10. Information from DOS bootblock is:
  11. The data for partition 1 is:
  12. sysid 18 (0x12),(Compaq diagnostics)
  13. start 63, size 16611147 (8110 Meg), flag 0
  14. beg: cyl 0/ head 1/ sector 1;
  15. end: cyl 1023/ head 254/ sector 63
  16. The data for partition 2 is:
  17. sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
  18. start 16611210, size 117194175 (57223 Meg), flag 80 (active)
  19. beg: cyl 1023/ head 0/ sector 1;
  20. end: cyl 1023/ head 254/ sector 63
  21. The data for partition 3 is:
  22. sysid 15 (0x0f),(Extended DOS (LBA))
  23. start 133805385, size 100631160 (49136 Meg), flag 0
  24. beg: cyl 1023/ head 0/ sector 1;
  25. end: cyl 1023/ head 254/ sector 63
  26. The data for partition 4 is:


  1. Issuing the following command will mount a NTFS partition in read-only mode:
  2. # mount -t ntfs /dev/da0s2 /mnt/
  3. To be able to write into a NTFS partition it is required to install the sysutils/fuse-ntfs port:
  4. # cd /usr/ports/sysutils/fusefs-ntfs/ && make install clean
  5. If you use, as described in the man page, mount -t ntfs-3g an error will occurr:
  6. # mount -t ntfs-3g /dev/da0s2 /mnt/
  7. mount: /dev/da0s2 : Operation not supported by device
  8. To mount the NTFS partition in write mode issue:
  9. # ntfs-3g /dev/da0s2 /mnt/

  1. Let's make sure that the partition is mounted:
  2. # mount
  3. /dev/ad4s1a on / (ufs, local)
  4. devfs on /dev (devfs, local)
  5. /dev/ad4s1e on /tmp (ufs, local, soft-updates)
  6. /dev/ad4s1f on /usr (ufs, local, soft-updates)
  7. /dev/ad4s1d on /var (ufs, local, soft-updates)
  8. /dev/ad5s1d on /mnt/1 (ufs, local, soft-updates)
  9. /dev/fuse0 on /mnt/2 (fusefs, local, synchronous)


  1. > man ntfs-3g #contains some Linuxisms and as such read the man page with a grain of salt

将第二个分区改为NTFS:

  1. ko# fdisk -u /dev/da0
  2. ******* Working on device /dev/da0 *******
  3. parameters extracted from in-core disklabel are:
  4. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  5. Figures below won't work with BIOS for partitions not in cyl 1
  6. parameters to be used for BIOS calculations are:
  7. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  8. Do you want to change our idea of what BIOS thinks ? [n]
  9. Media sector size is 512
  10. Warning: BIOS sector numbering starts with sector 1
  11. Information from DOS bootblock is:
  12. The data for partition 1 is:
  13. sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  14. start 63, size 488384064 (238468 Meg), flag 80 (active)
  15. beg: cyl 0/ head 1/ sector 1;
  16. end: cyl 704/ head 128/ sector 63
  17. Do you want to change it? [n]
  18. The data for partition 2 is:
  19. sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
  20. start 488384127, size 488367873 (238460 Meg), flag 0
  21. beg: cyl 704/ head 129/ sector 1;
  22. end: cyl 383/ head 254/ sector 63
  23. Do you want to change it? [n] y
  24. Supply a decimal value for "sysid (165=FreeBSD)" [12] 7
  25. Supply a decimal value for "start" [488384127]
  26. Supply a decimal value for "size" [488367873]
  27. Explicitly specify beg/end address ? [n]
  28. sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
  29. start 488384127, size 488367873 (238460 Meg), flag 0
  30. beg: cyl 704/ head 129/ sector 1;
  31. end: cyl 383/ head 254/ sector 63
  32. Are we happy with this entry? [n] y
  33. The data for partition 3 is:
  34. Do you want to change it? [n]
  35. The data for partition 4 is:
  36. Do you want to change it? [n]
  37. Partition 1 is marked active
  38. Do you want to change the active partition? [n] n
  39. We haven't changed the partition table yet. This is your last chance.
  40. parameters extracted from in-core disklabel are:
  41. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  42. Figures below won't work with BIOS for partitions not in cyl 1
  43. parameters to be used for BIOS calculations are:
  44. cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  45. Information from DOS bootblock is:
  46. 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  47. start 63, size 488384064 (238468 Meg), flag 80 (active)
  48. beg: cyl 0/ head 1/ sector 1;
  49. end: cyl 704/ head 128/ sector 63
  50. 2: sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
  51. start 488384127, size 488367873 (238460 Meg), flag 0
  52. beg: cyl 704/ head 129/ sector 1;
  53. end: cyl 383/ head 254/ sector 63
  54. 3:
  55. 4:
  56. Should we write new partition table? [n] y
格式化 NTFS 分区:

  1. ko# mkntfs -Ffv /dev/da0s2
  2. Cluster size has been automatically set to 4096 bytes.
  3. Creating NTFS volume structures.
  4. Creating root directory (mft record 5)
  5. Creating $MFT (mft record 0)
  6. Creating $MFTMirr (mft record 1)
  7. Creating $LogFile (mft record 2)
  8. Creating $AttrDef (mft record 4)
  9. Creating $Bitmap (mft record 6)
  10. Creating $Boot (mft record 7)
  11. Creating backup boot sector.
  12. Failed to write to device /dev/da0s2.
  13. Couldn't write backup boot sector: Invalid argument
  14. Creating $Volume (mft record 3)
  15. Setting the volume dirty so check disk runs on next reboot into Windows.
  16. Creating $BadClus (mft record 8)
  17. Creating $Secure (mft record 9)
  18. Creating $UpCase (mft record 0xa)
  19. Creating $Extend (mft record 11)
  20. Creating system file (mft record 0xc)
  21. Creating system file (mft record 0xd)
  22. Creating system file (mft record 0xe)
  23. Creating system file (mft record 0xf)
  24. Creating $Quota (mft record 24)
  25. Creating $ObjId (mft record 25)
  26. Creating $Reparse (mft record 26)
  27. Syncing root directory index record.
  28. Syncing $Bitmap.
  29. Syncing $MFT.
  30. Updating $MFTMirr.
  31. Syncing device.
  32. mkntfs completed successfully. Have a nice day.
Tips

  1. As I found out, there’s two packages for working with NTFS — ntfs-3g, and ntfsprogs.
  2. And of course they are conflicting. let me explain.
  3. ntfsprogs contains old ntfsprogs, while ntfs-3g have pretty current ntfsprogs set
  4. (in FreeBSD world, 1 year old is not old at all).
  5. And culmination of whole ports system is that ntfsprogs contains patched and working mkntfs,
  6. while ntfs-3g maintainers don’t bother.
  7. That was a bit of my frustration and helplessness >_<
  8. Here’s guide how to format NTFS disk:
  9. # cd /usr/ports/sysutils/ntfsprogs && make
  10. # cd /usr/ports/sysutils/ntfsprogs/work/ntfsprogs-2.0.0/ntfsprogs
  11. ./mkntfs [NEEDED FLAGS FROM MAN] /dev/xx
  12. That’s it! Enjoy.

  1. > less /usr/local/share/doc/ntfs-3g/README.FreeBSD
  2. ==============================================================================
  3. NTFS-3G README for the FreeBSD port
  4. ==============================================================================
  5. 1. Introduction
  6. 2. Port specific notes
  7. 3. Mounting at startup with /etc/fstab
  8. 4. Ublio configuration
  9. 5. Known issues
  10. 6. Reporting bugs
  11. ==============================================================================
  12. 1. Introduction
  13. ==============================================================================
  14. ...
  15. ...
  16. ...



  1. Information from DOS bootblock is:
  2. 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  3. 2: sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
  4. 3: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
  5. 像这里的
  6. 165 是 FreeBSD
  7. 7 是 NTFS
  8. 12 是 FAT32
  9. 这是怎么知道的?有没有一个列表


  1. ko# less /usr/src/sbin/fdisk/fdisk.c
  2. /*
  3. * A list of partition types, probably outdated.
  4. */
  5. static const char *const part_types[256] = {
  6. [0x00] = "unused",
  7. [0x01] = "Primary DOS with 12 bit FAT",
  8. [0x02] = "XENIX / file system",
  9. [0x03] = "XENIX /usr file system",
  10. [0x04] = "Primary DOS with 16 bit FAT (< 32MB)",
  11. [0x05] = "Extended DOS",
  12. [0x06] = "Primary DOS, 16 bit FAT (>= 32MB)",
  13. [0x07] = "NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX",
  14. [0x08] = "AIX file system or SplitDrive",
  15. [0x09] = "AIX boot partition or Coherent",
  16. [0x0A] = "OS/2 Boot Manager, OPUS or Coherent swap",
  17. [0x0B] = "DOS or Windows 95 with 32 bit FAT",
  18. [0x0C] = "DOS or Windows 95 with 32 bit FAT (LBA)",
  19. [0x0E] = "Primary 'big' DOS (>= 32MB, LBA)",
  20. [0x0F] = "Extended DOS (LBA)",
  21. [0x10] = "OPUS",
  22. [0x11] = "OS/2 BM: hidden DOS with 12-bit FAT",
  23. [0x12] = "Compaq diagnostics",
  24. [0x14] = "OS/2 BM: hidden DOS with 16-bit FAT (< 32MB)",
  25. [0x16] = "OS/2 BM: hidden DOS with 16-bit FAT (>= 32MB)",
  26. [0x17] = "OS/2 BM: hidden IFS (e.g. HPFS)",
  27. [0x18] = "AST Windows swapfile",
  28. [0x1b] = "ASUS Recovery partition (NTFS)",
  29. [0x24] = "NEC DOS",
  30. [0x3C] = "PartitionMagic recovery",
  31. [0x39] = "plan9",
  32. [0x40] = "VENIX 286",
  33. [0x41] = "Linux/MINIX (sharing disk with DRDOS)",
  34. [0x42] = "SFS or Linux swap (sharing disk with DRDOS)",
  35. [0x43] = "Linux native (sharing disk with DRDOS)",
  36. [0x4D] = "QNX 4.2 Primary",
  37. [0x4E] = "QNX 4.2 Secondary",
  38. [0x4F] = "QNX 4.2 Tertiary",
  39. [0x50] = "DM (disk manager)",
  40. [0x51] = "DM6 Aux1 (or Novell)",
  41. [0x52] = "CP/M or Microport SysV/AT",
  42. [0x53] = "DM6 Aux3",
  43. [0x54] = "DM6",
  44. [0x55] = "EZ-Drive (disk manager)",
  45. [0x56] = "Golden Bow (disk manager)",
  46. [0x5c] = "Priam Edisk (disk manager)", /* according to S. Widlake */
  47. [0x61] = "SpeedStor",
  48. [0x63] = "System V/386 (such as ISC UNIX), GNU HURD or Mach",
  49. [0x64] = "Novell Netware/286 2.xx",
  50. [0x65] = "Novell Netware/386 3.xx",
  51. [0x70] = "DiskSecure Multi-Boot",
  52. [0x75] = "PCIX",
  53. [0x77] = "QNX4.x",
  54. [0x78] = "QNX4.x 2nd part",
  55. [0x79] = "QNX4.x 3rd part",
  56. [0x80] = "Minix until 1.4a",
  57. [0x81] = "Minix since 1.4b, early Linux partition or Mitac disk manager",
  58. [0x82] = "Linux swap or Solaris x86",
  59. [0x83] = "Linux native",
  60. [0x84] = "OS/2 hidden C: drive",
  61. [0x85] = "Linux extended",
  62. [0x86] = "NTFS volume set??",
  63. [0x87] = "NTFS volume set??",
  64. [0x93] = "Amoeba file system",
  65. [0x94] = "Amoeba bad block table",
  66. [0x9F] = "BSD/OS",
  67. [0xA0] = "Suspend to Disk",
  68. [0xA5] = "FreeBSD/NetBSD/386BSD",
  69. [0xA6] = "OpenBSD",
  70. [0xA7] = "NeXTSTEP",
  71. [0xA9] = "NetBSD",
  72. [0xAC] = "IBM JFS",
  73. [0xAF] = "HFS+",
  74. [0xB7] = "BSDI BSD/386 file system",
  75. [0xB8] = "BSDI BSD/386 swap",
  76. [0xBE] = "Solaris x86 boot",
  77. [0xBF] = "Solaris x86 (new)",
  78. [0xC1] = "DRDOS/sec with 12-bit FAT",
  79. [0xC4] = "DRDOS/sec with 16-bit FAT (< 32MB)",
  80. [0xC6] = "DRDOS/sec with 16-bit FAT (>= 32MB)",
  81. [0xC7] = "Syrinx",
  82. [0xDB] = "CP/M, Concurrent CP/M, Concurrent DOS or CTOS",
  83. [0xDE] = "DELL Utilities - FAT filesystem",
  84. [0xE1] = "DOS access or SpeedStor with 12-bit FAT extended partition",
  85. [0xE3] = "DOS R/O or SpeedStor",
  86. [0xE4] = "SpeedStor with 16-bit FAT extended partition < 1024 cyl.",
  87. [0xEB] = "BeOS file system",
  88. [0xEE] = "EFI GPT",
  89. [0xEF] = "EFI System Partition",
  90. [0xF1] = "SpeedStor",
  91. [0xF2] = "DOS 3.3+ Secondary",
  92. [0xF4] = "SpeedStor large partition",
  93. [0xFE] = "SpeedStor >1024 cyl. or LANstep",
  94. [0xFF] = "Xenix bad blocks table",
  95. };

FROM: 
阅读(5271) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~