Skip to contentSkip to conversation

SD Card not mounting

DISCUSSION Ram 4 participants 4 messages Apr 24, 2006 – Apr 25, 2006

lore
Share & tools
lore

Ram

author
#0 lore raw

Hi,
When i try to mount an generic SD Card on my hardware. i get the error:

mount /dev/mmcblk0 /mnt/mmc -t vfat
mount: Mounting /dev/mmcblk0 on /mnt/mmc failed: Device or resource busy

I have appended a list of boot messages related to the SD.
mmcblk0: mmc0:c3ad SD032 29888KiB
mmcblk0:<7>MMC: starting cmd 12 arg 00000000 flags 00000009 p1

The following the the MMC Debug messages (MMC Debug option enabled in make menuconfig)

/ # dmesg
000000 00000000 00000000
MMC: starting cmd 11 arg 00014600 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00014600, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00014800 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00014800, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00014a00 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00014a00, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00014c00 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00014c00, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00014e00 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00014e00, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00015000 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00015000, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00015200 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00015200, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00015400 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00015400, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00015600 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00015600, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00015800 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00015800, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00015a00 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00015a00, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00015c00 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00015c00, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00015e00 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00015e00, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00016000 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00016000, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00016200 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00016200, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00016400 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00016400, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00016600 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00016600, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00016800 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00016800, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00016a00 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00016a00, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC: starting cmd 11 arg 00016c00 flags 00000009
MMC1: DMA block read, DTO 0 cycles + 15000000 ns, 1 blocks of 512 bytes, 1 segments
MMC1: CMD17, argument 0x00016c00, 32-bit response, CRC

        MMC IRQ 0001 (CMD 17): EOC
MMC1: Response 00000900
        MMC DMA 512 bytes CB 0020 (0 segments to go), c1c81f54
        MMC IRQ 0008 (CMD -1): BRS

MMC: req done (11): 0: 00000900 00000000 00000000 00000000
MMC1: Freeing DMA channel 0

#1 lore raw
Quoted 6 lines · Ram

Hi,
When i try to mount an generic SD Card on my hardware. i get the error:

mount /dev/mmcblk0 /mnt/mmc -t vfat
mount: Mounting /dev/mmcblk0 on /mnt/mmc failed: Device or resource busy

You should cc the relevant maintainers when sending questions/bug reports. Otherwise it will just get lost in the sheer volume of mail.

Since I don't recognise what driver you're using I'm adding Russell King (the MMC maintainer) as cc.

Rgds
Pierre

#2 lore raw
Quoted 8 lines · Pierre Ossman
Quoted 6 lines · Ram

Hi,
When i try to mount an generic SD Card on my hardware. i get the error:

mount /dev/mmcblk0 /mnt/mmc -t vfat
mount: Mounting /dev/mmcblk0 on /mnt/mmc failed: Device or resource busy

Quoted 5 lines

You should cc the relevant maintainers when sending questions/bug reports. Otherwise it will just get lost in the sheer volume of mail.

Since I don't recognise what driver you're using I'm adding Russell King (the MMC maintainer) as cc.

and I doubt that "Device or resource busy" has anything at all to do with MMC. Sounds more like a userspace issue - maybe two filesystems are being mounted on /mnt/mmc? Reading the mount(2) man page gives some ideas what this error may mean.

Signature · 3 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core
#3 lore raw
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

mount /dev/mmcblk0 /mnt/mmc -t vfat
mount: Mounting /dev/mmcblk0 on /mnt/mmc failed: Device or resource busy

and I doubt that "Device or resource busy" has anything at all to do with MMC. Sounds more like a userspace issue - maybe two filesystems are being mounted on /mnt/mmc? Reading the mount(2) man page gives some ideas what this error may mean.

There are usually no problems with mounting something over a mountpoint. The side effect is just that you can't easily access the now-hidden mount.

Jan Engelhardt