How to mount a secondary/additional harddrive

For centos/fedora
run "fdisk -l" to see what drives are recognized by the server.
find the new disk name. Usually its /dev/sdb

Partition the drive
run "fdisk /dev/sdb"
select add a new partition "n"
select partition number "1"
select write table to disk and exit "w"
Format the drive
run "mkfs.ext3 /dev/sdb1"
Mount the drive
Now decide where you want to mount the drive.
for example mount to /mnt: run "mount /dev/sdb1 /mnt"

To add this to autostart there are 2 options:
1. add command to /etc/rc.local
"mount /dev/sdb1 /mnt"
2. add line in /etc/fstab.conf
"/dev/sdb1 /mnt ext3 defaults 1 2"




How to create a partition size larger than 2TB using parted

Linux has a 2TB limit on the partition size. Find the drive you want to partition # fdisk -l...

重设MySQL root密码

如果忘记了MySQL的root密码,可以用以下方法重新设置: 1. KILL掉系统里的MySQL进程; killall -TERM mysqld 2....

Change DirectAdmin's password

Direct Admin; by default automatically creates an administrator account when it's initially...

How to change root password

To change the root password you must be logged in as root. Then enter "passwd root" It will...

How to Modify Running Services in CentOS, RedHat, and Fedora Distributions

To enable services in CentOS, RedHat, and Fedora distributions, you can determine a service and...

Powered by WHMCompleteSolution