2008年10月24日

partition and format under linux

  1. Now type fdisk -l to list available drives/partitions (note which device is your flash drive Example: /dev/sdb). Throughout this tutorial, replace all instances of x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
  2. Type umount /dev/sdx1
  3. Type fdisk /dev/sdx
    • type p to show the existing partition and d to delete it
    • type p again to show any remaining partitions (if partitions exist, repeat the previous step)
    • type n to make a new partition
    • type p for primary partition
      • type 1 to make this the first partition
      • hit enter to use the default 1st cylinder
      • type +750M to set the partition size
      • type a to make this partition active
      • type 1 to select partition 1
      • type t to change the partition filesystem
      • type 6 to select the fat16 file system
    • type n to make another new partition
    • type p for primary partition
      • type 2 to make this the second partition
      • hit enter to use the default cylinder
      • hit enter again to use the default last cylinder
      • type w to write the new partition table
  4. Type umount /dev/sdx1 to unmount the partition
  5. Type mkfs.vfat -F 16 -n ubuntu810 /dev/sdx1 to format the first partition
  6. Type umount /dev/sdx2 to ensure the partition is unmounted
  7. Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition

没有评论: