LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2018, 08:10 AM   #1
sudiptaOpensuse
LQ Newbie
 
Registered: Jun 2017
Location: Kolkata
Posts: 7

Rep: Reputation: Disabled
Unhappy 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

Last edited by sudiptaOpensuse; 08-08-2018 at 08:35 AM.
 
Old 08-08-2018, 08:23 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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

Last edited by rtmistler; 08-08-2018 at 08:25 AM.
 
1 members found this post helpful.
Old 08-08-2018, 08:23 AM   #3
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by sudiptaOpensuse View Post
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 ...

Last edited by Rickkkk; 08-08-2018 at 08:25 AM.
 
Old 08-09-2018, 07:54 AM   #4
sudiptaOpensuse
LQ Newbie
 
Registered: Jun 2017
Location: Kolkata
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-09-2018, 08:33 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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.
 
Old 08-09-2018, 08:41 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
Old 08-09-2018, 10:19 AM   #7
KristinaAkhiva
LQ Newbie
 
Registered: Aug 2018
Posts: 5

Rep: Reputation: Disabled
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.
 
Old 08-09-2018, 04:30 PM   #8
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by KristinaAkhiva View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not detecting USB Pen drive dilankjayasinghe Linux - Newbie 3 08-02-2011 02:59 AM
Boot iso on pen drive by grub installed on pen drive jena Linux - Hardware 2 11-01-2008 09:09 AM
pen drive not detecting jestinjoy Slackware 18 03-22-2008 03:40 AM
Detecting Pen Drives raghuveerbabu Linux - Newbie 6 08-19-2007 06:38 PM
pen drive not detecting ramakant_it_student Ubuntu 1 10-07-2006 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration