Horje
ubuntu format new drive and mount for backup Code Example
ubuntu 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
We need to generate a lot of random bytes. It is a good idea to perform some other action Code Example We need to generate a lot of random bytes. It is a good idea to perform some other action Code Example
virtiual Machine setup for QEMU in linux Code Example virtiual Machine setup for QEMU in linux Code Example
sed allow root login Code Example sed allow root login Code Example
git borrar rama local y remote Code Example git borrar rama local y remote Code Example
fdart string to uri Code Example fdart string to uri Code Example

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