LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Pen Drive not detecting (https://www.linuxquestions.org/questions/linux-newbie-8/pen-drive-not-detecting-4175635952/)

sudiptaOpensuse 08-08-2018 08:10 AM

Pen Drive not detecting
 
My pendrive is not detecting suddenly.

Output of fdisk -l:
------------------------

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0004a139

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 121602 976248832 8e Linux LVM

Disk /dev/mapper/vg_vlsilab11-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_vlsilab11-lv_swap: 8304 MB, 8304721920 bytes
255 heads, 63 sectors/track, 1009 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_vlsilab11-lv_home: 937.7 GB, 937682796544 bytes
255 heads, 63 sectors/track, 114000 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 4005 MB, 4005560320 bytes
16 heads, 32 sectors/track, 15280 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003ff21

Device Boot Start End Blocks Id System
/dev/sdb1 16 15280 3907648 b W95 FAT32

Disk /dev/sdc: 31.2 GB, 31247564800 bytes
64 heads, 32 sectors/track, 29800 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

------------------------------------------------------
it is showing my 32GB pendrive at the last

mount -t vfat /dev/sdc /mnt/usb did not work



------------------------------------------------------------------------
[root@VLSILAB-11 sudipta]# dmesg | tail
sd 20:0:0:0: [sdc] 61030400 512-byte logical blocks: (31.2 GB/29.1 GiB)
sd 20:0:0:0: [sdc] Write Protect is off
sd 20:0:0:0: [sdc] Mode Sense: 43 00 00 00
sd 20:0:0:0: [sdc] Assuming drive cache: write through
sd 20:0:0:0: [sdc] Assuming drive cache: write through
sdc: unknown partition table
sd 20:0:0:0: [sdc] Assuming drive cache: write through
sd 20:0:0:0: [sdc] Attached SCSI removable disk
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sdc.
------------------------------------------------------------------------


-----------------------------------------------------------------------
[root@VLSILAB-11 ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 17ef:6019 Lenovo
Bus 002 Device 004: ID 0461:4e04 Primax Electronics, Ltd
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 009: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102/2.0 / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Bus 003 Device 012: ID 8564:1000 Transcend Information, Inc. JetFlash


my pendrive (JetFlash) given in the last line
----------------------------------------------------------------------------------


Could anyone help pls?? i really need to recover the data

I have tried in opensuse, redhat and centOs...same thing is happening

rtmistler 08-08-2018 08:23 AM

It's not the OS, it is the pendrive.
Quote:

VFS: Can't find a valid FAT filesystem on dev sdc.
There are disk utilities you can run to try and diagnose what that disk shows.

Meanwhile the fdisk call does not show a valid file system on that drive. It sees the drive.

For instance look at this information from your output:
Code:

Disk /dev/sdb: 4005 MB, 4005560320 bytes
16 heads, 32 sectors/track, 15280 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003ff21

Device Boot Start End Blocks Id System
/dev/sdb1 16 15280 3907648 b W95 FAT32

This shows that whatever disk /dev/sdb is, it contains a W95/FAT32 file system.


Disk /dev/sdc: 31.2 GB, 31247564800 bytes
64 heads, 32 sectors/track, 29800 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

No information about /dev/sdc1 or other on the drive


Rickkkk 08-08-2018 08:23 AM

Quote:

Originally Posted by sudiptaOpensuse (Post 5889391)
My pendrive is not detecting suddenly.

Output of fdisk -l:
------------------------
...

mount -t vfat /dev/sdc /mnt/usb did not work

Hi sudipta,

You need to mount a filesystem, not the block device. Assuming there is a filesystem on your /dev/sdc drive, you could try:

Code:

mount -t vfat /dev/sdc1 /mnt/usb
Let us know how you make out.

*EDIT* ... see simultaneous post above from rmistler ...

sudiptaOpensuse 08-09-2018 07:54 AM

Hi Rickkk,

Are you saying writing sdc1 in the place of sdc can solve the problem?

mount -t vfat /dev/sdc /mnt/usb did not work for me.
and the OS couldn't find sdc1 either.... :(

I lost patients and formatted the pend drive.

Thanks for your help though.

rtmistler 08-09-2018 08:33 AM

I do not believe they were saying that. They were giving you a recommendation as to how to mount. However the end of their post notes, what I noticed in your fdisk output, which is that fdisk did not detect any formatted file systems on that drive at all.

Look again at what I highlighted in my copy of your output. /dev/sdb has a partition with a file system and it outputs information about it, noting that is is /dev/sdb1. This is not the case for /dev/sdc, it sees no partition with a file system on it. Therefore your system does not recognize that there exists a /dev/sdc1 partition to use that example command for.

Given that you tried multiple OSes and could not read it, the data was lost. Meanwhile, a data restore company could possibly have helped you. That would be costly. There are some programs which can help too, such as PhotoRec. However you have reformatted the disk, and likely put newer data on it. Whatever older data you had is most definitely lost.

Shadow_7 08-09-2018 08:41 AM

Unplug and replug a couple times. If it's there it should show up in /proc/partitions as well as dmesg.

I've had a usb stick die on me, and it shows up in neither. Most everything else died to read-only mode. Not that I have had many failures to date. That stick was my primary boot/gaming linux for about six months, or more. I normally do fresh installs on fresh sticks quarterly or every six months, so it was time anyway. Before that one fully failed it randomly shut off the computer twice, like there was total power failure, except that it's a laptop with a battery aka built in ups.

KristinaAkhiva 08-09-2018 10:19 AM

Please let me know if this is sorted, because I'm having a few similar issues on my new Linux installation on my gaming laptop.

Rickkkk 08-09-2018 04:30 PM

Quote:

Originally Posted by KristinaAkhiva (Post 5889825)
Please let me know if this is sorted, because I'm having a few similar issues on my new Linux installation on my gaming laptop.

Hi KristinaAkhiva,

I believe the originator of this thread has taken the step of reformatting their removeable drive, so the question of whether the issue is sorted or not is essentially a moot point.

For visibility amongst other things, I would suggest you open your own distinct thread and describe your problem in more detail to obtain assistance.

Thanks - cheers.


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