LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1655|回复: 5

急需EXT4分区类型的ID!---已解决!

[复制链接]
发表于 2009-7-24 16:01:42 | 显示全部楼层 |阅读模式
急,误操作至分区表损坏。急需EXT4分区类型的ID!
我全部分区都为EXT4!
 楼主| 发表于 2009-7-24 16:17:04 | 显示全部楼层
放狗找了半天[color="Red"]找到!


ID Name Note
== ==== ====
00h empty [空]
01h DOS 12-bit FAT [MS DOS FAT12]
02h XENIX root file system [MS XENIX 根文件系统]
03h XENIX /usr file system (obsolete) [MS XENIX /usr 文件系统]
04h DOS 16-bit FAT (up to 32M) [MS DOS FAT16 支持32M以下的分区]
05h DOS 3.3+ extended partition [MS DOS 3.3以上的扩展分区]
06h DOS 3.31+ Large File System (16-bit FAT, over 32M) [MS DOS 3.31以上大文件系统,支持32M以上分区的FAT16]
07h QNX
07h OS/2 HPFS [IBM OS/2 高性能文件系统]
07h Windows NT NTFS [MS WindowsNT NT文件系统]
07h Advanced Unix
08h OS/2 (v1.0-1.3 only) [IBM OS/2 仅仅适用于 1.0-1.3版]
08h AIX bootable partition, SplitDrive [IBM AIX 引导分区,分割驱动器]
08h Commodore DOS
08h DELL partition spanning multiple drives [DELL 跨驱动器分区]
09h AIX data partition [IBM AIX数据分区]
09h Coherent filesystem [Coherent 文件系统]
0Ah OS/2 Boot Manager [IBM OS/2 引导管理器分区]
0Ah OPUS
0Ah Coherent swap partition [Coherent 交换分区]
0Bh Windows 95 with 32-bit FAT [MS Windows 95 FAT32]
0Ch Windows 95 with 32-bit FAT (using LBA-mode INT 13 extensions) [MS Windows 95 FAT32 使用LBA模式INT13扩展]
0Eh LBA VFAT (same as 06h but using LBA-mode INT 13) [LBA VFAT 类似06h但使用LBA模式INT13]
0Fh LBA VFAT (same as 05h but using LBA-mode INT 13) [LBA VFAT 类似06h但使用LBA模式INT13]
10h OPUS
11h OS/2 Boot Manager hidden 12-bit FAT partition [IBM OS/2 引导管理器的FAT12隐藏分区]
12h Compaq Diagnostics partition [Compaq 诊断分区]
12h Unkown hidden FAT partition
14h (using Novell DOS 7.0 FDISK to delete Linux Native part) [使用Novell DOS 7.0的FDISK删除Linux原生分区]
14h OS/2 Boot Manager hidden sub-32M 16-bit FAT partition [IBM OS/2 引导管理器的小于等于32M的FAT16隐藏分区]
16h OS/2 Boot Manager hidden over-32M 16-bit FAT partition [IBM OS/2 引导管理器的大于32M的FAT16隐藏分区]
17h OS/2 Boot Manager hidden HPFS partition [IBM OS/2 引导管理器的HPFS隐藏分区]
18h AST special Windows swap file [AST 特殊Windows交换文件分区]
1Bh Hidden Windows 95 with 32-bit FAT [Windows 95 FAT32隐藏分区]
1Ch Hidden Windows 95 with 32-bit LBA FAT [Windows 95 LBA模式FAT32隐藏分区]
1Eh Hidden Windows 95 with LBA BIGDOS [Windows 95 LBA模式BIGDOS隐藏分区]
21h officially listed as reserved [官方保留]
23h officially listed as reserved [官方保留]
24h NEC MS-DOS 3.x
26h officially listed as reserved [官方保留]
27h Unkown hidden NTFS partition
31h officially listed as reserved [官方保留]
33h officially listed as reserved [官方保留]
34h officially listed as reserved [官方保留]
36h officially listed as reserved [官方保留]
38h Theos
3Ch PowerQuest PartitionMagic recovery partition [PowerQuest PartitionMagic 恢复分区]
40h VENIX 80286
41h Personal RISC Boot [Personal RISC 引导分区]
42h SFS (Secure File System) by Peter Gutmann [Peter Gutmann安全文件系统]
4Fh Oberon
50h OnTrack Disk Manager, read-only partition [OnTrack Disk Manger 只读分区]
51h OnTrack Disk Manager, read/write partition [Personal RISC 读写分区]
51h NOVELL
52h CP/M
52h Microport System V/386
53h OnTrack Disk Manager, write-only partition??? [OnTrack Disk Manager只写分区???]
54h OnTrack Disk Manager (DDO)
56h GoldenBow VFeature
57h Unkown hidden FAT partition
58h Unkown hidden FAT partition
61h SpeedStor
63h Unix SysV/386, 386/ix
63h Mach, MtXinu BSD 4.3 on Mach
63h GNU HURD
64h Novell NetWare 286
65h Novell NetWare (3.11)
67h Novell
68h Novell
69h Novell
70h DiskSecure Multi-Boot
71h officially listed as reserved [官方保留]
73h officially listed as reserved [官方保留]
74h officially listed as reserved [官方保留]
75h PC/IX
76h officially listed as reserved [官方保留]
80h Minix v1.1 - 1.4a
81h Minix v1.4b+
81h Linux
81h Mitac Advanced Disk Manager
82h Linux Swap partition [Linux 交换分区]
82h Prime
82h Solaris
83h Linux native file system (ext2fs/xiafs) [Linux 原生分区]
84h OS/2-renumbered type 04h partition (hiding DOS C: drive)
86h officially listed as reserved [官方保留]
87h HPFS Fault-Tolerant mirrored partition [HPFS 容错镜像分区]
93h Amoeba file system [Amoeba文件系统]
94h Amoeba bad block table [Amoeba坏块表]
A1h officially listed as reserved [官方保留]
A3h officially listed as reserved [官方保留]
A4h officially listed as reserved [官方保留]
A5h FreeBSD, BSD/386
A6h officially listed as reserved [官方保留]
B1h officially listed as reserved [官方保留]
B3h officially listed as reserved [官方保留]
B4h officially listed as reserved [官方保留]
B6h officially listed as reserved [官方保留]
B7h BSDI file system (secondarily swap) [BSDI 文件系统第二交换分区]
B8h BSDI swap partition (secondarily file system) [BSDI 文件系统第二文件分区]
BCh ATI hidden FAT partition [ 用于保存ATI映像的隐藏分区 ]
C1h DR DOS 6.0 LOGIN.EXE-secured 12-bit FAT partition [DR DOS 6.0 LOGIN.EXE 安全 FAT12分区]
C4h DR DOS 6.0 LOGIN.EXE-secured 16-bit FAT partition [DR DOS 6.0 LOGIN.EXE 安全 FAT16分区]
C6h DR DOS 6.0 LOGIN.EXE-secured Huge partition [DR DOS 6.0 LOGIN.EXE 安全巨分区]
C7h Syrinx Boot
D7h DELL hidden FAT partition
D8h CP/M-86
DBh CP/M, Concurrent CP/M, Concurrent DOS
DBh CTOS (Convergent Technologies OS)
DBh DELL hidden FAT partition
DDh DELL hidden FAT partition
DEh DELL hidden FAT partition
E1h SpeedStor 12-bit FAT extended partition [SpeedStor FAT12扩展分区]
E3h DOS read-only [DOS只读分区]
E3h Storage Dimensions
E4h SpeedStor 16-bit FAT extended partition [SpeedStor FAT16扩展分区]
E5h officially listed as reserved [官方保留]
E6h officially listed as reserved [官方保留]
EBh BeOS partition
F1h Storage Dimensions
F2h DOS 3.3+ secondary partition [DOS 3.3以上第二分区]
F3h officially listed as reserved [官方保留]
F4h SpeedStor
F4h Storage Dimensions
F6h officially listed as reserved [官方保留]
FEh LANstep
FEh IBM PS/2 IML
FFh Xenix bad block table [Xenix坏块表]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-24 16:58:35 | 显示全部楼层

我干!fdisk 的 src 里也没有!

我干!fdisk 的 src 里也没有!
  1. /* The system types for msdos  partition tables
  2. * Needed for lfdisk and some interface improvements
  3. */
  4. SysType msdos_systypes[] = {
  5.         /* TODO: I don't like some of the strings, change them */
  6.         { 0x00, N_("Empty") }, /* "Empty") */
  7.         { 0x01, N_("FAT12") },
  8.         { 0x02, N_("XENIX root") },
  9.         { 0x03, N_("XENIX usr") },
  10.         { 0x04, N_("Small FAT16") },
  11.         { 0x05, N_("Extended") }, /* "Extended") */
  12.         { 0x06, N_("FAT16") },
  13.         { 0x07, N_("HPFS/NTFS") },
  14.         { 0x08, N_("AIX") },
  15.         { 0x09, N_("AIX bootable") },
  16.         { 0x0a, N_("OS/2 boot mgr") },
  17.         { 0x0b, N_("FAT32") },
  18.         { 0x0c, N_("FAT32 LBA") },
  19.         { 0x0e, N_("FAT16 LBA") },
  20.         { 0x0f, N_("Extended LBA") },
  21.         { 0x10, N_("OPUS") },
  22.         { 0x11, N_("Hidden FAT12") },
  23.         { 0x12, N_("Compaq diag") },
  24.         { 0x14, N_("Hidd Sm FAT16") },
  25.         { 0x16, N_("Hidd FAT16") },
  26.         { 0x17, N_("Hidd HPFS/NTFS") },
  27.         { 0x18, N_("AST SmartSleep") },
  28.         { 0x1b, N_("Hidd FAT32") },
  29.         { 0x1c, N_("Hidd FAT32 LBA") },
  30.         { 0x1e, N_("Hidd FAT16 LBA") },
  31.         { 0x24, N_("NEC DOS") },
  32.         { 0x39, N_("Plan 9") },
  33.         { 0x3c, N_("PMagic recovery") },
  34.         { 0x40, N_("Venix 80286") },
  35.         { 0x41, N_("PPC PReP Boot") },
  36.         { 0x42, N_("SFS") },
  37.         { 0x4d, N_("QNX4.x") },
  38.         { 0x4e, N_("QNX4.x 2nd part") },
  39.         { 0x4f, N_("QNX4.x 3rd part") },
  40.         { 0x50, N_("OnTrack DM") },
  41.         { 0x51, N_("OnTrackDM6 Aux1") },
  42.         { 0x52, N_("CP/M") },
  43.         { 0x53, N_("OnTrackDM6 Aux3") },
  44.         { 0x54, N_("OnTrack DM6") },
  45.         { 0x55, N_("EZ Drive") },
  46.         { 0x56, N_("Golden Bow") },
  47.         { 0x5c, N_("Priam Edisk") },
  48.         { 0x61, N_("SpeedStor") },
  49.         { 0x63, N_("GNU HURD/SysV") },
  50.         { 0x64, N_("Netware 286") },
  51.         { 0x65, N_("Netware 386") },
  52.         { 0x70, N_("DiskSec MltBoot") },
  53.         { 0x75, N_("PC/IX") },
  54.         { 0x80, N_("Minix <1.4a") },
  55.         { 0x81, N_("Minix >1.4b") },
  56.         { 0x82, N_("Linux swap") }, /* FIXME: Or solaris */
  57.         { 0x83, N_("Linux") },
  58.         { 0x84, N_("OS/2 hidden C:") },
  59.         { 0x85, N_("Linux extended") },
  60.         { 0x86, N_("NTFS volume set") },
  61.         { 0x87, N_("NTFS volume set") },
  62.         { 0x88, N_("Linux plaintext") },
  63.         { 0x8e, N_("Linux LVM") },
  64.         { 0x93, N_("Amoeba") },
  65.         /*This guys created a seperate partition for badblocks?! */
  66.         { 0x94, N_("Amoeba BBT") },  
  67.         { 0x9f, N_("BSD/OS") },
  68.         { 0xa0, N_("Thinkpad hib") },
  69.         { 0xa5, N_("FreeBSD") },
  70.         { 0xa6, N_("OpenBSD") },
  71.         { 0xa7, N_("NeXTSTEP") },
  72.         { 0xa8, N_("Darwin UFS") },
  73.         { 0xa9, N_("NetBSD") },
  74.         { 0xab, N_("Darwin boot") },
  75.         { 0xb7, N_("BSDI fs") },
  76.         { 0xb8, N_("BSDI swap") },
  77.         /* Beware of the hidden wizard */
  78.         { 0xbb, N_("Boot Wizard Hid") },
  79.         { 0xbe, N_("Solaris boot") },
  80.         { 0xbf, N_("Solaris") },
  81.         { 0xc1, N_("DRDOS/2 FAT12") },
  82.         { 0xc4, N_("DRDOS/2 smFAT16") },
  83.         { 0xc6, N_("DRDOS/2 FAT16") },
  84.         /* Reminds me of Rush - 2112 */
  85.         { 0xc7, N_("Syrinx") },  
  86.         { 0xda, N_("Non-FS data") },
  87.         { 0xdb, N_("CP/M / CTOS") },
  88.         { 0xde, N_("Dell Utility") },
  89.         /* Should 0x20 be DontBootIt then? */
  90.         { 0xdf, N_("BootIt") },  
  91.         { 0xe1, N_("DOS access") },
  92.         { 0xe3, N_("DOS R/O") },
  93.         /*I sense some strange déjà vu */
  94.         { 0xe4, N_("SpeedStor") },  
  95.         { 0xeb, N_("BeOS fs") },
  96.         { 0xee, N_("GPT") },
  97.         { 0xef, N_("EFI FAT") },
  98.         { 0xf0, N_("Lnx/PA-RISC bt") },
  99.         { 0xf1, N_("SpeedStor") },
  100.         { 0xf2, N_("DOS secondary") },
  101.         /* Are these guys trying for a Guinness record or something? */
  102.         { 0xf4, N_("SpeedStor") },  
  103.         { 0xfd, N_("Lnx RAID auto") },
  104.         { 0xfe, N_("LANstep") },
  105.         { 0xff, N_("XENIX BBT") },
  106.         { 0, NULL }
  107. };

  108. SysType bsd_systypes[] = {
  109.         { 0x00, N_("Unused") },
  110.         { 0x01, N_("Swap") },
  111.         { 0x02, N_("Version 6") },
  112.         { 0x03, N_("Version 7") },
  113.         { 0x04, N_("System V") },
  114.         { 0x05, N_("4.1BSD") },
  115.         { 0x06, N_("Eight Edition") },
  116.         { 0x07, N_("4.2BSD") },
  117. /* It's this way in Linux fdisk, I guess it is alright */
  118. #ifdef __alpha__
  119.         { 0x08, N_("ext2") },
  120. #else
  121.         { 0x08, N_("MS-DOS") },
  122. #endif
  123.         { 0x09, N_("4.4LFS") },
  124.         { 0x0a, N_("Unknown") },
  125.         { 0x0b, N_("HPFS") },
  126.         { 0x0c, N_("ISO-9660") },
  127.         { 0x0d, N_("Boot") },
  128.         { 0x0e, N_("ADOS") },
  129.         { 0x0f, N_("HFS") },
  130.         { 0x10, N_("AdvFS") },
  131.         { 0, NULL }
  132. };

  133. SysType sun_systypes[] = {
  134.         { 0x00, N_("Empty") },
  135.         { 0x01, N_("Boot") },
  136.         { 0x02, N_("SunOS root") },
  137.         { 0x03, N_("SunOS swap") },
  138.         { 0x04, N_("SunOS usr") },
  139.         { 0x05, N_("Whole disk") },
  140.         { 0x06, N_("SunOS stand") },
  141.         { 0x07, N_("SunOS var") },
  142.         { 0x08, N_("SunOS home") },
  143.         { 0x82, N_("Linux swap") },
  144.         { 0x83, N_("Linux") },
  145.         { 0x8e, N_("Linux LVM") },
  146.         { 0xfd, N_("Lnx RAID auto") },
  147.         { 0, NULL }
  148. };
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-7-24 17:27:55 | 显示全部楼层
是这样的,没有专门的id,很多分区类型都是如此。

jfs等
回复 支持 反对

使用道具 举报

发表于 2009-7-24 17:48:06 | 显示全部楼层
很多分区类型,特别是Linux下用的,都是83吧,为Linux Native,下面才分什么ext3,ext4什么的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-24 17:56:16 | 显示全部楼层
我重建的分区表,
那我怎么在分区表指定?
83不认,起不来!



我用livecd
mount

提示:
wrong fs type,bad option,badsuperblock on /dev/sda1,
          missing codepage or other error




已解决,
方法:蒙的!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表