使用iOS 5.0.1 beta版设备测试iOS应用(Test iOS app with device of iOS 5.0.1 beta version)
现在,我使用支持iOS 5.0的Xcode 4.2。 Apple刚刚发布了iOS 5.0.1 beta 2.我可以在我的iPhone上安装它。
我想测试这个测试版,即从Xcode构建代码。
如何从Xcode 4.2为iOS 5.0.1 beta设备构建代码?
请帮忙
Now, I use Xcode 4.2 supporting iOS 5.0. Apple has just released iOS 5.0.1 beta 2. I can install it on my iPhone.
I want to test with this beta version, i.e build code from Xcode.
How do I build code from Xcode 4.2 for device of iOS 5.0.1 beta?
Please help
原文:https://stackoverflow.com/questions/8075179
最满意答案
在进一步调查的基础上,结论已被逆转
虽然几乎所有驱动器都使用512字节逻辑扇区,但现代分区表使用LBA地址,而LBA单元大小是设备的逻辑扇区大小,现在可能高达4096字节。
最后,我将关于单元大小的问题发布到主要的GNU parted(分区编辑器)邮件列表,并收到了此响应 。 特别:
“LBA始终指的是驱动器的块大小。因此它可能是512或4096或其他值,具体取决于驱动器报告的内容。”
先前的答案版本不正确:[[分区表(在MBR中,否则)是指512字节块/逻辑扇区。 例如,参见https://en.wikipedia.org/wiki/Master_boot_record#PTE。]]
背景资料
磁盘物理磁盘扇区大小的报告似乎从根本上通过ATA-8规范中的命令完成,特别是“IDENTIFY DEVICE”命令。 兼容性问题(最常讨论)是I / O操作的对齐。 显然大多数驱动器处理512字节对齐,但性能损失,尽管有一些驱动器被宣称为“4k native”或“4kn”,根本不支持512字节对齐的I / O. 通常,具有物理4k扇区的驱动器使用所谓的“高级格式”,这可以帮助您搜索是否需要更多信息。
本文https://linuxconfig.org/linux-wd-ears-advanced-format有一些相对清晰的讨论,特别是如果您是Linux用户。 值得一提的是,在Linux上,“parted -l”命令报告物理和逻辑扇区大小,parted也知道如何为高级格式设备正确对齐分区。
此外,您可能会发现这篇文章http://www.seagate.com/tech-insights/advanced-format-4k-sector-hard-drives-master-ti/有关此问题的信息和安慰。
Conclusion has been reversed based on further investigation
Although almost all drives use 512-byte logical sectors, modern partition tables use LBA addresses, and LBA unit size is the logical sector size of the device, which today may be as great as 4096 bytes.
In the end I posted the question about unit size to the main GNU parted (partition editor) mailing list and have received this response. Specifically:
"LBA always refers to the drive's block size. So it may be 512 or 4096 or some other value, depending on what the drive reports."
Incorrect previous answer version: [[Partition tables (in the MBR and otherwise) refer to 512 byte blocks / logical sectors. See for example https://en.wikipedia.org/wiki/Master_boot_record#PTE.]]
Background information
Reporting of disk physical disk sector sizes seems to be fundamentally done through commands in the ATA-8 specification, specifically the "IDENTIFY DEVICE" command. Compatibility issues (most often discussed) are alignment of I/O operations. Apparently most drives handle 512 byte alignment, but with performance penalties, though there are some drives advertised as "4k native" or "4kn" that do not support 512 byte aligned I/O at all. In general, drives with physical 4k sectors use what is called "Advanced Format", which may help you search if you want more info.
This article https://linuxconfig.org/linux-wd-ears-advanced-format has some relatively clear discussion, especially if you are a Linux user. For what it's worth, on Linux the "parted -l" command reports physical and logical sector size, and parted also knows how to align partitions appropriately for Advanced Format devices.
Also, you might find this article http://www.seagate.com/tech-insights/advanced-format-4k-sector-hard-drives-master-ti/ informative and reassuring on the issue.
相关问答
更多-
尝试这个: #include
#include #include #include #include #include struct partition { unsigned char boot_flag; /* 0 = Not active, 0x80 = Active */ unsigned char chs_begin ... -
在PCRE中使用grep : parted ewf1 unit B p | grep -Po "^\s+[^ ]+\s+\K[^ ]+(?=\s.*ntfs)" 输出: 659554304B Using grep with PCRE: parted ewf1 unit B p | grep -Po "^\s+[^ ]+\s+\K[^ ]+(?=\s.*ntfs)" Output: 659554304B
-
分区表是使用逻辑块大小还是512字节作为单位?(Do partition tables use logical block size or 512 bytes as the unit?)[2022-01-22]
在进一步调查的基础上,结论已被逆转 虽然几乎所有驱动器都使用512字节逻辑扇区,但现代分区表使用LBA地址,而LBA单元大小是设备的逻辑扇区大小,现在可能高达4096字节。 最后,我将关于单元大小的问题发布到主要的GNU parted(分区编辑器)邮件列表,并收到了此响应 。 特别: “LBA始终指的是驱动器的块大小。因此它可能是512或4096或其他值,具体取决于驱动器报告的内容。” 先前的答案版本不正确:[[分区表(在MBR中,否则)是指512字节块/逻辑扇区。 例如,参见https://en.wiki ... -
resize2fs:尝试打开时超级块中的魔术数量差(resize2fs: Bad magic number in super-block while trying to open)[2022-11-09]
经过一些尝试和错误...如可能的答案中提到的,原来需要xfs_growfs而不是resize2fs 。 CentOS 7, fdisk /dev/xvda 创建新的主分区,将类型设置为linux lvm 。 n p 3 t 8e w 创建新的主卷并将卷组扩展到新卷。 partprobe pvcreate /dev/xvda3 vgextend /dev/centos /dev/xvda3 检查物理卷的可用空间,扩展逻辑卷与可用空间。 vgdisplay -v lvextend -l+288 /dev/ ... -
容器数量取决于blocksize的数量 。 如果您有2 GB 512 xb块大小的数据, Yarn会创建4个映射,1个reduce 。 在运行mapreduce时,我们应该遵循一些规则来提交mapreduce作业。(这应该适用于小型集群) 您应该在RAM DISK和CORES中配置以下属性。
The minimum allocation for every container request at the RM, in MBs. Memory ... -
显然,Ubuntu上的Startup Disk Creator完全不关心硬盘上的内容。 我想它总是创建它自己的分区表。 所以我用它与Ubuntu镜像,假设它会失败,并感到非常惊讶。 然后,我用GParted有一个空的FAT32分区,现在我可以使用我的驱动器没有任何问题(除了未来的格式)。 奇怪的是,GParted首先认为我的驱动器是60GB,并成功创建了分区表,但未能创建分区。 出现错误信息后,驱动器的大小正确显示为16GB,因此我成功创建了分区。 Apparently the Startup Disk C ...
-
strcpy复制整个字符串。 尝试strncpy 。 请注意,您需要在该字符串的末尾添加一个空终止符。 http://www.cplusplus.com/reference/cstring/strncpy/ strcpy copies the entire string. try strncpy. note you will need to add a null terminator to the end of the string. http://www.cplusplus.com/reference/c ...
-
无法调整AWS EBS根卷的大小或创建更大的交换分区[关闭](Cannot resize AWS EBS root volume or create larger swap partition [closed])[2022-03-04]
忘记其他答案。 我花了3天时间找出根本原因和一个简单的解决方法: https://serverfault.com/questions/748063/debian-8-ami-only-using-8gb-partition Forget the other answers. I just spent 3 days figuring out the root cause and a simple workaround: https://serverfault.com/questions/748063/debi ... -
谁可以具体解释磁盘第一扇区剩余的2个字节?(Who could specifically explain the remaining 2 bytes in first sector of disk?)[2023-04-07]
最后两个字节是引导签名。 在从扇区0加载引导代码之前,BIOS应该检查这些字节是否具有值0x55然后是0xAA,因此这不是Linux问题。 https://support.microsoft.com/en-us/kb/149877 The last two bytes are the boot signature. The BIOS is supposed to check that these bytes have values 0x55 and then 0xAA before loading the ... -
不,我想不是。 如果我是正确的,编写分区表将破坏您的文件系统。 我认为你的磁盘没有分区,即甚至不包含分区表(请参阅关于'invalid flag'的警告,而且这个/dev/xvde安装的是/dev/xvde1 )。 检查/proc/partitions以确定。 我认为发生的是你有一个简单的块设备(没有分区表),但文件系统的创建小于分区。 所以你只需要扩展文件系统。 resize2fs将为ext2,ext3和ext4执行此操作。 现代内核将允许在线调整ext3和ext4的大小。 传递无大小参数将使其调整为允许 ...