Ok, first of all: For the USB flash drive to be seen by Windows, it should have been formatted under fat32 or NTFS (if this last option is available).
Second thing, you said it did not allow you to remove it. Do you mean unmount / eject? If you hard removed it without safely removing drive, you might have done permanent damage to it. Some pendrives/USB sticks do not have safe remove option by default and you might break them .
Are you sure USB port is working? have you tried with something else? Please connect the device on same USB port and post the output of the following command:
Code:
lsusb
sudo parted -l
sudo fdisk -l
lsusb command should give you the output of the unused USB ports and the one in use by your stick should show you the HW specifications.
Here is mine:
Code:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 013: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102 Flash Drive / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Then, you should be able to see its "dev" name with this command:
Here is mine:
Code:
$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x39113910
Device Boot Start End Blocks Id System
/dev/sda1 * 63 83891429 41945683+ 7 HPFS/NTFS/exFAT
/dev/sda2 83891430 312576704 114342637+ f W95 Ext'd (LBA)
/dev/sda5 100663353 310472189 104904418+ b W95 FAT32
/dev/sda6 83891556 100663289 8385867 83 Linux
/dev/sda7 310472253 312576704 1052226 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 8006 MB, 8006074368 bytes
13 heads, 13 sectors/track, 92525 cylinders, total 15636864 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdb1 * 8064 15636863 7814400 c W95 FAT32 (LBA)
Finally, sudo parted -l should show you if the USB stick full storage capability is recognized by your OS.
Code:
$ sudo parted -l
Model: ATA WDC WD1600AABS-6 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 43.0GB 43.0GB primary ntfs boot
2 43.0GB 160GB 117GB extended lba
6 43.0GB 51.5GB 8587MB logical ext4
5 51.5GB 159GB 107GB logical fat32
7 159GB 160GB 1077MB logical linux-swap(v1)
Model: Kingston DataTraveler 108 (scsi)
Disk /dev/sdb: 8006MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 4129kB 8006MB 8002MB primary fat32 boot, lba
Assuming you see the USB stick on the output of lusb:
Now, if you see your device connected on your lsusb output, you might need to create with root privileges a folder inside /media (change folder if it does not apply to your OS) named usb (for example) and then mount it with same privileges and give it 777 or 770 or 700 permission (7 stands for read, write and execute).
Codes would be, in this order:
Code:
sudo makedir /media/usb
sudo mount /dev/sdxx /media/usb
sudo chmod /dev/sdxx 777
On second and third line, both letters "x" should be replaced by the appropriate letter and number on your USB as shown on sudo fdisk -l command. For example, in my case it would be sdb1. /media/usb needs to be replaced with the folder you desire (it needs to be on /media or similar folder in your OS where mounted partitions show).
If you don't see your USB stick on lsusb, I think (I've been using Ubuntu only for 3 years and haven't dived into the depths of the command line yet) it is a hardware issue on the USB stick or on the port.
By the way, I still cannot unmount the usb stick after doing below solution. So, I have to shutdown the PC for safe removal.
Hope it helped you at least a bit. Please post output of above commands before doing anything (including steps under underlined title).
Edit: Please show me the output of:
[code]fsck /dev/sdxx[code]
Once again, replace "xx" with your correct device output on commands shown above.
I'm also thinking the boot sector could be broken, I believe it can be fixed with fsck.
Bookmarks