GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Since the partition table of extended partition is different with the partition table of MBR. So where is the boot sector of extended partition? Is it the same boot sector of the first logical partition?
Look the example below:
/dev/hda1 primary partition
/dev/hda2 extended partition
/dev/hda5 logical partition
/dev/hda6 logical partition
Is the boot sector of /dev/hda2 the same boot sector of /dev/hda5?
A hard drive has the boot sector as the first sector--it is not associated with any particular partition. The last entries in the boot sector are the partition table for 4 primary or extended partitions. If there are more partitions, they appear in the SECOND sector of the drive.
In my system, the real data starts in sector 63---ie 0-62 are used for the boot sector, partition tables and ??.
Google for a reference on partition table format, boot record format, etc. Then use dd to explore your drives
For example: dd if=/dev/hda of=filename bs=512 count=1 will put the first 512byte sector into a file named "filename". Then run this thru hexdump to see the data. (in place of hda, put your drive number---which you can find by looking at mtab, fstab, or by using fdisk.)
Thanks michaelk for providing a link to the matertial about the the boot sector.
But I am still confused, where is the sector of "extended partition boot sector" of /dev/hda2? Since from that link, only logical partition has boot sector. and there is no sectors that not belong to any logical partition, right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.