LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   Pen drive suddenly stopped showing up on windows . tryin gto load it through ubuntu. (http://www.linuxquestions.org/questions/showthread.php?t=4175496296)

Noxphoenix 02-26-2014 11:51 AM

Pen drive suddenly stopped showing up on windows . tryin gto load it through ubuntu.
 
I am trying to load a pen drive on ubuntu that is not even being detected on Ubuntu. On windows, it is being detected but doesn't open and the option to perform a format pops up. I have treid using commands from previous simlar questions asked at this forum. All I came to know was that, the pendrive is detected in Terminal. But it cannot be opened. Please help.

teckk 02-26-2014 12:05 PM

Quote:

On windows, it is being detected but doesn't open and the option to perform a format pops up
Are you sure that the drive has anything on it? Windows wants to format it.
fdisk or parted will show you the partitions on the device.
Plug the device in and see what device node it has with either,
Code:

dmesg | tail
or
Code:

lsblk
or (? is for drive letter)
Code:

udisks --show-info /dev/sd?
If it has a filesystem on it then you should be able to mount it. If not you'll have to put a FS on it. USB drives also die sometimes. Give more info on what you have.

Noxphoenix 02-26-2014 12:38 PM

Quote:

Originally Posted by teckk (Post 5125156)
Are you sure that the drive has anything on it? Windows wants to format it.
fdisk or parted will show you the partitions on the device.
Plug the device in and see what device node it has with either,
Code:

dmesg | tail
or
Code:

lsblk
or (? is for drive letter)
Code:

udisks --show-info /dev/sd?
If it has a filesystem on it then you should be able to mount it. If not you'll have to put a FS on it. USB drives also die sometimes. Give more info on what you have.

It has almost 8GB worth od data on it. It was showing some undeletable icons on windows earlier. Then, the pen drive suddenly was not being read on windows and it doesnt even show up on ubuntu. I checked some command on the terminal. It shows the pendrive is present. but then why does it not show up on the ubuntu interface where all the other drives do? It is a Jetflash 8 GB pendrive. What do I do? Is there any data I can support you with? And how can I obtain that dta on my pc?

Noxphoenix 02-26-2014 12:43 PM

output on the dmesg | tail command
sumedhrg@sumedhrg-h9-1325in:~$ dmesg | tail
[ 13.921819] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 17.259493] 2:3:1: cannot get freq at ep 0x84
[ 17.262461] 2:3:1: cannot get freq at ep 0x84
[ 17.272508] 2:3:1: cannot get freq at ep 0x84
[ 17.275508] 2:3:1: cannot get freq at ep 0x84
[ 40.681174] NET: Registered protocol family 24
[ 314.759597] audit_printk_skb: 168 callbacks suppressed
[ 314.759601] type=1400 audit(1393439866.294:68): apparmor="STATUS" operation="profile_replace" parent=2299 profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2303 comm="apparmor_parser"
[ 314.759612] type=1400 audit(1393439866.294:69): apparmor="STATUS" operation="profile_replace" parent=2299 profile="unconfined" name="/usr/sbin/cupsd" pid=2303 comm="apparmor_parser"
[ 314.760457] type=1400 audit(1393439866.294:70): apparmor="STATUS" operation="profile_replace" parent=2299 profile="unconfined" name="/usr/sbin/cupsd" pid=2303 comm="apparmor_parser"

Noxphoenix 02-26-2014 12:44 PM

lsblk output
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 1023M 0 part
├─sda2 8:2 0 360M 0 part /boot/efi
├─sda3 8:3 0 128M 0 part
├─sda4 8:4 0 200G 0 part
├─sda5 8:5 0 660.7G 0 part
├─sda6 8:6 0 40G 0 part /
├─sda7 8:7 0 19.4G 0 part
└─sda8 8:8 0 10G 0 part [SWAP]
sdb 8:16 0 931.5G 0 disk
└─sdb1 8:17 0 931.5G 0 part /media/sumedhrg/NoxPhoenix
sdg 8:96 1 7.6G 0 disk
└─sdg1 8:97 1 7.5G 0 part
sr0 11:0 1 1024M 0 rom
ps : noxphoenix is my external hard drive

teckk 02-28-2014 12:15 PM

Looks like the drive is /dev/sdg
Code:

sdg 8:96 1 7.6G 0 disk
└─sdg1 8:97 1 7.5G 0 part

Although that will change if you keep removing it and putting it back in.
Can you mount it manually? You know what fs it has on it?
Code:

#parted -l
If it's readable you should be able to mount it and access it. Something like
Code:

mkdir ~/drive
Code:

mount /dev/sdg1 ~/drive
Code:

ls ~/drive
If the drive has went bad then you may not be able to read it.

I've never done Ubuntu, maybe someone can add something more useful.

Noxphoenix 03-03-2014 06:48 AM

This is what the output was.
 
sumedhrg@sumedhrg-h9-1325in:~$ mkdir ~/a
sumedhrg@sumedhrg-h9-1325in:~$ mount /dev/sdg1 ~/a
mount: only root can do that
sumedhrg@sumedhrg-h9-1325in:~$

michaelk 03-03-2014 05:49 PM

sudo mount /dev/sdg1 ~/a

Use your primary username password. It is being detected but not automatically mounted.
Look at the output of the dmesg command to see if there are any errors.


All times are GMT -5. The time now is 12:49 AM.