468x60

venerdì 28 agosto 2015

How to make a new disk usable on Debian

view devices:
# fdisk -l

device: /dev/vdb1

create partition:
# cfdisk /dev/vdb

format:
# mkfs.ext4 /dev/vdb1

UUID:
# blkid

/dev/vdb1: UUID="f6c741e8-6595-4952-9c62-0c82b6155700" TYPE="ext4" PARTUUID="8811bc88-b63c-4a74-8fd5-3fa33f9d2454"

# nano /etc/fstab
add a line like the following
UUID=f6c741e8-6595-4952-9c62-0c82b6155700 /var/www        ext4    errors=remount-ro 0       1

create mount point
# mkdir /var/www

temp mount
# mount /dev/vdb1 /mnt

umount
# umount /mnt

Nessun commento:

Posta un commento

468x60

Cerca su Google

Cerca nel Blog con Google