Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Lead in: This may be a little advanced to correctly answer simply, however I am a technical user and will be able to follow a complex solution.

Situation: I have a 120GB SSD and 1TB HDD in my computer. I am a user that for my situation will be formatting often as well as attempting to preserve my SSD from both large format's and uneeded in-system writes. After creating a successful filesystem structure from installation (and if need be post install configurations) that meets my needs, I will then be saving a copy of the two drives's via imaging in the event I need to restore "factory" settings without the lengthy process of re-installation. -Both drives are empty so no care has to be taken in data preservation. -I will be doing installation and if need be post configuration from within a live USB ubuntu environment. -I will be imaging both drives pre-boot to save to a seperate 16GB flash drive.

Goal: I simply require 5 partitions total between the 2 drives.

SSD

  • [ Partition 1 ][ 512 MB ][ EFI Filesystem ][ /boot ] - Grub

  • [ Partition 2 ][ FILL ][ EXT4 ][ / ] - OS and dependencies

HDD

  • [ Partition 1 ][ 512 GB ][ EXT4 ][ /home ]

  • [ Partition 2 ][ 128 GB ][ EXT4 ][ /usr - /opt - /var ]

  • [ Partition 3 ][ 16 GB ][ linux-swap ]

  • [ Unallocated ][ FILL ]

(Possibly / Undecided)

16GB RAM

  • [ Partition 1 ][ 4GB ][ TMPFS ][ /tmp ]

  • [ Unallocated ][ FILL ]

Problem: In HDD - Partition 2 I require multiple mounts to be used in a single partition on the HDD with absolutely no direct uneeded write access on part of the HDD to SSD. The installer will only work with seperate filesystems with seperate partitions. I am attempting to both reduce space used and writes to the SSD while attempting to use the HDD for the more space and write intensive directories without the need for creating partitions costing performance.

Outcome: What I expect from a solution is the steps to finalizing allocation of the root / file structure on a single partition on the SSD while placing /usr - /opt - /var - (for now) /tmp on the HDD in a single partition. Thank you in advance.

share|improve this question
add comment

1 Answer

sudo gedit /etc/fstab

  • UUID="Your unique partition UUID" /prt2 ext4 defaults 0 0
  • /prt2/usr /usr none bind 0 0
  • /prt2/opt /opt none bind 0 0
  • /prt2/var /var none bind 0 0
  • /prt2/tmp /tmp none bind 0 0

....Figured it out myself. Thanks anyway hopefully someone else can find this useful

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.