Re: impossible to restore MBR using dd

2005-05-03 Thread Corinna Vinschen
On May 3 18:06, Eric Blake wrote: > The limitation here is not in dd, but in cygwin-1.5.16's use of the underlying > Window's features to access raw devices. Just because Linux has chosen > to allow a non-block access of a block-special device (implemented as a block > read, edit, block write seq

Re: impossible to restore MBR using dd

2005-05-03 Thread Eric Blake
> Hello Blake, I prefer my given name over my surname, but answer to both (the curse of the dual first name)... > > > >Hmm - writing just 446 bytes to raw devices is not very safe. /dev/sda is a > block-special device for a reason, and writing anything more or less than a > full > block at a

Re: [Fwd: Re: impossible to restore MBR using dd]

2005-05-03 Thread Corinna Vinschen
On May 3 19:10, Matthias Bertschy wrote: > Maybe I should recall you that on Linux, we can safely write 446 bytes > blocks to a raw device. Indeed, the command dd if=boot.MBR of=/dev/sda > bs=446 count=1 works under Linux. > I also don't understand why you are using NTSF raw devices to access th

[Fwd: Re: impossible to restore MBR using dd]

2005-05-03 Thread Matthias Bertschy
Original Message Subject: Re: impossible to restore MBR using dd Date: Tue, 03 May 2005 19:10:20 +0200 From: Matthias Bertschy <[EMAIL PROTECTED]> To: Eric Blake <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Hello Blake, Eric Blake wrote: Hel

Re: impossible to restore MBR using dd

2005-05-03 Thread Cliff Hones
Matthias Bertschy wrote: > Cliff Hones wrote: > >> Matthias Bertschy wrote: >> >>> Hello, >>> >>> Cygwin version: 1.5.12 >>> Windows XP Professional: Ver 5.1 Build 2600 Service Pack 2 >>> >>> I am trying to use Cygwin's dd command as a post Windows XP install >>> command to restore our custom GRU

Re: impossible to restore MBR using dd

2005-05-03 Thread Eric Blake
> Hello, > > Cygwin version: 1.5.12 Can't you upgrade? coreutils-5.3.0-5 is out, and requires a newer version of cygwin. Perhaps with the latest versions you may pick up a bug fix along the way that helps solve your problem. Also, see http://cygwin.com/problems.html to give us more informat

Re: impossible to restore MBR using dd

2005-05-03 Thread Cliff Hones
Matthias Bertschy wrote: > Hello, > > Cygwin version: 1.5.12 > Windows XP Professional: Ver 5.1 Build 2600 Service Pack 2 > > I am trying to use Cygwin's dd command as a post Windows XP install > command to restore our custom GRUB to the MBR after an unattended > installation. > For safety reasons,

Re: impossible to restore MBR using dd

2005-05-03 Thread Brian Dessent
Matthias Bertschy wrote: > dd if=boot.MBR of=/dev/sda bs=446 count=1 > -->dd: writing '/dev/sda': No space left on device This is the proper form of the command, as far as I know. I don't know why it's giving you the error, but I suspect that reading and writing the raw disk is not somet