Saturday, January 8, 2011

How To Reset Polo Club Lock

fstab and UUID

within / etc (according to the standard Filesystem Hierarchy Standard FHS ) in GNU / Linux, among the various configuration files, any one (fstab) that specifies which devices must be installed with their options. Normally

to identify a device (a specific disk partition) is convention to use a UUID instead of the code name of the file system.
If you add or remove a disc, the system may change the file names and to restore the system you have to suitably amend the fstab file. Using
universal codes associated with each partition, this problem does not occur, because the mapping between file system and mount directory need not be changed.

In systems Ubuntu and you can see the file system and its UUID by using the following commands.

To view a list of all disks and partitions recognized by the system:
sudo fdisk-l

example in my system the output is as follows: Device Boot Start End
Blocks Id System
/ dev / sda1 * 1 1912 15358108 + 7 HPFS / NTFS
/ dev/sda2 1913 1925 104422 + 83 Linux
/ dev/sda3 1926 2186 2096482 + 82 Linux swap / Solaris
/ dev/sda4 2187 12161 80124187 + 5 Extended
/ dev/sda5 2187 4736 20482843 + 83 Linux
/ dev/sda6 4737 5501 6144831
83 Linux / dev/sda7 5502 12161 53496418 + 83 Linux

and to see its UUID, simply run the command:
ls-la / dev / disk / by-uuid

and its output is like this:
3265f9e7-3d10-417b- b739-3a2650c67cba -> ../../sda5
6fbfe571-0156-420B-8089-72edbd12e041 -> ../../sda7
239th-87c37009-4a88-8d3a-68a701ece58f -> ../../sda2
b0gdcb1f-9a59-43cd-ae96-843fbcf3027d -> ../../sda6
C19C42BE9A43ADCB -> ../../sda1
f53b5dec-cb46-41ac-a48f-a465c10b53ae -> ../../sda3

NB: UUID is a value that depends on the characteristics of the disk and partition: so any adjustments to partitions (resize or move) will have the effect of changing values \u200b\u200bUUID of the partitions of the system.

0 comments:

Post a Comment