LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to recovery usb pen (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-recovery-usb-pen-4175493366/)

alsen 02-01-2014 11:32 AM

how to recovery usb pen
 
After i have inserte my USB pen I did not see nothin the output of demsg is:
[ 6302.581390] usb 1-3: new high-speed USB device number 5 using ehci-pci
[ 6302.716813] usb 1-3: New USB device found, idVendor=05dc, idProduct=a790
[ 6302.716820] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6302.716824] usb 1-3: Product: USB Flash Drive
[ 6302.716827] usb 1-3: Manufacturer: UFD
[ 6302.716830] usb 1-3: SerialNumber: AA04012700007967
[ 6302.718238] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 6302.718400] scsi7 : usb-storage 1-3:1.0
[ 6304.818267] scsi 7:0:0:0: Direct-Access UFD USB Flash Drive 1100 PQ: 0 ANSI: 0 CCS
[ 6304.819064] sd 7:0:0:0: Attached scsi generic sg1 type 0
[ 6304.824956] sd 7:0:0:0: [sdb] Attached SCSI removable disk

my pen seems to be recognized by nothing is mount in my ubuntu 12.04 with xfce.
What can i dow now ?
Thanks a lot.

lleb 02-01-2014 12:35 PM

Quote:

Originally Posted by alsen (Post 5109290)
After i have inserte my USB pen I did not see nothin the output of demsg is:

[ 6304.824956] sd 7:0:0:0: [sdb] Attached SCSI removable disk

my pen seems to be recognized by nothing is mount in my ubuntu 12.04 with xfce.
What can i dow now ?
Thanks a lot.

its right there in bold font fro you. the USB device is not formatted or is formatted in a way that your computer is not capable of reading.

as root run fdisk -l it will be in that list too.

alsen 02-01-2014 02:05 PM

Quote:

Originally Posted by lleb (Post 5109316)
its right there in bold font fro you. the USB device is not formatted or is formatted in a way that your computer is not capable of reading.

as root run fdisk -l it will be in that list too.

the output is this:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x000b05a7

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 156262399 78130176 83 Linux
/dev/sda2 156264255 160344764 2040255 82 Linux swap / Solaris
/dev/sda3 160346112 316594175 78124032 83 Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdd1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.

There is all HD of my system but no trace of USB pen

lleb 02-02-2014 12:27 PM

did you remove the USB device before running that command?

follow these basic steps in order

1. as root run the following command BEFORE YOU PLUG IN THE USB DEVICE
Code:

# tail -f /var/log/messages
2. plug in the USB device and WATCH the output of the tail command from above. you will be looking for dev/sdX or just sdX were X is a letter from a-z
3. once you see the /dev/sdX or just the sdX press and hold ctrl+c on the keyboard to break the tail command.
4. type the following command
Code:

# fdisk -l /dev/sdX
replacing X with what you read in the tail command.
5. if the device is formatted then make note and mount it appropriately, if not then partition and format it as you desire. etx2 or fat-32 as required for your needs.

Emerson 02-02-2014 04:14 PM

It is perfectly OK to have sdb only instead of sdbx, it is possible the device has no partition table. It still can have a filesystem on it.


All times are GMT -5. The time now is 01:04 AM.