Mobile Termina
安装后打开桌面程序
输入:passwd
输入默认密码alpine
然后输入新密码,要输2遍,再继续回到之前的就表示mobile密码已经修改好了
然后在英文状态下输入su回车(就是换行)
输入密码:alpine 输入密码的时候是看不到字符的
如果输入对了,这时候看到屏幕就变成这样:
iPhone:~ mobile$ su
Password:
iPhone:/var/mobile root#
此时输入:passwd
输入新密码,要输2遍,再继续回到iPhone:/var/mobile root#
表示你的root密码已经修改好了
exit退出
标签归档:Apple
苹果分区标识符类型
Identifier | Contents / file system | Remarks |
---|---|---|
Apple_Boot | bootloader | This boot partition is used by Mac OS X when the file system on the main partition is not an Open Firmware conforming HFS partition, such as in a software RAID configuration or when using a HFS+ case-sensitive or a UFS file system. |
Apple_Bootstrap | NewWorld bootblock | Although it is a general Open Firmware (New World) boot partition, it is specifically used by yaboot. It must be HFS formatted, so that it can be accessed by Open Firmware. |
Apple_Driver | device driver | Mac OS classic drivers partition |
Apple_Driver43 | SCSI Manager 4.3 device driver | Mac OS classic drivers partition |
Apple_Driver43_CD | SCSI CD-ROM device driver | Mac OS classic drivers partition |
Apple_Driver_ATA | ATA device driver | Mac OS classic drivers partition |
Apple_Driver_ATAPI | ATAPI device driver | Mac OS classic drivers partition |
Apple_Driver_IOKit | IOKit driver | Mac OS classic drivers partition |
Apple_Extra | unused | This identifier masks an unused partition map entry. |
Apple_Free | free space | This identifier masks free space as a partition map entry. |
Apple_FWDriver | FireWire device driver | Mac OS classic drivers partition |
Apple_HFS | Hierarchical File System | While normally a HFS or HFS+ volume for Mac OS and Mac OS X, it can also contain an MS-DOS formatted file system (File Allocation Table, which can be accessed by Mac OS and Mac OS X). |
Apple_HFSX | HFS Plus | This partition contains a HFS+ volume without a HFS wrapper. HFSX was introduced with Mac OS X 10.3 and is only used in special cases, like case sensitive HFS+. HFSX is the standard partition type on Intel-based Macs (which use GUID instead of APM). |
Apple_MFS | Macintosh File System | This partition is used by Mac OS for the Macintosh File System (MFS), which was introduced with the Macintosh 128K in 1984. |
Apple_Partition_Map | partition map | The partition map is also a partition of its own. It can vary in size depending on how many partitions it may contain. |
Apple_Patches | patches | Mac OS classic patch partition |
Apple_PRODOS | ProDOS | ProDOS file system |
Apple_Scratch | empty | This identifier marks an empty partition. |
Apple_Second | Second stage bootloader | |
Apple_UFS | Unix File System | This partition contains a Unix File System (UFS) and is used by Mac OS X and various Unix-like operating systems. |
Apple_UNIX_SVR2 | A/UX | Originally introduced for A/UX (Apple Unix operating system based on System V Release 2, hence SVR2) on the 68k, it was later reused for MkLinux which used the Extended file system. It is the standard partition identifier for many Unix-like operating systems, including Linux and NetBSD. It may contain any file system suitable for the installed operating system. If bootable, a file system that can be read by the Open Firmware bootloader from Apple_Bootstrap (e.g. yaboot) must be used. |
Apple_Void | ISO9660 padding | A dummy partition map entry to ensure correct partition alignment on bootable media. |
Be_BFS | Be File System | This partition contains a Be File System (BFS) and is normally used by BeOS. |
苹果系统分区表结构
Apple用一个专门的分区存储分区表项,这个分区就是起始于1号扇区的分区表分区。分区表分区是磁盘的第一个分区,由一系列大小为512-byte的分区表项组成,每个分区表项描述一个分区,包括分区的起始扇区号、分区大小、分区类型以及卷名等信息。除0号扇区外,其余的所有扇区一定属于某个分区表项所描述的空间。
分区表项的数据结构及其含义见表2.7。
表2.7 Apple分区表项数据结构及其含义
字节偏移量
(十六进制)
|
字节数
|
说明
|
00~01
|
2
|
签名(0x504D)
|
02~03
|
2
|
保留
|
04~07
|
4
|
总的分区个数
|
08~0B
|
4
|
本分区起始扇区号
|
|
4
|
本分区大小扇区数
|
10~
|
32
|
分区名(ASCII码)
|
30~
|
32
|
分区类型(ASCII码)
|
50~53
|
4
|
本分区内数据起始扇区号
|
54~57
|
4
|
本分区内数据区大小扇区数
|
58~5B
|
4
|
分区状态
|
|
4
|
引导代码起始扇区号
|
60~63
|
4
|
引导代码大小扇区数
|
64~67
|
4
|
引导装载程序地址
|
68~6B
|
4
|
保留
|
|
4
|
引导代码目录指针
|
70~73
|
4
|
保留
|
74~77
|
4
|
引导代码校验和
|
78~87
|
16
|
处理器类型
|
88~1FF
|
376
|
保留
|
提示:分区表的第一个分区表项一定是对分区表分区自身的描述,所有分区表项扇区的起始两个字节一定是“50 4D”。
以下是C代码。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
/* * fs/partitions/mac.h */ #define MAC_PARTITION_MAGIC 0x504d /* type field value for A/UX or other Unix partitions */ #define APPLE_AUX_TYPE "Apple_UNIX_SVR2" struct mac_partition { __be16 signature; /* expected to be MAC_PARTITION_MAGIC */ __be16 res1; __be32 map_count; /* # blocks in partition map */ __be32 start_block; /* absolute starting block # of partition */ __be32 block_count; /* number of blocks in partition */ char name[32]; /* partition name */ char type[32]; /* string type description */ __be32 data_start; /* rel block # of first data block */ __be32 data_count; /* number of data blocks */ __be32 status; /* partition status bits */ __be32 boot_start; __be32 boot_size; __be32 boot_load; __be32 boot_load2; __be32 boot_entry; __be32 boot_entry2; __be32 boot_cksum; char processor[16]; /* identifies ISA of boot */ /* there is more stuff after this that we don't need */ }; #define MAC_STATUS_BOOTABLE 8 /* partition is bootable */ #define MAC_DRIVER_MAGIC 0x4552 /* Driver descriptor structure, in block 0 */ struct mac_driver_desc { __be16 signature; /* expected to be MAC_DRIVER_MAGIC */ __be16 block_size; __be32 block_count; /* ... more stuff */ }; int mac_partition(struct parsed_partitions *state); |