![]() – exec/noexec : Allows the execution or not of binary files on the device. It is preferable to enable synchronous writes on external media (USB keys, USB/Firewire/eSATA disks, etc.). With async the writes go through a buffer that defers the writes (more efficient) making the hand faster. – sync/async :Enables or disables synchronous writes. – defaults : includes the rw, suid, dev, exec, auto,nouser, et async options. The command below mounts the file system as read-only with the ro option: # mount -t ext3 -o rw /dev/sda1 /data /sda6 Mounting options :įile systems can be mounted with options that modify its behavior. To find out the UUID of your file system you can list the contents of /dev/disk/by-uuid which contains UUID symbolic links pointing to the corresponding device file : # ls -l /dev/disk/by-uuid/ you can also mount a file system using its UUID : # mount -t ext4 -U 97f654e7-122e-4188-9j71-355fb8db28ie /data You can also mount a file system by LABELS instead of device names by using the -L parameter : # mount -t ext3 -L DATA /data Mounting with UUIDĮach file system has a unique identifier called UUID ( Universal Unique Identifier). If you do not specify the file system of the partition (here ext4) the command will try to detect it. Now we can use our partition and access it via the /data directory. ![]() Then run the following command : # mount -t ext4 /dev/sda1 /data You must first create the directory via which you will access your partition, in my case it is via the directory /data : # mkdir /data We Suppose you want to mount the /dev/sda1 partition whose file system is ext3. – mount point : this is the directory through which you access your file system. – device : this is the device you want to mount (devices are located in /dev). – o options : you can mount a partition with options like read-only options. – FS_type : file system type of the partition you want to mount. To mount a file system, simply type the following command : mount -t FS_type -o options device mount_point In order to use a partition that you have just formatted, you must create a mount point through which you can access your file system and store folders and files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |