coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Tuesday May 21, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 68 guests online

Newest Member

nbewwmbxog

Hit Counter
11549162 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620142
Members:22813





Search coolcommands.com
Search Keyword:


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



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51940
Category AIX49006
Category General UNIX47518
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum