标签归档:Apple

如何修改苹果IOS系统越狱后的root密码

Mobile Termina
安装后打开桌面程序
输入:passwd
输入默认密码alpine
然后输入新密码,要输2遍,再继续回到之前的就表示mobile密码已经修改好了
然后在英文状态下输入su回车(就是换行)
输入密码:alpine 输入密码的时候是看不到字符的
如果输入对了,这时候看到屏幕就变成这样:
iPhone:~ mobile$ su
Password:
iPhone:/var/mobile root#
此时输入:passwd
输入新密码,要输2遍,再继续回到iPhone:/var/mobile root#
表示你的root密码已经修改好了
exit退出

苹果分区标识符类型

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分区表项数据结构及其含义
字节偏移量
(十六进制)
字节数
说明
0001
2
签名(0x504D
0203
2
保留
0407
4
总的分区个数
080B
4
本分区起始扇区号
0C0F
4
本分区大小扇区数
102F
32
分区名(ASCII码)
304F
32
分区类型(ASCII码)
5053
4
本分区内数据起始扇区号
5457
4
本分区内数据区大小扇区数
585B
4
分区状态
5C5F
4
引导代码起始扇区号
6063
4
引导代码大小扇区数
6467
4
引导装载程序地址
686B
4
保留
6C6F
4
引导代码目录指针
7073
4
保留
7477
4
引导代码校验和
7887
16
处理器类型
881FF
376
保留
 
提示:分区表的第一个分区表项一定是对分区表分区自身的描述,所有分区表项扇区的起始两个字节一定是“50 4D”。
 
以下是C代码。