1 |
parted -s /dev/sdb mkpart primary 1MiB 100% |
2 |
|
3 |
mkfs.xfs /dev/sdb1 |
4 |
|
5 |
mkdir -p /var/librarian |
6 |
|
7 |
echo `xfs_admin -u /dev/sdb1 | sed 's/ //g'` /var/librarian xfs defaults,uquota 0 0 >> /etc/fstab |
8 |
|
9 |
mount -a |
10 |
|
11 |
useradd librarian -m -s /bin/bash |
12 |
|
13 |
#++ cf. https://www.suse.com/support/kb/doc?id=7016701 |
14 |
xfs_quota -xc 'limit -u bsoft=500m bhard=1000m librarian' /var/librarian |
15 |
|
16 |
chown librarian:librarian /var/librarian |
17 |
chmod g+s /var/librarian |
18 |
|
19 |
su - librarian |
20 |
|
21 |
for n in `seq 10`; do dd if=/dev/zero of=/var/librarian/$n.img bs=1M count=10; done |
22 |
|
23 |
exit |
24 |
|