Blade server hard disk boot Linux independent installation (2)

  
        Includes grub process files and grub configuration files.

c. Enter the following command to install grub to disk B's first partition, as shown in Listing 6 below: grub-install --root-directory=/mnt/sdb /dev/sdb1 -recheck:

Listing 6: Installing grub




blade8:~ # grub-install -root-directory=/mnt/Sdb /dev/sdb1 -recheckProbing devices to guess BIOS drives. This may take a long time.Installation finished. No error reported.This is the contents of the device map /mnt/sdb/boot/grub/device.map.Check if This is correct or not. If any of the line is incorrect, Fix it and re-run the script 'grub-install'.(fd0) /dev/fd0(hd0) /dev/sda(hd1) /dev/sdb 


You have successfully created Disk B's bootable disk mount partition with grub. Next, you need to make grub start the SUSE installer when the disk boots. First, you need to copy the kernel and initrd files to the installation partition, and then you need to prepare the grub configuration file.


Step 5: Prepare the kernel for installation

Prepare the kernel for installation by copying the installation kernel by installing the ISO file from SUSE. Create a /mnt/sdb/boot folder and copy the linux files and initrd from the ISO file /boot/i386/loader/to the new folder.


Step 6: Prepare the Linux installation image file


Install the image file for Linux by creating a /mnt/sdb/SUSE file. Be prepared to copy all the files in the SUSE ISO image to the new folder.

Note: You must copy the contents of the ISO to the specified directory. SUSE 10 does not support direct calling of ISO files. If you only put the ISO file here, the system will not be able to find the installation resource file.


Step 7: Preparing for SUSE Installation


Prepare the autoinst.xml file for SUSE installation. Create an autoinst.xml file using yast autoinstall. You need to change the following two parts of the file:

a. Add a section in the boot manager section so that the user can select this boot menu to start the system. The system will begin to install the operating system again and will return to its original state. Add the following code to the boot manager section:

Listing 7: Updated Boot Manager section



 ... ramdisk_size=8192 install =hd://sda1/SUSE autoyast=file:///mounts/extra/autoinst.xml splash=silent showopts (hd0,0)/boot/initrd (hd0,0)/boot/linux 3 SUSE Linux Enterprise Server 10 Installation install /dev/sda1 image ... 


Note: If a user chooses to launch from this menu, all data on this disk will be lost and the installation will be formatted. The partition of this user.

b. Change the partition portion of the file to ensure that the installation does not create and format partition 1; this also allows the partition to be hidden in the system. The following is the partition part used by autoinst.xml file 1:

Listing 8: The updated partition part



 /dev/sda false ext3 false 131 1 primary 7402719232 swap true swap 130 2 primary auto reiser true /131 3 primary 


max all


We will use the entire disk, but we can't create and format it The initial partition.

Copyright © Windows knowledge All Rights Reserved