bsd:notes:ufs_format
This is an old revision of the document!
Table of Contents
Wipe Drive
su -
geom disk list
dd if='/dev/zero' of='/dev/da0' count='8096'
Format
su -
geom disk list
newfs -L 'NAS' -O '2' -S '512' -n -o 'time' '/dev/da0'
Mount
su -
geom disk list
mkdir -p '/mnt/NAS1' && mount -o 'async,autoro,noatime' -t 'ufs' -v '/dev/da0' '/mnt/NAS1'
gio open '/mnt'
Permissions
su
chown -R $USER:$USER '/mnt/NAS1'
chmod -R '0700' '/mnt/NAS1'
fsck
su -
umount '/mnt/NAS1'
fsck_ffs -f -r -z -y '/dev/da0'
fstab
su -
mkdir -p '/mnt/NAS1' && ee '/etc/fstab'
# 10TB NAS /dev/da0 /mnt/NAS1 ufs rw,noatime 0 2 # End
/usr/local/www/wiki/data/attic/bsd/notes/ufs_format.1781737203.txt.gz · Last modified: by Sean Rhone
