LABLE under fstab and grub.conf
I saw LABLE used in my grub.conf and fstab. Where can I see a list of all the lable? and any quick summary of what lable do and how to use it?
|
here is, I guess you can say a rule of thumb for creating a label :
Code:
/sbin/e2label /dev/hdaX /some/mount/point Code:
LABEL=/some/mount/point /some/mount/point ext3 defaults 1 2 (where X here and above will be a number specifying the partition.) As of what does it do, well nothing other than make things look cleaner and robust, rather than using device names, you can use a word so to speak. |
labels are an ext2 filesystem thing. Do (as root)
/sbin/fdisk -l (lowercase ell) Any partitions that are 'Linux' may have a label. You can see the label with 'e2label'. Again, as root, e2label /dev/hda1 (sub your valid ext2/3 partition) The value of using labels is that as long as they are unique, the physical device name becomes irrelevant for the purpose of mounting partitions at particular mountpoints. If you connected a disk as, say, primary IDE slave (hdb), and then moved it to a secondary master (hdc), the labels would insulate you against having to modify fstab entries for the ext2/3 partitions on that drive. --- rod. |
Quote:
--- rod. |
Is there a way to show all the label the OS have?
I tried man e2label, you can only set label or check label for a specific device. Is the "label" saved to a file? |
I repeat: 'labels are an ext2 filesystem thing'.
--- rod. |
Quote:
|
Quote:
Quote:
|
All times are GMT -5. The time now is 11:31 AM. |