Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello Guys,
I'm trying to format a sd card.
I'm using a embedded linux system.
i sent this command.
First Test:
> /bin/umount -l /dev/mmcblk0p1 --> unmount the Sd card.
> /sbin/mkdosfs -I /dev/mmcblk0p1
my device on this command answer :
mkfs.fat 3.0.26 (2014-03-07)
mkdosfs: unable to open /dev/mmcblk0p1: Device or resource busy
Second test
> bin/umount -l /dev/mmcblk0p1 --> unmount the Sd card.
> mkfs.fat -F 32 /dev/mmcblk0p1
Device answer:
mkfs.fat 3.0.26 (2014-03-07)
mkfs.fat: unable to open /dev/mmcblk0p1: Device or resource busy
What can i do?
how can i format my SD card from my system?
I assume your embedded system boots and runs from the SD card. If /dev/mmcblk0p1 is your /root partition it can not be unmounted and is why you see the "Device or resource busy" error message.
yes, make sure it is NOT mounted, even if you have to pop it out the push it back in to engage it again, not letting a file manger mount it. also make sure that the tab is slid to write protection off.
Distribution: Qtopia on Zaurus, ArchLinuxArm on RPi, Ubuntu variants on C.H.I.P.,
Posts: 6
Rep:
I agree it will help to know what type of embedded hardware you are using and what operating system.
But the output I would most like to see is if you enter the "lsblk" command. It will show all block devices, along with their partitions, and whether they are mounted or not.
I am also not sure it is helpful to run "umount -l" instead of just plain "umount". Without the "-l", "umount" will tell you it cannot unmount because the partition on the card is being used.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.