Chapter 7 . Installing (Java web server) Linux 259 . Delete

Chapter 7 . Installing Linux 259 . 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. . Display the partition table. Throughout this process, feel free to type p to display (print on the screen) the partition table as it now stands. . Quit or save. Before you write your changes, display the partition table again and make sure that it is what you want it to be. If you don t like a change you make to your partitions, press Q to exit without saving. Nothing changes on your partition table. If your changes are correct, write them to the partition table by pressing W. You are warned about how dangerous it is to change partitions, and you must confirm the change. An alternative to the menu-driven fdisk command is sfdisk, which is a commandline oriented partitioning tool. With sfdisk, you type the full command line to list or change partitions, instead of being taken through a set of prompts (as with fdisk). See the sfdisk man page for details. Linux experts often prefer sfdisk because it can be used in combination with other commands to take and output partitioning information. Tips for Creating Partitions Changing your disk partitions to handle multiple operating systems can be very tricky. Part of the reason is that each different operating system has its own ideas about how partitioning information should be handled, as well as different tools for doing it. Here are some tips to help you get it right: . If you are creating a dual-boot system, particularly for Windows ME or Windows XP, try to install the Windows operating system first. Otherwise, the Windows installation may make the Linux partitions inaccessible.
Check Tomcat Web Hosting services for best quality webspace to host your web application.

Leave a Reply