Chapter 7 . Installing Linux 259 To use (Sri lanka web server)

Chapter 7 . Installing Linux 259 To use fdisk to change your partitions, you need to identify the hard disk you are partitioning. For example, the first IDE hard disk is identified as /dev/hda. So, to partition your first IDE hard drive, you can begin (as root user) by typing: # fdisk /dev/hda For different hard drive types or numbers, /dev/hda is replaced by the name of the device you want to work with. Table 7-1 shows some of your choices. Table 7-1 Disk Device Names Device Description /dev/hda For the first IDE hard disk; hdb, hdc, and so on for other IDE disks. /dev/sda For the first SCSI hard disk; sdb, sdc, and so on for other SCSI disks. /dev/rd/c0d0 For a RAID device. /dev/ida/c0d0 Also for a RAID device. After you have started fdisk, type m to see the options. Here is what you can do with fdisk: . Delete a partition Type d and a partition number, and then press Enter. For example, /dev/sda2 would be partition number 2. (The deletion won t take effect until you write the change you can back out up to that point.) . Create a partition If you have free space, you can add a new partition. Type n; l for a logical partition (5 or over) or p for a primary partition (1 4); and a partition number from the available range. Then choose the first cylinder number from those available. (The output from fdisk l shown earlier will show you cylinders being used under the Start and End columns.) Next, enter the cylinder number the partition will end with (or type the specific number of megabytes or kilobytes you want: for example, +50M or +1024K). You just created an ext3 Linux partition. Again, this change isn t permanent until you write the changes. . Change the partition type Press T to choose the type of file system. Enter the partition number of the partition number you want to change. Type the number representing the file system type you want to use in hexadecimal code. (Type L at this point to see a list of file system types and codes.) For a Linux file system, use the number 83; for a Linux swap partition, use 82; and for a windows FAT32 file system, use the letter b.
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.

Leave a Reply