* [ptxdist] hd.img use
@ 2013-12-02 21:42 Antonio Righettini
2013-12-03 7:31 ` Alexander Aring
0 siblings, 1 reply; 6+ messages in thread
From: Antonio Righettini @ 2013-12-02 21:42 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 98 bytes --]
I made hd.img file via ptxdist images command, ho can put this on hard disk
?
Tanks, Antonio
[-- Attachment #1.2: Type: text/html, Size: 1837 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] hd.img use
2013-12-02 21:42 [ptxdist] hd.img use Antonio Righettini
@ 2013-12-03 7:31 ` Alexander Aring
2013-12-03 13:16 ` Antonio Righettini
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Aring @ 2013-12-03 7:31 UTC (permalink / raw)
To: ptxdist
Hi,
On Mon, Dec 02, 2013 at 10:42:32PM +0100, Antonio Righettini wrote:
> I made hd.img file via ptxdist images command, ho can put this on hard disk
You can put it on your hard disk with the dd command. Check "man dd" on
your host pc for more information. For example:
dd if=hd.img of=/dev/$HARDDISK device.
Important note:
Be sure you select the right $HARDDISK device. ;-)
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] hd.img use
2013-12-03 7:31 ` Alexander Aring
@ 2013-12-03 13:16 ` Antonio Righettini
2013-12-03 13:37 ` Alexander Stein
0 siblings, 1 reply; 6+ messages in thread
From: Antonio Righettini @ 2013-12-03 13:16 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 758 bytes --]
Hi Alex
I have already try, dd commnad finish without errors, but the disk doesn't
contain data.
I used this command :
dd if=/.../hd.img of=/dev/sdc
where sdc is my device (hard disk)
I can not see any partition on hard disk.
2013/12/3 Alexander Aring <alex.aring@gmail.com>
> Hi,
>
> On Mon, Dec 02, 2013 at 10:42:32PM +0100, Antonio Righettini wrote:
> > I made hd.img file via ptxdist images command, ho can put this on hard
> disk
>
> You can put it on your hard disk with the dd command. Check "man dd" on
> your host pc for more information. For example:
>
> dd if=hd.img of=/dev/$HARDDISK device.
>
> Important note:
>
> Be sure you select the right $HARDDISK device. ;-)
>
> - Alex
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
[-- Attachment #1.2: Type: text/html, Size: 1380 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] hd.img use
2013-12-03 13:16 ` Antonio Righettini
@ 2013-12-03 13:37 ` Alexander Stein
2013-12-03 13:56 ` Alexander Aring
2013-12-03 13:57 ` Marc Kleine-Budde
0 siblings, 2 replies; 6+ messages in thread
From: Alexander Stein @ 2013-12-03 13:37 UTC (permalink / raw)
To: ptxdist; +Cc: Antonio Righettini
Hallo,
On Tuesday 03 December 2013 14:16:42, Antonio Righettini wrote:
> I have already try, dd commnad finish without errors, but the disk doesn't
> contain data.
>
> I used this command :
>
> dd if=/.../hd.img of=/dev/sdc
>
> where sdc is my device (hard disk)
>
> I can not see any partition on hard disk.
When you write an image (containing an MBR) to a currently attached disk, you need to call partprobe afterwards to update the partition table.
Regards,
Alexander
BTW: no need for dd here. you can simply use cat /.../hd.img > /dev/sdc which is faster on some hardware
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] hd.img use
2013-12-03 13:37 ` Alexander Stein
@ 2013-12-03 13:56 ` Alexander Aring
2013-12-03 13:57 ` Marc Kleine-Budde
1 sibling, 0 replies; 6+ messages in thread
From: Alexander Aring @ 2013-12-03 13:56 UTC (permalink / raw)
To: ptxdist; +Cc: Antonio Righettini
On Tue, Dec 03, 2013 at 02:37:26PM +0100, Alexander Stein wrote:
> Hallo,
>
> On Tuesday 03 December 2013 14:16:42, Antonio Righettini wrote:
> > I have already try, dd commnad finish without errors, but the disk doesn't
> > contain data.
> >
> > I used this command :
> >
> > dd if=/.../hd.img of=/dev/sdc
> >
> > where sdc is my device (hard disk)
> >
> > I can not see any partition on hard disk.
>
> When you write an image (containing an MBR) to a currently attached disk, you need to call partprobe afterwards to update the partition table.
>
> Regards,
> Alexander
>
> BTW: no need for dd here. you can simply use cat /.../hd.img > /dev/sdc which is faster on some hardware
>
To make it faster you need call dd with a "correct" bs size.
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] hd.img use
2013-12-03 13:37 ` Alexander Stein
2013-12-03 13:56 ` Alexander Aring
@ 2013-12-03 13:57 ` Marc Kleine-Budde
1 sibling, 0 replies; 6+ messages in thread
From: Marc Kleine-Budde @ 2013-12-03 13:57 UTC (permalink / raw)
To: ptxdist; +Cc: Antonio Righettini, Alexander Stein
[-- Attachment #1.1: Type: text/plain, Size: 575 bytes --]
On 12/03/2013 02:37 PM, Alexander Stein wrote:
> BTW: no need for dd here. you can simply use cat /.../hd.img >
> /dev/sdc which is faster on some hardware
...or define the blocksize dd should use.
dd if=hd.img of=/dev/$DRIVE bs=2M
IIRC cat uses 64k and dd 512 bytes by default
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-12-03 13:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-02 21:42 [ptxdist] hd.img use Antonio Righettini
2013-12-03 7:31 ` Alexander Aring
2013-12-03 13:16 ` Antonio Righettini
2013-12-03 13:37 ` Alexander Stein
2013-12-03 13:56 ` Alexander Aring
2013-12-03 13:57 ` Marc Kleine-Budde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox