Code Sample |
# sfdisk /dev/sdb [or wherever your target USB stick is] ... /dev/sdb1 :0 1022 83 * New situation: Units = cylinders of 507904 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sdb1 * 0+ 1021 1022- 506911+ 83 Linux /dev/sdb2 0 - 0 0 0 Empty /dev/sdb3 0 - 0 0 0 Empty /dev/sdb4 0 - 0 0 0 Empty Do you want to write this to disk? [ynq] y Successfully wrote the new partition table Re-reading the partition table ... # mkfs.ext2 /dev/sdb1 mke2fs 1.35 (28-Feb-2004) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 126976 inodes, 506908 blocks 25345 blocks (5.00%) reserved for the super user First data block=1 62 block groups 8192 blocks per group, 8192 fragments per group 2048 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 32 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. # mount -t ext2 /dev/sdb1 /mnt/sdb1 # extlinux -i /mnt/sdb1 /mnt/sdb1 is device /dev/sdb1 |