Welcome to the Linux Foundation Forum!

usb partitioning

I was installing BT4 to a 4g flash drive and some were between defining partitions and setting up the file system i decided that i messed up and that i would clear the key, delete the partitions and do it later. But when i was doing it later, while in fdisk i noticed that my 4g flash drive was now only showing as 2g, any thoughts?

Comments

  • abrenar
    abrenar Posts: 117
    it seems that the other part of your 4g flash drive is unallocated, or may be it is formatted on different file-system format, you can reformat your flash drive using gparted. note before formatting your flash make sure you resized the current partition adding the unallocated spaces.

    hope it helps.
  • If you want to clear EVERYTHING from your drive, you can run the following:

    dd if=/dev/zero of=/dev/yourusbdrive
    obviously replace yourusbdrive with hdb or sdb, however your version of Linux reads it..
  • amnesia
    amnesia Posts: 60
    That's probably the easiest and best option as per what Cody said. dd is lovely, then just mkfs.fstype /dev/device :>
    or fdisk. whatevers better for you.
  • Goineasy9
    Goineasy9 Posts: 1,114
    I do believe that if you use fdisk -l /dev/yourusbdrive, it will show you all the partitions on your stick, even the empty spaces.

Categories

Upcoming Training