cli guru needed
Gene Heskett
gene.heskett at verizon.net
Mon Aug 3 00:49:53 UTC 2009
On Sunday 02 August 2009, Patrick O'Callaghan wrote:
>On Sun, 2009-08-02 at 15:10 -0700, Bazooka Joe wrote:
>> On Sun, Aug 2, 2009 at 10:41 AM, Patrick
>>
>> O'Callaghan<pocallaghan at gmail.com> wrote:
>> > On Sun, 2009-08-02 at 10:34 -0700, Bazooka Joe wrote:
>> >> Is there a way to combine these 2 commands to cut my time in half?
>> >>
>> >> VBoxManage internalcommands converttoraw file.vdi file.raw
>> >> then I have to run
>> >> dd if=file.raw of=/dev/sdb
>> >
>> > Assuming the second line is correct (i.e. you really want to copy
>> > file.raw bit-for-bit to a physical device), why not do it directly:
>> >
>> > VBoxManage internalcommands converttoraw file.vdi /dev/sdb
>>
>> Looks like VBoxManage won't write to a directory, darn.
>
>/dev/sdb is not a directory. Unless your setup is *very* nonstandard,
>it's a device, in fact a disk drive. In the worst case the app might
>want to seek on it, but there's no reason it shouldn't be able to do
>that.
Another item that has blown on by is that /dev/sdb is the whole device. One
must have at least one mountable partition setup on the device, and the
filesystem suitably initialized and mounted before the file can be written.
There are some exceptions to that rule, generally involving either an .iso
image, or 'dd' which can make an identical image on any writable device at
least big enough to hold the image. Otherwise you must name the partition on
the device and mount it. Example /dev/sdb3, mounted to /media/sdb3 for
instance.
>
>BTW I don't see a convertoraw option in my copy of VBoxManage. Are you
>quite sure of what you're doing?
>
>poc
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The NRA is offering FREE Associate memberships to anyone who wants them.
<https://www.nrahq.org/nrabonus/accept-membership.asp>
Where's the man could ease a heart
Like a satin gown?
-- Dorothy Parker, "The Satin Dress"
More information about the fedora-list
mailing list