help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on what sectors grub2 uses?


From: Chris Murphy
Subject: Re: Question on what sectors grub2 uses?
Date: Sun, 11 Mar 2012 00:54:55 -0700




> On 10 Mar 2012 at 22:41, Chris Murphy wrote:
>> 
>> And I did find out earlier that LBA 0 is the first sector, LBA 1 is
>> the second sector, and so on.
>> 

On Mar 11, 2012, at 12:46 AM, Michael D. Setzer II wrote:


> In doing a test I found to get the same sector it took these 
> commands.
> 
> dd if=/dev/sda of=mbrsx bs=512 skip=2048 count=1
> dd if=/dev/sda1 of=sda1 bs=512 count=1
> 
> If I skip 2048 doesn't that make it sector 2049?

skip=2048 sectors/blocks would skip sectors 0 to 2047, landing you at sector 
2048 and reading it.

The first sector of partition 1 is now most commonly 2048 so by not skipping, 
but specifying 'if' equal to the first partition, you're reading sector 2048.

> 
> 
> Looks like it is counting the sectors from 0?

I said this earlier, quoted at the top of this email.

Chris Murphy


reply via email to

[Prev in Thread] Current Thread [Next in Thread]