My mobile phone SD card needs to be divided into two partitions, but it cannot be achieved in Windows XP.
The main problem is that window only recognizes the first partition of the SD card.
Someone used to modify the driver so that windows could recognize the SD card as Hitachi's microdisk and partition and format it. But in my laptop, the SD card reader comes with a laptop, not connected to a USB interface. This method won't work either.
Partition the SD card in Linux, and it is very easy to format.
The system I installed is ubuntu10.04.
After the SD card is inserted, it is automatically mounted.
So the first step is umount.
$ Sudo-I
Enter your password to obtain the root permission.
# Mount
The device number in the last line is displayed.
/Dev/mmcblk0 on/Media/60c5-3ec0 type vfat (RW, nosuid, nodev, uhelper = udisks, uid = 1000, gid = 1000, shortname = mixed, dmask = 0077, utf8 = 1, flush)
Umount this SD card
# Umount/dev/mmcblk0
The fdisk tool is used below.
# Fdisk/dev/mmcblk0
The fdisk command is very simple.
Warning: DOS-compatible mode is deprecated. It's stronugly recommended
Switch off the mode (command 'C') and change display units
Sectors (command 'U ').
Command (M for help): m
Command action
A toggle a bootable flag
B edit BSD disklabel
C toggle the DOS compatibility flag
D delete a partition
L List known partition types
M print this menu
N Add a new partition
O create a new empty DOS partition table
P print the Partition Table
Q quit without saving changes
S create a new empty sun disklabel
T change a partition's System ID
U change display/entry units
V verify the Partition Table
W write table to disk and exit
X extra functionality (experts only)
First P to see the SD card partition status.
Then D, delete the original partition.
N, create a partition
Command (M for help): n
Command action
E extended
P primary partition (1-4)
P
Partition Number (1-4): 1
First cylinder (1-62528, default 1): 1
Last cylinder, + cylinders or + size {K, M, g} (1-62528, default 62528): + 1500 m
T, specify the partition type,
Command (M for help): T
Selected partition 1
HEX Code (type L to list codes): L
0 empty 24 NEC dos 81 minix/old lin bf Solaris
1 fat12 39 Plan 9 82 Linux swap/so C1 drdos/sec (fat-
2 XENIX root 3C partitionmagic 83 Linux C4 drdos/sec (fat-
3 xenix usr 40 venix 80286 84 OS/2 hidden C: C6 drdos/sec (fat-
4 fat16 <32 M 41 PPC prep boot 85 Linux extended C7 syr.pdf
5 Extended 42 SFS 86 NTFS Volume set da non-FS Data
6 fat16 4D qnx4.x 87 NTFS Volume set dB CP/M/ctos /.
7 HPFs/NTFS 4E qnx4.x 2nd part 88 Linux plaintext de Dell Utility
8 AIX 4f qnx4.x 3rd part 8e Linux lvm df bootit
9 AIX bootable 50 ontrack DM 93 amoeba E1 dos access
A OS/2 boot manag 51 ontrack DM6 aux 94 amoeba bbt E3 dos R/o
B w95 FAT32 52 CP/M 9f BSD/OS E4 speedstor
C w95 FAT32 (LBA) 53 ontrack DM6 aux A0 IBM ThinkPad Hi EB BEOs FS
E w95 fat16 (LBA) 54 ontrackdm6 A5 FreeBSD EE GPT
F w95 ext 'd (LBA) 55 ez-drive A6 OpenBSD ef efi (fat-12/16/
10 opus 56 Golden Bow A7 nextstep F0 Linux/PA-RISC B
11 hidden fat12 5C Priam edisk A8 Darwin UFS F1 speedstor
12 Compaq diagnost 61 speedstor A9 NetBSD F4 speedstor
14 hidden fat16 <3 63 GNU Hurd or sys AB Darwin boot F2 dos secondary
16 hidden fat16 64 Novell Netware af HFS/HFS + FB VMware vmfs
17 hidden HPFs/NTF 65 Novell Netware B7 bsdi fs fc VMware vmkcore
18 ast smartsleep 70 disksecure mult B8 bsdi swap FD Linux raid auto
1B hidden w95 fat3 75 PC/ix bb boot wizard hid Fe lanstep
1c hidden w95 fat3 80 old minix be Solaris boot FF bbt
1e hidden w95 fat1
HEX Code (type L to list codes): 6
Changed system type of partition 1 to 6 (fat16)
In this way, the first partition is divided and the partition is specified as fat16.
Second, I try to partition Linux
Command (M for help): n
Command action
E extended
P primary partition (1-4)
P
Partition Number (1-4): 2
First cylinder (48002-62528, default 48002 ):
Using default value 48002
Last cylinder, + cylinders or + size {K, M, g} (48002-62528, default 62528 ):
Using default value 62528
Command (M for help): T
Partition Number (1-4): 2
HEX Code (type L to list codes): 83
Let's take a look at the results.
Command (M for help): p
Disk/dev/mmcblk0: 2048 MB, 2048917504 bytes
4 heads, 16 sectors/track, 62528 Cylinders
Units = cylinders of 64*512 = 32768 bytes
Sector size (logical/physical): 512 bytes/512 bytes
I/O size (minimum/optimal): 512 bytes/512 bytes
Disk identifier: 0x6f20736b
Device boot start end blocks ID system
/Dev/mmcblk0p1 1 48001 1536024 6 fat16
/Dev/mmcblk0p2 48002 62528 464864 83 Linux
Okay. Write the partition information to the disk.
Command (M for help): W
The partition table has been altered!
Calling IOCTL () to re-read partition table.
Warning: If you have created or modified any DOS 6.x
Partitions, please see the fdisk manual page for additional
Information.
Syncing disks.
Start formatting.
First, the fat16 Partition
# Mkdosfs/dev/mmcblk0p1
Next is the LINUX partition.
# Mkfs. ext3/dev/mmcblk0p2
After that, remove the SD card and install it again. The Linux system has automatically identified two partitions and can be used.
Put it in your cell phone.