1. [root@yuzuki cj]# fdisk /dev/sde
  2. Welcome to fdisk (util-linux 2.21.2).
  3. Changes will remain in memory only, until you decide to write them.
  4. Be careful before using the write command.
  5. Command (m for help): n
  6. Partition type:
  7. p primary (0 primary, 0 extended, 4 free)
  8. e extended
  9. Select (default p):
  10. Using default response p
  11. Partition number (1-4, default 1):
  12. Using default value 1
  13. First sector (2048-31334399, default 2048):
  14. Using default value 2048
  15. Last sector, +sectors or +size{K,M,G} (2048-31334399, default 31334399):
  16. Using default value 31334399
  17. Partition 1 of type Linux and of size 15 GiB is set
  18. Command (m for help): t
  19. Selected partition 1
  20. Hex code (type L to list codes): c
  21. Changed system type of partition 1 to c (W95 FAT32 (LBA))
  22. Command (m for help): w
  23. The partition table has been altered!
  24. Calling ioctl() to re-read partition table.
  25. WARNING: If you have created or modified any DOS 6.x
  26. partitions, please see the fdisk manual page for additional
  27. information.
  28. Syncing disks.
  29. [root@yuzuki cj]# mkfs.vfat /dev/sde1
  30. mkfs.vfat 3.0.12 (29 Oct 2011)
  31. [root@yuzuki cj]# mount /dev/sde1 /external
  32. [root@yuzuki cj]# echo foobarbaz > /external/file
  33. [root@yuzuki cj]# less /external/file
  34. foobarbaz
  35. /external/file (END)
  36. [root@yuzuki cj]# umount /dev/sde1
  37. [root@yuzuki cj]# cat /dev/sde1 | grep -a foobarbaz
  38. foobarbaz