problem with linaro-media-create

Shawn Guo shawn.guo at freescale.com
Tue Mar 8 10:37:28 UTC 2011


On Tue, Mar 08, 2011 at 10:23:17AM +0100, Loïc Minier wrote:
> On Tue, Mar 08, 2011, Shawn Guo wrote:
> > >     parted -s /dev/sdN mklabel msdos && sfdisk -L /dev/sdN
> > 
> > $ sudo parted -s /dev/sdb mklabel msdos && sfdisk -L /dev/sdb
> > /dev/sdb: Permission denied
> > 
> > sfdisk: cannot open /dev/sdb read-write
> 
>  you want to sudo the sfdisk call too
> 
Have a look at the /dev/sdb change in device report before and after
the command you suggest ...

--- quote begin ---
r65073 at S2101-09:~/image/linaro$ linaro-media-create --rootfs ext3 --mmc /dev/sdb --binary linaro-n-developer-tar-20110302-0.tar.gz --hwpack hwpack_linaro-imx51_20110302-0_armel_unsupported.tar.gz --dev mx51evk

I see...
Device           Mount point      Size
/dev/sda5        none             76048MB
/dev/dm-0        /                72868MB
/dev/dm-1        none             3136MB
/dev/sdb1        none             3780MB
/dev/sda         none             76293MB
/dev/sda1        /boot            243MB
/dev/sda2        none             76048MB
/dev/sr0         none             0MB
/dev/sdb         none             3781MB
Are you 100% sure, on selecting [/dev/sdb] (y/n)? n
r65073 at S2101-09:~/image/linaro$ sudo parted -s /dev/sdb mklabel msdos && sudo sfdisk -L /dev/sdb
/dev/sdb: No medium found

sfdisk: cannot open /dev/sdb read-write
r65073 at S2101-09:~/image/linaro$ linaro-media-create --rootfs ext3 --mmc /dev/sdb --binary linaro-n-developer-tar-20110302-0.tar.gz --hwpack hwpack_linaro-imx51_20110302-0_armel_unsupported.tar.gz --dev mx51evk

I see...
Device           Mount point      Size
/dev/sda5        none             76048MB
/dev/dm-0        /                72868MB
/dev/dm-1        none             3136MB
/dev/sda         none             76293MB
/dev/sda1        /boot            243MB
/dev/sda2        none             76048MB
/dev/sr0         none             0MB
/dev/sdb         none             0MB
Are you 100% sure, on selecting [/dev/sdb] (y/n)? n
--- quote end ---

-- 
Regards,
Shawn




More information about the linaro-dev mailing list