Business web site - A part of the Linux file system,

A part of the Linux file system, Swap space for Linux, or Other file system types (perhaps containing other bootable operating systems.) For our purposes, I want to focus on partitions that are used for the Linux file system. To see what partitions are currently set up on your hard disk, you can use the fdisk command as follows: # fdisk -l Figure 10-5 shows how the fdisk command displays partition information in a Terminal window. Figure 10-5: View disk partitions with the fdisk command. This output shows the disk partitioning for a computer running both Red Hat Linux and Microsoft Windows. You can see that the Linux partition on /dev/hda3 has most of the space available for data. There is a Windows partition (/dev/hda1) and a Linux swap partition (/dev/hda5). There is also a small /boot partition (49MB) on /dev/hda2. In this case, the root partition for Linux has 31.881GB of disk space and resides on /dev/hda3. Next, to see what partitions are actually being used for your Linux system, you can use the mount command (with no options). The mount command can show you which of the available disk partitions are actually mounted and where they are mounted. # mount /dev/hda3 on / type ext3 (rw) none on /proc type proc (rw) /dev/hda2 on /boot type ext3 (rw) none on /dev/pts type devpts (rw,gid=5,mode=0620) Note Notice that /proc and /dev/pts are shown as file systems because they represent different file system types (proc and devpts, respectively). The word “none,” however, indicates that they are not associated with a separate partition. The only mounted partitions in this case are /dev/hda2 and /dev/hda3, which provide space for the /boot directory (which contains data for booting Linux) and rest of the Linux file system beginning from the root (/), respectively. If you were to have multiple partitions mounted on your file system, they would be shown here as well. After the word “type,” you can see the type of file system contained on the device. (See the description of different file system types later in this chapter.) Particularly on larger Linux systems, you may have multiple partitions for several reasons: Multiple hard disks You may have several hard disks available to your users. In that case you would have to mount each disk (and possibly several partitions from each disk) in different locations
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.

Leave a Reply