volume boot record is the same as MBR?
Hello
If I have a HDD with 3 particions, I have 1 MBR at the begining of the HDD, and 3 VBR (volume boot record). One VBR for each partition in the begining of each partition. But what I dont understund is if first VBR in the first partition (512 bytes) are the same 512 bytes in MBR? |
The first partition does not start at the very beginning of the hard drive.
Partitions normally start on "cylinder" boundaries, but I think the first partition normally starts one "track" later (than the start of the first "cylinder"). Of course on modern disks, "cylinder" and "track" are just units for the BIOS and don't correspond to the physical layout of the disk. |
So, first 512 bytes of sda are diferents from first 512 bytes of sda1, right?
|
Quote:
Consider this example from one of my computers: Code:
# /sbin/fdisk -l 37870 to 38913 inclusive is 1044 cylinders 1044 times 16065 sectors/cylinder divided by 2 sectors/block exactly equals the reported 8385930 so sda2 consists of whole cylinders. Do the same for sda1 and you get 304182742.5 blocks, so 31.5 blocks (63 sectors) are missing. The size of sda1 is one track less than the total size of the reported range of cylinders. So in this example the first 63 sectors of sda are not part of sda1. The 64'th sector of sda is the 1'st sector of sda1. |
Oo, johnsfine, you understund very well hdd stuff. Thank you very much for explain that to me. :)
So, when I install Debian in sda1, and Windows 7 in sda2, and when I turn on my computer, and I see grub menu, thatīs why because I have: Grub installed in first 512 bytes in sda which is called MBR. In the very begining in the HDD. Or meybe in the first 63 sectors. Then in the first 512 bytes of sda1, which is the 64th sector I have volume boot record for Debian and in the first 512 bytes of sda2 I have the volume boot record for Windows 7. Is that right what I understund? |
Quote:
Quote:
Quote:
|
Ok, letīs see. I think I start to understand it.
In a HDD with sda1 - Debian, sda2 Windows 7 and grub installed as main boot manager. When computer load flash Bios, and Bios load MBR, first are loaded the first 512 bytes in sda, which load grub, which shows me all SO on menu.lst. So, when I choose windows 7 or windows xp from the list, grub load the first 512 bytes from sda2, which load windows xp or windows 7 loader. Is all this correct? |
I think that is all correct.
There are some details (intermediate stage loaders) missing from that description, but I don't really know those details either. At the level at which you just described the process, your description is correct. |
Hello
I have a hdd with several partitions. sda1 - debian sda2 - windows xp sda3 - win 7 sda4 - ubuntu I know how to mount each partition, but what I want is to mount sda, not sda1 or sda3. Just sda. So later, I want to make a copy of MBR of sda. As I know first 512 bytes from sda1 are not the same like first 512 bytes from sda. Thatīs why I want to mount sda and with dd, copy the first 512 bytes. The problem is how to mount sda, if some partition are ntfs and other are ext3? |
You cannot mount the entire drive all at once, but it's OK, because you do not need to do so in order to make a copy of the MBR using dd.
|
I tried dd if=/dev/sda and it works
|
All times are GMT -5. The time now is 08:38 PM. |