copy/clone GPT partition scheme from one hard disk to another

As we know, sfdisk doesn’t support gpt partition tables, instead sfdisk we can use gdisk tool.

yum install gdisk


[[email protected] ~]# sgdisk --backup=sdc.back /dev/sdc
The operation has completed successfully.

[[email protected] ~]# sgdisk --load-backup=sdc.back /dev/sde
The operation has completed successfully.

[[email protected] ~]# sgdisk -G /dev/sde

500 OOPS: vsftpd: refusing to run with writable root inside chroot()

During the setting up vsftpd(2.3.5-3) daemon in Debian Wheezy, I found the following error 500 OOPS: vsftpd: refusing to run with writable root inside chroot() when you try to open ftp connection to the server.This appears when chroot_local_user=YES option is enabled in /etc/vsftpd.conf.Many people had the same problem.This is BUG which is already reported.We can fix this problem with additional patch.

vim /etc/apt/sources.list

add
deb http://ftp.cyconet.org/debian wheezy-updates main non-free contrib

apt-get update


aptitude install -t wheezy-updates debian-cyconet-archive-keyring vsftpd

vim /etc/vsftpd.conf
add

allow_writeable_chroot=YES

service vsftpd restart


[email protected]:~# dpkg -l | grep vsftpd
ii vsftpd 2.3.5-10~update.1 i386 lightweight, efficient FTP server written for security

mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES

This error occurs during mysqldump process,

mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES

add the following parameter to mysqldump command “–single-transaction” to solve the problem.