Files
bikinibottom/TuringPi/disks.md
T
2026-05-30 01:11:13 +02:00

5.2 KiB

Disk(s)

Format and mount the disks

sudo fdisk -l

**With disk <xxx>**
sudo fdisk /dev/<xxx>
(create new primary partition)

sudo mkfs -t ext4 /dev/<xxxp1>
sudo blkid -s UUID -o value /dev/<xxxp1>

If needed, check and repair the filesystem

sudo e2fsck -fDC0 /dev/sdaX

Add mount point to fstab

sudo mkdir -p /mnt/<folder>
echo "UUID=... /mnt/<folder>      ext4    defaults    0       0" | sudo tee -a /etc/fstab

bob (mmcblk0 / nvme0n1 / sda / sdb)

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/mmcblk0p1 during installation
UUID=15c5c8b9-af8d-4d35-bf0b-47443d554971 /               ext4    errors=remount-ro 0       1
# swap was on /dev/mmcblk0p5 during installation
UUID=1c99fbca-6863-4f8a-b8da-4bbea3fbe8c9 none            swap    sw              0       0
# nvme
UUID=b656c935-5ef2-45a6-894e-c7062a75a862 /mnt/ssd      ext4    defaults    0       0

carlo (mmcblk0 / sda )

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/mmcblk0p2 during installation
UUID=327ff1db-0f93-49e7-9f80-79964eb2ad02 /             ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/mmcblk0p1 during installation
UUID=B23E-A140                           /boot/efi      vfat    umask=0077      0       1
# swap was on /dev/mmcblk0p3 during installation
UUID=69691db2-1213-4f0b-8797-a246e6924c4a none          swap    sw              0       0
# ssd
UUID=6702c3b0-eb03-4c1f-9ddc-56f4f7736222 /mnt/ssd      ext4    defaults        0       0
/mnt/ssd/var    /var    none    bind
/mnt/ssd/tmp    /tmp    none    bind
/mnt/ssd/home   /home   none    bind

sandy (nvme0n1 / sda )

# <file system>     <mount point>  <type>  <options>   <dump>  <fsck>
UUID=1cf633ab-4f5f-42da-b347-31282732a446 /             ext4    defaults,x-systemd.growfs    0       1
# nvme 
UUID=e2e3a295-9731-4aa2-996f-c72c2b81f40f /mnt/ssd      ext4    defaults        0       0
# hdd
UUID=755c7782-171b-4dab-8b06-31c02557141f /mnt/hdd      ext4    defaults        0       0

gary (nvme0n1)

# <file system>     <mount point>  <type>  <options>   <dump>  <fsck>
UUID=1cf633ab-4f5f-42da-b347-31282732a446 /             ext4    defaults,x-systemd.growfs    0       1
# nvme
UUID=124046b7-f656-4691-933b-4673e5abbb17 /mnt/ssd      ext4    defaults    0       0

sheldon (nvme0n1 / sda / sdb)

# <file system>     <mount point>  <type>  <options>   <dump>  <fsck>
UUID=1cf633ab-4f5f-42da-b347-31282732a446 /             ext4    defaults,x-systemd.growfs    0       1
# nvme
UUID=fd0d6603-c6f1-43fe-a993-39f79b4e3eb8 /mnt/ssd      ext4    defaults    0       0
# hdds (LVM
# sda a47b05b1-3bc6-45ba-bfb4-e0aca4761fe5
# sdb 8a54c53d-427f-4085-9922-76c9ecaf30fa
# lvm /dev/mapper/hdds-hdd
UUID=951bfd08-c684-4203-9dd3-d041f3b4606e  /mnt/hdd      ext4    defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2

pearl (nvme0n1)

# <file system>     <mount point>  <type>  <options>   <dump>  <fsck>
UUID=1cf633ab-4f5f-42da-b347-31282732a446 /              ext4    defaults,x-systemd.growfs    0       1
# nvme
UUID=6d255d62-eafe-4333-87b0-9e0c6bf6a44d /mnt/ssd      ext4    defaults    0       0

krabs (sad / sdb) (nfs server)

UUID=0c390345-ca52-45fd-9097-6e931d651a8f       /       ext4    defaults,x-systemd.growfs       0       1
# LVM
/dev/hdds/datas         /mnt/data               ext4    defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
# NFS exports
/mnt/data/cloud                 /srv/nfs4/cloud         none    bind,nofail     0 0
/mnt/data/media                 /srv/nfs4/media         none    bind,nofail     0 0
/mnt/data/media/downloads       /srv/nfs4/downloads     none    bind,nofail     0 0

bernie (nvme0n1) ...

UUID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00       /               ext4    defaults,x-systemd.growfs       0       1
# SSD
UUID=e8d74f7a-642a-486d-92db-d39388d1545f       /mnt/ssd        ext4    defaults        0       0

patrick (nvme0n1)

UUID=0ED4-57AA /config vfat defaults,x-systemd.automount,fmask=0077,dmask=0077 0 2
UUID=0ED4-A6E5 /boot/efi vfat defaults,x-systemd.automount,fmask=0077,dmask=0077 0 2
UUID=8ac0019e-35c5-4065-828a-804da615ee7a / ext4 defaults 0 1

Check

cat /etc/fstab

Mount disk...

sudo mount -a
sudo systemctl daemon-reload

df -h /mnt/<folder>