I have tried mkcard.sh script to make sd card bootable but after
running script, my linux machine (RHEL) is not able to detect sd card.
Please help. Following is the log,
[root@nkhandar Downloads]# ./mkcard.sh /dev/sdb
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.385247 s, 2.7 MB/s
Disk /dev/sdb doesn't contain a valid partition table
DISK SIZE - 7948206080 bytes
CYLINDERS - 966
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 966 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdb: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting
from 0
Device Boot Start End #cyls#blocks Id System
/dev/sdb1 * 0+ 8 9- 72261 c W95 FAT32 (LBA)
/dev/sdb2 9 965 957 7687102+ 83 Linux
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use
dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512
count=1
(See fdisk(8).)
umount: /dev/sdb1: not mounted
mkfs.vfat 3.0.9 (31 Jan 2010)
mkfs.vfat: unable to open /dev/sdb1
umount: /dev/sdb2: not mounted
mke2fs 1.41.12 (17-May-2010)
/dev/sdb2 is apparently in use by the system; will not make a
filesystem here!
I tried to unmount the volumen before running script but its not
working,
Following procedure I tried,
1. Insert SD card.
2. Get device mount name using dmesg | tail. i.e. /dev/sdb
3. run the script. i.e. ./mkcard.sh /dev/sdb (Before that I had make
sure that /dev/sdb1 or /dev/sdb2 is not mounted anywhere)
No need to run the script now. Just copy your uImage stuffs into partition1 and filesystem stuffs to partition2 and try.
There are many ways to do the formatiing of SD card ( in ubuntu use system->administration->disk utility).
I have had the same problem with my SD Card some time ago: that "/dev/sdb2 is apparently in use by the system; will not make a
filesystem here! " message was killing me!
I did my researches on Google and this is the page that gave me the solution: http://www.overclockers.com/forums/showthread.php?t=667317
It seems that the device was in a RAID array and keeping the drive open. Hope it will help you.
I have had the same problem with my SD Card some time ago: that "/dev/sdb2 is apparently in use by the system; will not make a
filesystem here! " message was killing me!
I did my researches on Google and this is the page that gave me the solution: http://www.overclockers.com/forums/showthread.php?t=667317
It seems that the device was in a RAID array and keeping the drive open. Hope it will help you.
I have had the same problem with my SD Card some time ago: that "/dev/
sdb2 is apparently in use by the system; will not make a
filesystem here! " message was killing me!
I did my researches on Google and this is the page that gave me the
solution: http://www.overclockers.com/forums/showthread.php?t=667317
It seems that the device was in a RAID array and keeping the drive
open. Hope it will help you.
Hello again.
I'd like to apologise for the 5 messages: this was my first time using
google groups, and as my messages didn't show on the topic page, i
thought that the system failed.... so i tried again and again (I even
did create a google account).
So sorry again for the spam, and hope that the solution i gave will
work.
Thanks a lot Barun,Jyothi,Naxtao for your replies. I really appreciate your help.
Update: Finally I was able to format the sd card using expert mode (Manually using fdisk). I am still not able to figure out the root cause of the issue
root@ubuntu-server-x64-beagleboard:/home/cwilson# ./mkcard.sh /dev/sdb
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 1.55514 s, 674 kB/s
Disk /dev/sdb doesn’t contain a valid partition table
DISK SIZE - 7948206080 bytes
CYLINDERS - 966
Checking that no-one is using this disk right now …
OK
Disk /dev/sdb: 966 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdb: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls#blocks Id System
/dev/sdb1 * 0+ 8 9- 72261 c W95 FAT32 (LBA)
/dev/sdb2 9 965 957 7687102+ 83 Linux
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
Successfully wrote the new partition table
Re-reading the partition table …
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
umount: /dev/sdb1: not mounted
mkfs.vfat 3.0.12 (29 Oct 2011)
mkfs.vfat: unable to open /dev/sdb1: Device or resource busy
umount: /dev/sdb2: not mounted
mke2fs 1.42 (29-Nov-2011)
/dev/sdb2 is apparently in use by the system; will not make a filesystem here!
Performing the steps in “Expert Mode” from the link above work perfectly, but mkcard.txt gives the errors in my previous post on Ubuntu 10.04 and 12.04. No clue why it thinks /dev/sdb1 and /dev/sdb2 are busy/in use…