Raspberry Pi and Arch Linux : Add a disk USB by UUID

Raspberry Pi et Arch Linux : ajouter un disque USB par UUIDI left the same structure of disk used here. Remains to mount partitions automatically at startup. The HFS partition will be the subject of a particular post because it seems not as simple as in Debian.

  1. Find the UUID of each partition IDs
    ls -l /dev/disk/by-uuid

    Raspberry Pi and Arch Linux : Add a disk USB by UUID

  2. Create the corresponding directories to mount points
    mkdir/media mkdir/media/usbdrive mkdir/media/usbdrive/share mkdir/media/usbdrive/internet mkdir/media/usbdrive/timemachine mkdir/media/usbdrive/private
  3. Edit the file /etc/fstab pour y inclure les partitions souhaitées
    UUID=31c26f5b-372e-48f0-b38e-794d9c87b6e1 /media/usbdrive/internet ext4 defaults 0 0
    UUID=f3c6b1c0-c127-4e77-8bf5-051966ed9b0c /media/usbdrive/private ext4 defaults 0 0
    UUID=0a2bc1c2-de06-41ca-b8eb-b28bece75b21 /media/usbdrive/share ext4 defaults 0 0

And this is. Vous pouvez faire un reboot to test the automatic installation or launch a command Mount followed by the device associated with the partition (ex: /dev/sda1) or -a to mount all partitions to ensure that there is no error message.

Next step, deal with the HFS partition !

You may also like...