Mount a filesystem by UUID in Linux
Anwser:
Assumed you know the UUID of your harddisks, you want to mount it for use, try the following method:
# mount -U 9f95f559-9986-4dfc-8661-849bb54ed5a5 /mnt/data1
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Mount a filesystem by UUID in Linux
Anwser:
Assumed you know the UUID of your harddisks, you want to mount it for use, try the following method:
# mount -U 9f95f559-9986-4dfc-8661-849bb54ed5a5 /mnt/data1
How to list all the UUID of my hard disks
Answer:
To list all the UUID of my hard disks, you can use the blkid command.
# sudo blkid
/dev/sda1: UUID="9f95f559-9986-4dfc-8661-849bb54ed5a5" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="0fe4eedc-65dd-4b46-85c9-11795f2cdc57"
Send the crontab result to email
Answer:
To send the crontab's result to email, follow the method below.
# crontab -e
Then add the line at the beginning
Save the crontab.
How to check the logrotate status?
Answer:
To check the current logrotate status, e.g. which files are covered by logrotate, what are their last processed date etc.
You can check the /var/lib/logrotate/status file
# cat /var/lib/logrotate/status
"/var/log/apache2/access.log" 2008-12-7
"/var/log/apache2/error.log" 2009-1-25
"/var/log/apache2/other_vhosts_access.log" 2009-1-25
"/var/log/apt/term.log" 2010-2-1
...
Check Debian version information
Answer:
To check the Debian version information in Debian/Ubuntu
Try:
# cat /etc/debian_version
squeeze/sid