Linux – Pen Drive Not detected in Linux

linuxusb-drive

I inserted a new pendrive. The following is the dmesg output:

[127321.248105] usb 2-2: new high speed USB device using ehci_hcd and address 9    
[127321.380898] scsi11 : usb-storage 2-2:1.0    
[127322.381159] scsi 11:0:0:0: Direct-Access     XXXXXXXX U1170CONTROLLER  0.00 PQ: 0 ANSI: 2    
[127322.384481] sd 11:0:0:0: Attached scsi generic sg2 type 0    
[127322.387127] sd 11:0:0:0: [sdb] Attached SCSI removable disk        

But after executing the fdisk -l there is no device showing /dev/sdb

Following is the output of fdisk command:

   Device Boot      Start         End      Blocks   Id  System    

   /dev/sda1   *           1       19103   153443296    7  HPFS/NTFS    
   /dev/sda2           19103       34764   125794300    7  HPFS/NTFS    
   /dev/sda3           34764       38914    33333249    5  Extended    
   /dev/sda5           34764       34776       97280   83  Linux    
   /dev/sda6           34776       35025     1998848   82  Linux swap / Solaris    
   /dev/sda7           35025       38914    31235072   83  Linux    `

Can somebody please tell me how to debug this problem ?

Edit:
There is one sdb created in the /dev directory after inserting the usb drive.

On executing the the following command I am getting the output as:

root@pradeep-laptop:~# mount /dev/sdb /mnt
mount: /dev/sdb: unknown device

Here is the output of lsusb command :

Bus 005 Device 002: ID 1c4f:0002 SiGma Micro 
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0a5c:2101 Broadcom Corp. Bluetooth Controller
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 048d:1170 Integrated Technology Express, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The Line Bus 001 Device 007: ID 048d:1170 Integrated Technology Express, Inc. was added after inserting the pen drive.

Here is the error which I received while creating partition table using gparted

Best Answer

You have to make at least one file system on the pendrive (and a partition table, certainly). The first file system you make should be the /dev/sdb1 which is then mountable. For example:

root# mkfs.xfs /dev/sdb1 && mount /dev/sdb1 /mnt -t auto

will run.

Of course, you could add more than one file system to the pendrive, their name will be /dev/sdb{1,2..n}, respectively. Editing storage devices with gparted would make the process easier by visibility.

Related Question