|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620142 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
e2label - how to label a filesystem in Linux |
Description
In Linux, labelling a device specifically will make the system more robust because adding or removing a SCSI disk changes the disk device name but not the filesystem volume label.
To check if a volume label exists on a device in Linux:
# e2label /dev/sda6 /1 <=== LABEL exists
# e2label /dev/sdb3 <=== NO LABEL exists
To label a device:
# e2label /dev/sdb3 NODE0000
Update /etc/fstab to use the volume label instead of the device name:
# grep NODE000 /etc/fstab #/dev/sdb3 /db2fs/bculinux/NODE0000 ext3 noauto 0 0 LABEL=NODE0000 /db2fs/bculinux/NODE0000 ext3 noauto 0 0
|
Example
e2label /dev/sdb3 NODE0000 |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: grep - how to search for strings or pattern in files
Example: grep -i -l -n -w string *
[show me the details] |
coolcommand: how to view the boot log in AIX
Example: alog -o -t boot
[show me the details] |
coolcommand: dsmc - restore from the command line with TSM (Tivoli Storage Manager)
Example: dsmc res
[show me the details] |
coolcommand: lmktemp - create a large file in IBM AIX
Example: /usr/sbin/lmktemp file 100m
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51940 |
| Category AIX | 49006 |
| Category General UNIX | 47518 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|