Hda vs SDA

Source: Internet
Author: User

Some time ago, the Linux kernel was compiled. Online documents all said that after compilation, Lilo was modified. config, which has a section of configuration: Root =/dev/hda2. Check my own lilo configuration, as if it should be SDA. I checked the differences between hda and SDA on the Internet and picked up the explanations on the English forum.

IDE Hard Disks (well, devices, actually) are HD <drive> <partition>. SCSI devices (and kernel-level emulation of SCSI devices, like USB devices or, in some cases, CD-RW drives) are SD <drive> <partition>.
The standard partitioning scheme nowadays is (assuming your drive is hda ):

Hda1 => Bootloader and kernel (s)
Hda2 => swap space
Hda3 => root filesystem

 

The way Linux asign names to disk drive is as follows:
Hd/X/n-now lets break this down;
HD-denotes that the disk drive is ide based. If the drive SCSI or SATA based it will be designated as SD.

X-denotes the position of the drive. if its installed in the IDE controllers as the primary master it will be designated as hda. if as the primary slave it will be designated as HDB. if as the secondary master, HDC. HDD if the drive is installed as the secondary slave.

N-This denotes the Partition Number. for example the first partition of the primary master will be designated as hda1. usually the primary partitions are designated with the numbers 1-4. the logical drives are given the numbers 5-n (depends on how to handle logical partitions you have.

Because I installed a Linux System in VMware, it seems that VMware will virtualize the virtual partition as a SCSI device, so I think my Linux device should be SDA.

However, I have been unable to understand what to write to my root account. No matter whether it is hda or SDA, it cannot be started normally, whether it is hda or SDA, prompt: enter the correct root = or something. It seems that the configuration here is incorrect. Confused ......

In addition, the default configuration on the original lilo is: append = "root = label =/". It is not correct to imitate this write. I wonder if there is a problem in compiling the kernel by myself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.