You are not logged in.

#1 2011-07-22 01:04:03

fraantik
Member
Registered: 2011-01-02
Posts: 10

SD card can't be formated "No media found" error.

Hello,
I would like to reformat 2Gb SD card and access to it.

When SD card inserted #dmesg show

[ 5065.614246] usb 2-1.4: new high speed USB device number 5 using ehci_hcd
[ 5065.730217] scsi42 : usb-storage 2-1.4:1.0
[ 5066.728193] scsi 42:0:0:0: Direct-Access     Generic- Multi-Card       1.00 PQ: 0 ANSI: 0 CCS
[ 5066.739402] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 5066.739485] scsi 1:0:0:0: Attached scsi generic sg1 type 5
[ 5066.739582] sd 42:0:0:0: Attached scsi generic sg2 type 0
[ 5073.889305] sd 42:0:0:0: [sdb] Attached SCSI removable disk

I can't create partitions on it nor create filesystem on it. Other my SD work. But this one is unusable. If somebody know what can be done with that microSD card you are welcomed.

Offline

#2 2011-07-22 01:07:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: SD card can't be formated "No media found" error.

What commands have you used to format, mount etc. the card? Please post the whole output e.g.

[karol@black ~]$  what you typed
what the computer "typed back"

Offline

#3 2011-07-22 09:41:09

fraantik
Member
Registered: 2011-01-02
Posts: 10

Re: SD card can't be formated "No media found" error.

$sudo sh
sh-4.2# ls /dev/|grep sdb
sdb
sh-4.2# fdisk /dev/sdb 
fdisk: /dev/sdb nelze otevřít: Médium nebylo nalezeno
sh-4.2# mkfs.vfat /dev/sdb
mkfs.vfat 3.0.11 (24 Dec 2010)
/dev/sdb: No medium found

That is problem.

Offline

#4 2011-07-22 12:55:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: SD card can't be formated "No media found" error.

It's just a stab in the dark, but have you tried using sdb1 (partition) instead of sdb (device)?

mkfs.vfat /dev/sdb1

Are you accessing the card through a multi-card reader? Are the other cards SD, microSD or ...?

Offline

#5 2011-07-22 16:13:42

fraantik
Member
Registered: 2011-01-02
Posts: 10

Re: SD card can't be formated "No media found" error.

Problem is that I don't have sdb1 and fdisk is not able to create partitions. So if I don't have sdb1 device there is no point of using /dev/sdb1 for mkfs.
I am using build in  SD card reader in HP laptop with SD to microSD adapter. As I mentioned. Other microSD cards work there well (1GB and 512MB).
I can say that I have 1GB flash disk formated whole with vfat filesystem (no partitions and only vfat on it) and 512MB disk with two partitions (vfat and ext2) and they both work. But this 2Gb card don't work but is detected as not accesible /dev/sdb.

Last edited by fraantik (2011-07-22 17:40:15)

Offline

#6 2013-10-07 13:35:59

tait
Member
Registered: 2013-10-07
Posts: 2

Re: SD card can't be formated "No media found" error.

I faced the same issue on lenovo 460. There is only /dev/sdb when micro sd card is mount.

$ dmesg | tail
[  504.287525] ums-realtek 2-1.5:1.0: USB Mass Storage device detected
[  504.303409] scsi7 : usb-storage 2-1.5:1.0
[  505.309249] scsi 7:0:0:0: Direct-Access     Generic- Multi-Card       1.00 PQ: 0 ANSI: 0 CCS
[  512.491812] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[  534.995371] usb 2-1.5: USB disconnect, device number 6
[  663.004826] usb 2-1.5: new high-speed USB device number 7 using ehci-pci
[  663.106991] ums-realtek 2-1.5:1.0: USB Mass Storage device detected
[  663.122677] scsi8 : usb-storage 2-1.5:1.0
[  664.128625] scsi 8:0:0:0: Direct-Access     Generic- Multi-Card       1.00 PQ: 0 ANSI: 0 CCS
[  677.123379] sd 8:0:0:0: [sdb] Attached SCSI removable disk
$ lsusb
Bus 002 Device 007: ID 0bda:0138 Realtek Semiconductor Corp. RTS5138 Card Reader Controller
Bus 002 Device 003: ID 0461:4dfa Primax Electronics, Ltd
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 5986:0148 Acer, Inc
Bus 001 Device 004: ID 1c7a:0801 LighTuning Technology Inc. Fingerprint Reader
Bus 001 Device 003: ID 0489:e00d Foxconn / Hon Hai Broadcom Bluetooth 2.1 Device
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ sudo blkid
[sudo] password for jkoz:
/dev/sda1: UUID="72c9cdf3-7936-4062-a3a1-b01b6eb9aeea" TYPE="ext2" PTTYPE="dos"
/dev/sda5: UUID="4610d019-3f6b-474e-b8c5-8588e790c059" TYPE="ext4"
/dev/sda6: UUID="7bfdcdbd-b23d-4c73-b38e-927b561076b3" TYPE="ext4"
/dev/sda7: UUID="072c70a9-a16a-4cc0-82bb-1a5996b47f62" TYPE="ext4"
/dev/sda8: UUID="eb65942a-9d0d-414f-8938-e6201216df05" TYPE="swap"
/dev/sda9: UUID="d2a542b6-225b-490f-bb58-cca50d959d31" TYPE="ext4"
$ sudo fdisk -l /dev/sdb
fdisk: cannot open /dev/sdb: No medium found

Offline

Board footer

Powered by FluxBB