Try following :
Type:
dmesg | tail -20
command to check the last few lines. Now insert the drive. Again type
dmesg | tail -20
if system is able to get the drives serial number and assigns device name like /dev/sdx
means the device is detected.
Then try to mount it with various mount types if not sure of the partition type.
mount -t <partition-type> /dev/sdx /path/to/any/empty/folder
You can also skip the -t <partition-type>
part, the mount
will try to guess it.
This is better than lsblk
way...:
Execute lsblk
before connecting the SD card, then once connected execute lsblk
again. If there is new entry, then you can see the device name with the mount point (if mounted), like /media/user1/BX5GB
in following snippet.
└─sdb1 8:5 0 4G 0 part [/media/user1/BX5GB]
If there isn't any mount point there you have to mount the drive to any local folder with mount
command mentioned earlier.
If the partition details are corrupted e.g. Corrupted MBR.. You can try recovery with some softwares like testdisk
or something.
For testdisk -
execute the testdisk with superuser privileges (this is necessary as we're going to write the partitioning info)
sudo testdisk
Now, choose choose logging (create is default). Next screen will show you the disks attached to your system and their total size
Here select the correct disk that needs to be fixed (your memory card say /dev/sdx).
On next screen there are options for partition type like [Intel/PC | EFI GPT | Humax | Apple |....]
. You can choose one that s suitable for your card. for MBR
partitioning it's Intel/PC
.
- Now select
Analyse
. This will take you to analyze screen
- You will first have an option of
[Quick Search]
select it and let the application search the partitions
- If you are satisfied with the current search press
Enter
to continue (though you may choose to change the partition type detected).
- Now you have two options:
[write]
or [Deeper Search]
. So at this point, if you are satisfied with the current partition info select [Write]
which writes the partition info to disk and you can now remove and attach it again to see content. OR
- You can click
[Deeper Search]
for more analyzing more damaged partitions and write the detected partition scheme on the disk and you are able to see the content now.
This was again in case of reading the SD card. If you just want to recover the content... you have an option of using the photo-recovery
, which comes with the testdisk
package. and recover the media to some other partition as target. You'll get most of your files, but there won't be any directory structure that you were using earlier.
exfat-utils
– NeoTheThird Mar 18 '17 at 13:22gnome-disks
is your sd card listed? – lamino Apr 09 '17 at 00:12