Rpi b+, mkfs.vfat: unable to open /dev/sdg: Device or resour

Ask questions about Arch Linux ARM. Please search before making a new topic.

Rpi b+, mkfs.vfat: unable to open /dev/sdg: Device or resour

Postby kamhagh » Mon Feb 01, 2016 1:17 pm

It's my first time installing arch Linux.
I was following this guide, i did everything i just added sudo http://archlinuxarm.org/platforms/armv6/raspberry-pi

after fdisk i got this:

$this->bbcode_second_pass_quote('', 'C')ommand (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).



and so I moved to next step and did $this->bbcode_second_pass_code('', 'sudo mkfs.vfat /dev/sdX1')
but it gives me this:
$this->bbcode_second_pass_quote('', 'm')kfs.fat 3.0.27 (2014-11-12)
mkfs.vfat: unable to open /dev/sdg: Device or resource busy


What should i do? I tried it on a laptop with built in sdcard reader but i had a problem, no matter how many times i did this i still could see the old files from Raspbian i installed on the sdCard !
kamhagh
 
Posts: 2
Joined: Mon Feb 01, 2016 1:12 pm

Re: Rpi b+, mkfs.vfat: unable to open /dev/sdg: Device or re

Postby WarheadsSE » Mon Feb 01, 2016 2:41 pm

step number one: sudo su

Then continue on as root in su.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Rpi b+, mkfs.vfat: unable to open /dev/sdg: Device or re

Postby kamm » Mon Feb 01, 2016 3:33 pm

You didn't mention where the sd card was mounted when you were trying to install arch, but
-- assuming it was plugged into the laptop, and
-- assuming you ran dmesg and verified that it is /dev/sdg
it looks like you didn't unmount it before trying to repartition it. Did you run
sudo umount [mount point of the sd card]
(i.e., /mnt/[card-name] or /media/[login]/[card-name], or whatever, depending on your laptop linux installation)
before running fdisk?

Also, note that "sudo mkfs.vfat /dev/sdX1" should be "sudo mkfs.vfat /dev/sdg1", assuming the card really is sdg.
kamm
 
Posts: 5
Joined: Fri Jan 22, 2016 11:19 pm

Re: Rpi b+, mkfs.vfat: unable to open /dev/sdg: Device or re

Postby kamhagh » Mon Feb 01, 2016 5:17 pm

Wow im such an idiot, i forgot about the partitions :)

Worked now! i can't wait to try it! will post the results here soon!
EDIT: It worked! *pops champagne!*
and wow this is slow, so slow compared to raspian!
kamhagh
 
Posts: 2
Joined: Mon Feb 01, 2016 1:12 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 17 guests