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.