Horje
centos format new drive and mount for backup Code Example
centos format new drive and mount for backup
fdisk -l
#Find the new drive in list (/dev/sdb) has no partition and that probably means that it’s un-partitioned yet.

#create the partition on /dev/sdb by executing
fdisk /dev/sdb

#and then use following in the prompt
#– “n” for new partion
#– “p” for primary partition
#– “1” for the first partition
#– “Enter” / “Enter” for the first AND last cylinders (automatically use the entire disk)
#– “w” to save what I have done

#Format partition /dev/sdb1
mkfs -t ext3 /dev/sdb1

#create a directory to load the new drive
mkdir /backup

#load /dev/sdb1 as /backup
mount /dev/sdb1 /backup

vi /etc/fstab 
#add at the bottom
/dev/sdb1   /backup   ext3   defaults   0   0

mount -a

#If you got no errors – your mount worked, try df -h once more to see if everything is fine




Shell

Related
ubuntu 20.04 dash is conflicting with dock Code Example ubuntu 20.04 dash is conflicting with dock Code Example
view git branch changes graphically Code Example view git branch changes graphically Code Example
is outside repository at Code Example is outside repository at Code Example
activar w10 Code Example activar w10 Code Example
Rename all items in a directory to lower case Code Example Rename all items in a directory to lower case Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8