Blade server hard disk boot Linux stand-alone installation (1)

  

Start with two systems:

· System A is preloaded with SLES10, and grub is used as the boot loader. It has two SCSI disk interfaces, but only the first one is used.

· System B is an empty system with only one disk drive, it does not have an operating system loaded. We will use System A to prepare System B for the self-installed hard drive.

The first is that we make a self-installing disk. Format the disk with two partitions:

· The first (smaller) partition will contain the SUSE installation media; we call it the installation partition.

· The second (larger) partition is prepared for the operating system; we call it the operating system partition.


Step 1: Correct cabling


Turn off the power of both systems and unplug the disk from System B (Disk B) , insert disk B into the second SCSI disk interface of system A. Then boot the system from its own disk (disk A), which is the first SCSI disk.


Second Step: Disk B Partition


Use the fdisk command to partition Disk B. If you use a SCSI disk, the disk name is /dev/sdb (if you use another type of disk, for example, an IDE disk, you need to adjust the name.) You can use the fdisk –l command to view your disk device. name.

a.Run fdisk /dev/sdb

b. Enter d to delete an existing partition. You can also skip this step if your disk is empty.

c.Enter n to add a new partition. Create a mount partition as the primary partition by selecting the primary partition and selecting the number one as the partition number. Next, assign a sector from 1 to 900 (approximately 6.3GB is appropriate because the SUSE installation media requires approximately 4.3GB) to display Listing 1. You can adjust as needed.

List 1: Creating an installation partition



blade8:~ # fdisk /dev/sdbThe number of cylinders for this disk is set to 8924. There is nothing wrong with that, but this is larger that 1024, and could be in certain setups cause problems with:1) software that runs at boot time (eg, old versions of LILO)2) booting and partitioning software from other OSs (eg , DOS FDISK, OS/2 FDISK) Command (m for help): nCommand action e extended p primary partition (1-4) p Partition number (1-4) : 1 First cylinder (1-8924, default 1): Using Default value 1 Last cylinder or +size or +sizeM or +sizeK (1-8924, default 8924) : 900 Command (m for help): 


d. Enter n to create another partition ( Operating system partition) as shown in Listing 2 below:

Listing 2: Creating an operating system partition



Command (m for help): n C Ommand action e extended p primary partition (1-4) p Partition number (1-4) : 2 First cylinder (901-8924, default 901): Using default value 901 Last cylinder or +size or +sizeM or +sizeK (1 -8924, default 8924) : Using default value 8924 Command (m for help): 


But do not store any data on this partition; this partition will be formatted during SUSE installation.

e. Enter a to switch the boot token on the first partition (installation partition), as shown in Listing 3 below. Check to make partition 1 bootable.

Listing 3: Making the installation partition bootable



Command (m for help): aPartition number (1-4) : 1 


f. Enter w to write all partition information to the table and exit the partition, as shown in Listing 4:


List 4: Write Partition Information


Command (m for help): wThe partition table has been altered; Calling ioctl() to re-read partition table.Syncing disks. 


This step will commit the changes to disk.

The disk B has been successfully partitioned now.

Step 3: Format Partitions

Use the ext3 file system to format the first partition of Disk B:

List 5: Format the first partition < Br>




 


blade8:~ # mkfs.ext3 /dev/sdb1mke2fs 1.38 (30-Jun-2005)Filesystem label =OS type: LinuxBlock size=4096 (log=2) Fragment size=4096 (log=2)904960 inodes, 1807304 blocks90365 blocks (5.00%) reserved for the super userFirst data block=056 block groups32768 blocks per group, 32768 fragments per Group16160 inodes per groupSuperblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632Writing inode tables: doneCreating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: doneThe filesystem will be automatically checked every 37 mounts Or 180 days, whichever comes first. Use tune2fs -c or -I to overr Ide.

Step 4: Install grub bootloader

Install the grub bootloader on the first partition of disk B as follows:

a. Mount the first partition to Folder, for example /mnt/sdb. Run mount /dev/sdb1 /mnt/sdb.

b. Copy the grub boot file from the /boot/grub folder to the /mnt/sdb/boot/folder.




Copyright © Windows knowledge All Rights Reserved