Originally Posted by vin_akleh
fdisk -l :-
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfd62fd62
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12971 104189526 7 HPFS/NTFS
/dev/sda2 12972 27283 114961140 f W95 Ext'd (LBA)
/dev/sda3 27284 38913 93417975 7 HPFS/NTFS
/dev/sda5 12972 25942 104189526 7 HPFS/NTFS
/dev/sda6 25943 27283 10771551 83 Linux
Disk /dev/sdb: 2097 MB, 2097152000 bytes
65 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 4030 * 512 = 2063360 bytes
Disk identifier: 0xffffffff
Disk /dev/sdb doesn't contain a valid partition table
root@waleed-laptop:~# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x4961decd.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
can u tell me what to do from there to make it one partition??
i think that the usb drive is sdb
When you were here in 'fdisk /dev/sdb' you can do a 'p' to see the partition(s). You know that you want to delete all the current partitions on this USB so use the 'd' command and delete each partition listed from the 'p' output. You can then create a new partition with 'n' key. You can press 'p' for primary then return, select '1' then default returns for suggestions. Once you have the partition table setup then press 'p' to see it again. At any command input you can do a 'm' for menu. You need to set your partition type to 'FAT' then select 't' for type then 'l' for list. You want type 'c' for FAT32 or whatever your filesystem will be.
After that press 'p' to confirm your settings. If correct then press 'w' to write the partition table. After the write you will exit then you will either re-boot or 'partprobe' to update the kernel partition table. You can now format the stick.