Yalo
    e-mail
    internet accelerators
    internet access
    internet and phone call
    web hosting
    storage space
    url redirection
    internet call waiting
    free sms
    nota bene
 

How to install bootable Linux on SATA HD

  Requisites: Motherboard: Intel Desktop Board D865PERL. Processor: Intel Pentium 4 3GHz. SATA controller: ICH5 chipset revision 2. Hard disks: SATA Hard disk Western Digital 120GB, model WDC WD1200JD-00H. Ehernet: built-in interface chip Intel i82555 PHY. IDE CD-ROM drive. Slackware 9.1. Kernels 2.4.22 and 2.4.30
  1. Connect CD-ROM drive to the Primary IDE Channel and set it master
  2. When booting press 'Delete' to enter BIOS Setup Utility. Go to 'Advanced', 'Drive Configuration'. 'ATA/IDE Configuration' select 'Legacy'. 'Legacy IDE Channels' select 'SATA P0/P1, PATA Pri'. Go to 'Boot', 'Boot Device Priority' '1st Boot Device' select the CD-ROM drive
  3. Boot from CD-ROM
  4. Linux sees first HD as /dev/hdc Make partitions and setup your Linux When configuring Linux you can enable Hotplug Subsystem at boot, this will help detect built-in ethernet interface.
  5. Reboot. Enter BIOS and set to boot from HD
  6. Compile new kernel. 2.4.22 has no SATA support, so I have used 2.4.30. From SCSI support select 'SCSI support', 'SCSI disk support', from SCSI low-level drivers select 'Serial ATA (SATA) support' and 'Intel PIIX/ICH SATA support'
  7. If you want to use built-in ethernet interface driver in kernel select 'Marvell Yukon Chipset / SysKonnect SK-98xx Support' from Ethernet (1000Mbit) menu.
  8. Install new kernel. Configure lilo.conf too boot new kernel and run lilo.
  9. Edit /etc/fstab, change hdc with sda.
  10. Reboot.
  11. When booting enter BIOS. Go to 'Advanced', 'Drive Configuration'. 'ATA/IDE Configuration' select 'Enhanced'. Save and exit.
  12. When booting Linux at boot prompt write "kernel_label root=/dev/sdaN" where N is the number of the root partition.
  13. Now Linux sees hard disk as /dev/sda. From dmesg output you can see somethig like this
    ata1: SATA max UDMA/133 cmd 0xEC00 ctl 0xE802 bmdma 0xDC00 irq 10
    ata2: SATA max UDMA/133 cmd 0xE400 ctl 0xE002 bmdma 0xDC08 irq 10
    ata1: dev 0 cfg 49:2f00 82:346b 83:7f61 84:4003 85:3469 86:3c41 87:4003 88:207f
    ata1: dev 0 ATA, max UDMA/133, 234441648 sectors: lba48
    ata1: dev 0 configured for UDMA/133
    ata2: SATA port has no device.
    scsi0 : ata_piix
    scsi1 : ata_piix
      Vendor: ATA       Model: WDC WD1200JD-00H  Rev: 08.0
      Type:   Direct-Access                      ANSI SCSI revision: 05
    Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
    Partition check:
     sda: sda1 sda2 sda3 sda4
    
  14. Edit lilo.conf, change hdc with sda, execute lilo.
  15. Reboot to test.
  16. Finish.