fdisk /dev/sdb <<EOF
n
p


w

EOF

mkfs.ext4 /dev/sdb1

mkdir /data

echo "$(blkid  /dev/sdb1 -o export | head -1)   /data ext4 acl,quota,defaults   0       0" >> /etc/fstab

mount /data

root@ubuntu:~/install# cat fs-install ^C
root@ubuntu:~/install# vi fs-install 
root@ubuntu:~/install# cat fs-install 

fdisk /dev/sdb <<EOF
n
p
1


w
y

EOF

mkfs.ext4 /dev/sdb1

mkdir /data

echo "$(blkid  /dev/sdb1 -o export | head -1)   /data ext4 acl,usrquota,grpquota,rw	0       0" >> /etc/fstab

mount /data

quotacheck -gf /data
quotaon /data

mkdir /data/dbb
mkdir -p /data/projects/projects1
setfacl -m group:project1:rwx /data/projects/project1
setfacl -d -m group:project1:rwx /data/projects/project1
setfacl -d -m group:public:rx /data/projects/project1
chmod g+s /data/projects/project1

mkdir /data/scratch
chmod a+rwxt /data/scratch

