Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 25004  / 2 Years ago, sun, october 16, 2022, 4:14:13

With lots of guides and setup variations all over the internet, I find it confusing which is which to really follow. Normally, in Windows 8 my setup would be install everything in the HDD and use Intel Smart Response for a speedy setup. However as I am new to Linux I really don't know what to do.



My ideal setup would be something similar to this, but I know for a fact that IRST is not available in Linux so what I intend to do is keep the OS files in the SSD instead and keep my media on the larger HDD. A step by step procedure would be extremely helpful.






Edit: I want a system running solely on Ubuntu, with the SSD to speed things up but setting it in such a way that it does not hasten its lifespan.






# /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).
#
# <file system> <mount point> <type> <options> <dump> <pass>

# / was on /dev/sda1 during installation
UUID=80289460-5983-4349-8afc-6f3119938ee9 / ext4 errors=remount-ro 0 1

# /files was on /dev/sdb5 during installation
UUID=c1678c88-5100-41bc-8090-7887f1622c7f /files ext4 defaults 0 2

# swap was on /dev/sdb6 during installation
UUID=608e3ec2-c76e-4657-af6d-80793b5f50f6 none swap sw 0 0

More From » hard-drive

 Answers
7

Update



There are other alternatives, bcache, flashcache, dm-cache, EnhanceIO etc. that allow Ubuntu to use a small SSD and a large HDD in ways similar to Windows. See



What are the advantages/disadvantages of different SSD to HDD cacheing options (dm-cache, flashcashe...)? for differences between these.



I have no experience with these tools. See How do I install and use flashcache/bcache to cache HDD to SSD? and ArchLinux Wiki on Bcache for more on some of these methods. Thanks to Fabby for pointing me to these resources.






Original Answer



You are right. The way Windows 8 uses a small SSD and a large HDD is not available to Ubuntu.



Keeping Ubuntu OS in the SSD and the media in HHD makes sense. The /home folder (or partition) usually keeps all the media, documents, for all the users. It also keeps all the user-specific configuration files. So keeping the /home on the SSD will speed up things as the configuration files will be read quickly.



Step 1



Disable Intel Smart Response in BIOS/UEFI. Disable Secure Boot and Fast Boot. Enable Legacy Mode in BIOS if available.



Step 2



Boot from a Live DVD/USB of the version of Ubuntu you want to install and choose "Try Ubuntu." Make sure keyboard, mouse/trackpad, display, sound, Internet connections, webcam and any other things you can think off work in Ubuntu.



Step 3



Install Ubuntu in the SSD. If Legacy Mode in BIOS could not be enabled, see Ubuntu UEFI documentation on how to install. For someone new, it is easier to just have one / ext4 formatted partition with mount point / in the SSD. You can create a second /home partition in the SSD if you want, but that is not essential.



When you get to the point where you have to choose where to install(“Installation Type”),



enter image description here



choose “Something Else”. A new screen will pop out letting you choose where to install Ubuntu, format, make partitions, etc. Follow carefully the bellow:




  1. Choose and format the smaller disk (SSD) as ext4 and mount point / to install Ubuntu

  2. Choose and format the bigger disk (HDD) ext4 to just store media. Assign it a mount point /bigdrive. Alternately assign mount point /mnt/bigdriveor /media/bigdrive. See Why have both /mnt and /media? for more explanations on these alternates. If you use either of the alternates, modify following steps accordingly.

  3. Create a Swap partition at the end of the HDD and assign it the
    Swap format. It does not need any mount-point.

  4. Finish install and reboot.



Step 4



Verify:




  1. Ubuntu boots correctly.

  2. Everything works as they did when you tried Ubuntu from the Live
    DVD/USB.

  3. Open Nautilus, the file manager (similar to Windows Explorer) and
    navigate to File Systems. Verify the folder bigdrive exists.
    If you can't find bigdrive then it did not get mounted at startup.
    See
    mount two hard drives on start up
    how to fix that.

  4. Create a new folder and a new file in it to see you can actually
    write in the bigdrive. Delete these.



If you cannot create folders and files in the bigdrive follow these steps to fix the write permission.




  • Open terminal by pressing Ctrl+Alt+T
    and type



    gksudo nautilus




If this does not work, see How do I start Nautilus as root?




  • Enter your password at the prompt.


  • Within Nautilus, go to File System and find the bigdrive folder
    icon.


  • Right click on and choose Properties.


  • Go to the Permissions tab.


  • Make sure the Group and Others can Create and Delete
    Files
    .




enter image description here



Step 5




  1. Move the big folders in your /home/$USER folder to /bigdrive/$USER.
    You can do this in Nautilus using "Create New Folder" (for creating the user folder), "Cut" and "Paste" (for the directories). Let's say these folders
    are:



    ~/bin, ~/Desktop, ~/Documents, ~/Downloads, ~/Music, ~/Pictures, ~/Public, ~/Templates and ~/Videos


  2. Make symbolic links. Open a Terminal by pressing
    Ctrl+Alt+T and type each line and
    press Enter: (replace "$USER" by your user name)



    ln -s /bigdrive/$USER/bin/ bin



    ln -s /bigdrive/$USER/Desktop/ Desktop



    ln -s /bigdrive/$USER/Documents/ Documents



    ln -s /bigdrive/$USER/Downloads/ Downloads



    ln -s /bigdrive/$USER/Music/ Music



    ln -s /bigdrive/$USER/Pictures/ Pictures



    ln -s /bigdrive/$USER/Public/ Public



    ln -s /bigdrive/$USER/Templates/ Templates



    ln -s /bigdrive/$USER/Videos/ Videos




More details are at Installing Ubuntu on Samsung 5 (SSD+HDD)



Hope this helps


[#31703] Sunday, October 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ravturtl

Total Points: 335
Total Questions: 132
Total Answers: 110

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
;