2 Replies Latest reply on Jan 4, 2018 7:54 AM by jayrabe

    pi-desktop ssd mounting


      I have a pi3 in a pi-desktop box, with a samsung ssd.

      Everything works as far as the box itself, and partitioning the ssd using GParted.


      I followed instructions to mount the ssd using:

      > sudo mount /dev/sda1 /media/ssd/ssd

      with /media/ssd/ssd directory created earlier and permissions set per instructions


      However the mounting location does not persist through a power cycling.

      That is, if I power down, then back up, the ssd is mounted to the default location of /media/pi


      How can I get the ssd to always be mounted to /media/ssd/ssd through a power cycling?

        • Re: pi-desktop ssd mounting
          Roger Wolff

          Persistant mount points are created with a file called "fstab". this is located in /etc .


          The file has columns of <device> <mountpoint> <fs type> <options> <dump> <pass>


          The last two are "oldfashioned". I don't think they are actively used by the system anymore.


          So you'd add:

          /dev/sda1 /media/ssd/ssd ext4 errors=remount-ro 0 1


          The file on my UbuntuPC has some "help" on what needs to be in the file, inside the file itself. On my pi the file just has a few default entries: Leave those alone and add the line you want to add.

          2 of 2 people found this helpful