The invention provides a method and a device for quickly programming data to an EXT partition. According to the method, a corresponding image file is generated according to the actual size of the EXT partition, and during programming, erasure processing is performed on the whole partition first, and a whole block group of data blocks where data is stored is programmed; only super blocks and a block group descriptor of a block group, meeting a first preset condition, of data blocks where data is not stored are programmed; and a block group, not meeting the first preset condition, of data blocks where data is not stored is not programmed. Compared with the mode of programming the whole image file (that is, all block groups are programmed one by one), through the scheme, the programmed data volume is greatly reduced, meanwhile, Resize operation does not need to be performed on the partition during first start, and therefore the scheme is beneficial for improving programming efficiency.