barcode printer vb.net 6: Managing the Linux File System in Software

Printer ANSI/AIM Code 128 in Software 6: Managing the Linux File System

6: Managing the Linux File System
Code 128B Creation In None
Using Barcode printer for Software Control to generate, create USS Code 128 image in Software applications.
USS Code 128 Decoder In None
Using Barcode scanner for Software Control to read, scan read, scan image in Software applications.
FIGURE 6-38
ANSI/AIM Code 128 Printer In C#.NET
Using Barcode encoder for Visual Studio .NET Control to generate, create Code128 image in VS .NET applications.
Code 128 Creator In VS .NET
Using Barcode drawer for ASP.NET Control to generate, create Code 128C image in ASP.NET applications.
Viewing mounted file systems with mount
Encoding Code 128 Code Set C In Visual Studio .NET
Using Barcode printer for VS .NET Control to generate, create Code 128 image in .NET framework applications.
USS Code 128 Encoder In Visual Basic .NET
Using Barcode maker for .NET Control to generate, create Code128 image in .NET applications.
After mounting the partition, you can use the mount command with no switches to view all mounted file systems, as shown in Figure 6-38 If you look at the last line of the output from mount, you ll see that /dev/sdc1 is mounted on /mnt/extraspace and uses the Reiser file system In addition, whenever you mount or unmount a partition, the /etc/mtab file is updated with a list of mounted file systems You can view this file as well to see a list of mounted file systems You can also view /proc/mounts to see a list of mounted file systems Another useful utility for viewing mounted partitions is df This utility displays your partitions, where they re mounted, how much space has been used, and how much free space is still available If, for some reason, you wanted to unmount a partition, you can use the umount command To umount a partition, simply enter umount followed by the device or the mount directory for the partition For example, to umount the partition shown in Figure 6-38, you would enter umount /dev/sdc1 or umount /mnt/extraspace Notice that the command is umount, not unmount This is yet another Linux gotcha! This brings up yet another issue when working with Linux Just because you mount a file system with mount does not mean it will stay mounted if you reboot the system
Paint UPC-A Supplement 2 In None
Using Barcode creator for Software Control to generate, create GS1 - 12 image in Software applications.
Bar Code Drawer In None
Using Barcode creation for Software Control to generate, create barcode image in Software applications.
Manage Disk Partitions
Generate EAN 128 In None
Using Barcode drawer for Software Control to generate, create UCC-128 image in Software applications.
Barcode Creator In None
Using Barcode generator for Software Control to generate, create barcode image in Software applications.
FIGURE 6-39
Generate ECC200 In None
Using Barcode creator for Software Control to generate, create DataMatrix image in Software applications.
Code 128C Maker In None
Using Barcode creation for Software Control to generate, create Code 128 Code Set C image in Software applications.
Viewing the /etc/fstab file
EAN-8 Encoder In None
Using Barcode maker for Software Control to generate, create UPC - 8 image in Software applications.
USS Code 128 Reader In .NET Framework
Using Barcode scanner for .NET Control to read, scan read, scan image in .NET framework applications.
As long as the system stays running, the partition will stay mounted However, if you reboot, the partition won t be remounted when the system starts back up You can remedy this using the /etc/fstab file This file contains a list of file systems that the operating system mounts whenever it boots A typical /etc/fstab file is shown in Figure 6-39 I know this file looks a little confusing at first, but it actually isn t Each line in the /etc/fstab file specifies a separate file system to be mounted on boot Each line is composed of six fields, listed in Table 6-6
Paint Linear In .NET
Using Barcode creator for Visual Studio .NET Control to generate, create 1D image in VS .NET applications.
Making UCC-128 In Visual Studio .NET
Using Barcode encoder for VS .NET Control to generate, create EAN 128 image in Visual Studio .NET applications.
TABLE 6-6
Data Matrix 2d Barcode Encoder In Objective-C
Using Barcode generation for iPad Control to generate, create Data Matrix 2d barcode image in iPad applications.
Barcode Scanner In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
Fields in the /etc/fstab file
EAN13 Decoder In None
Using Barcode decoder for Software Control to read, scan read, scan image in Software applications.
Make Data Matrix In Visual C#
Using Barcode creator for Visual Studio .NET Control to generate, create DataMatrix image in Visual Studio .NET applications.
Field
1 2 3 4 5 6
Function
Specifies the device and partition to be mounted for example, /dev/sda3 The directory (mount point) where the partition is to be mounted The file system type of the partition Various mount options See the man page for mount for a complete description of each one Specifies whether or not the file system should be dumped 0 means don t dump 1 means dump Specifies the order in which fsck should check the file system at reboot The root partition should be set to a value of 1 Other partitions should have a value of 2
6: Managing the Linux File System
Let s suppose we want to add the partition we created in the examples presented earlier We could open /etc/fstab in an editor, such as vi, and then add the following line:
/dev/sdc1 /mnt/extraspace reiserfs acl,user_xattr 1 2
This specifies that the /dev/sdc1 partition be mounted in /mnt/extraspace using the Reiser file system It also specifies that access control lists be enabled for the file system (a very good thing to do!) and that extended user attributes be enabled for the file system as well Now, whenever you reboot the system, the partition will be automatically mounted You can also use command-line utilities to create and mount swap partitions on your Linux system You can create swap partitions using the mkswap command First, create the partition that will be used as a swap partition using fdisk Then enter mkswap device at the shell prompt For example, to covert the second partition on the second IDE hard drive in your system to a swap partition, you would enter mkswap /dev/hdb2 at the shell prompt After converting the partition to a swap partition, you need to enable it using the /sbin/swapon command Before we finish with partitions, let s talk about fsck
Copyright © OnBarcode.com . All rights reserved.