[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Parted-2.3 can not detecte USB disk partition(SandDiak CRUZER SDCZ6-016G
From: |
ChenMin |
Subject: |
Parted-2.3 can not detecte USB disk partition(SandDiak CRUZER SDCZ6-016G 16GB), but parted-1.8.8. |
Date: |
Tue, 13 Jul 2010 14:46:28 +0800 |
Hi,
THe model of USB disk is "SandDiak CRUZER SDCZ6-016G 16GB", and there is one
signal partition
on it.
I found the following code in 2.3 caused this issue.
-/* If this is a FAT fs, fail here. Checking for the FAT signature
- * has some false positives; instead, do what the Linux kernel does
- * and ensure that each partition has a boot indicator that is
- * either 0 or 0x80.
- */
-for (i = 0; i < DOS_N_PRI_PARTITIONS; i++) {
- if (part_table->partitions[i].boot_ind != 0
- && part_table->partitions[i].boot_ind != 0x80)
- goto probe_fail;
-}
+/* if this is a FAT fs, fail here. Note that the Smart Boot Manager
+ * Loader (SBML) signature indicates a partition table, not a file
+ * system.
+ */
+if ((!strncmp (part_table->boot_code + 0x36, "FAT", 3)
+ && strncmp (part_table->boot_code + 0x40, "SBML", 4) != 0)
+ || !strncmp (part_table->boot_code + 0x52, "FAT", 3))
+ goto probe_fail;
GNU Parted 2.3
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: SanDisk Cruzer (scsi)
Disk /dev/sde: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
(parted)
GNU Parted 1.8.8
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: SanDisk Cruzer (scsi)
Disk /dev/sde: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 16.0GB 16.0GB fat32
(parted)
/* MBR of this USB disk. */
00000000 e9 00 00 4d 53 57 49 4e 34 2e 31 00 02 10 20 00 |...MSWIN4.1... .|
00000010 02 00 00 00 00 f8 00 00 77 07 10 00 00 00 00 00 |........w.......|
00000020 ff 9f dd 01 b5 3b 00 00 00 00 00 00 02 00 00 00 |.....;..........|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 00 00 29 00 00 00 00 4e 45 57 20 20 20 20 20 20 |..)....NEW |
00000050 20 20 46 41 54 33 32 20 20 20 00 00 00 00 00 00 | FAT32 ......|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
BRs!
_________________________________________________________________
约会说不清地方?来试试微软地图最新msn互动功能!
http://ditu.live.com/?form=TL&swm=1
- Parted-2.3 can not detecte USB disk partition(SandDiak CRUZER SDCZ6-016G 16GB), but parted-1.8.8.,
ChenMin <=