Re: Removing Grub

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

 




2007/9/7, Jacques B. <jjrboucher@xxxxxxxxx>:
>
>
> ... sorry, wrong typing; the corret block size is 466 and not 496. I
> apologize.
>
> --
> Alessandro Brezzi

Not quite.  446.  The first sector is 512 bytes.  The first 446 bytes
is the MBR.  The next 64 bytes is the partition record (4 X16 - hence
why you can only have 4 primary partitions) followed by the magic #
\x55 \xaa.  446(MBR)+64(parition table)+2(magic number)=512.

You can view the partition table by doing the following as root
(assuming your primary hard drive is /dev/hda for this example).

dd if=/dev/hda bs=1 skip=446 count=64 |xxd

This will give you the 4 partitions (16 bytes per line so one
partition per line).  The one that starts with \x80 is the bootable
partition.

Likewise if you only want to see the MBR then as root
dd if=/dev/hda bs=446 count=1 |xxd

And the magic number \x55 \xaa
dd if=/dev/hda bs=1 skip=510 count=2 |xxd

Jacques B.
 
Ok, so this confirm I''ve to wait and think twice, for not to made invalid assertions ... You are correct: forgot to evaluate correctly bs / count and skip.
Another occasion for apologize. Sorry Mikkel and all.
 
--
Alessandro Brezzi
 
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux