LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-27-2020, 09:41 AM   #1
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Question SSD as boot and original HDD as storage


Okay folks, I've added a 250Gb SSD drive to a Lenovo Thinkstation C20.
I've left the original 2Tb HDD which has Mint 20 installed
I just plugged the SSD into one of the three vacant i/o sockets on the MB. And that's all I've done so far.
fdisk shows this:
Code:
jonk@dave:~$ sudo fdisk -l
[sudo] password for jonk:          
Disk /dev/sdb: 232.91 GiB, 250059350016 bytes, 488397168 sectors
Disk model: CT250MX500SSD1  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sda: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: Hitachi HUA72302
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x289f73ed

Device     Boot   Start        End    Sectors  Size Id Type
/dev/sda1  *       2048    1050623    1048576  512M  b W95 FAT32
/dev/sda2       1052670 3907028991 3905976322  1.8T  5 Extended
/dev/sda5       1052672 3907028991 3905976320  1.8T 83 Linux
jonk@dave:~$
I've not formatted or created any partitions on the SSD so far.
I intend to re-install Mint 20, I've backed up the folders I need to from /home so I'll wipe everything.
I'm also guessing it doesn't matter which i/o socket I use on the MB. Yes/No?

I'm guessing the SSD will become /dev/sda and my old HDD will be /dev/sdb because I'll select that when I install using the "Something Else" option. Yes/No?

Also I believe I should place the swap partition on the HDD. Other suggestions is to put /home /var and /tmp on the HDD. Is there anything else I should consider when running Linux off an SSD?

BTW this is the memory on the machine:
Code:
jonk@dave:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:           11Gi       1.8Gi       9.0Gi       149Mi       971Mi       9.5Gi
Swap:         2.0Gi          0B       2.0Gi
jonk@dave:~$
And final question, do I need to make any changes to the bios, all I've found is this:
Code:
Enable Fast Boot, SATA support, Hardware Fast Boot, Launch CSM.
Boot Device Control: UEFI and Legacy.
Boot from any devices: Legacy OPROM first.

SATA configuration: AHCI.
Disable Hot Plug on all ports except those set for eSATA.
I've done a bit of googling to get this far, but just to be sure I'd like any advice from LQ users, any other pitfalls?
 
Old 07-27-2020, 10:21 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by GPGAgent View Post
I've not formatted or created any partitions on the SSD so far.
I would still expect it to be listed by fdisk. Or at least lsblk.
Quote:
I'm also guessing it doesn't matter which i/o socket I use on the MB. Yes/No?
You probably guess right, but it really depends on the motherboard and its configuration.

Quote:
I'm guessing the SSD will become /dev/sda and my old HDD will be /dev/sdb because I'll select that when I install using the "Something Else" option. Yes/No?
I would not bet a very high amount on that. Again, it depends on the motherboard and its configuration. It might even be random - while unlikely, it could be sda today and sdb tomorrow.
Quote:
I believe I should place the swap partition on the HDD. Other suggestions is to put /home /var and /tmp on the HDD.
I would put /tmp on a tmpfs (i.e., in memory) and /var on the SSD. Files that are used often should go to the fast disk, and my guess is that /var is used quite a bit.
Quote:
And final question, do I need to make any changes to the bios, all I've found is this:[CODE]Enable Fast Boot, SATA support, Hardware Fast Boot, Launch CSM.
...
I've done a bit of googling to get this far, but just to be sure I'd like any advice from LQ users, any other pitfalls?
I have a laptop with an SSD in it, and I did nothing to configure it. It had Windows 7 when I bought it, I replaced it with Fedora. No problem at all.

My recommendation: Use Live media to get answers to your questions.

Last edited by berndbausch; 07-27-2020 at 10:26 AM. Reason: formatting
 
1 members found this post helpful.
Old 07-27-2020, 10:29 AM   #3
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Personally, I wouldn't bother creating separate /var and /tmp partitions on another hard drive but I like to keep things simple. For a server, this is probably a good idea but overkill on a workstation. Up to you really.

SSDs are tremendously robust these days. The only thing I would personally recommend is not doing "discard" in /etc/fstab as that is no longer recommended, at least for ext4. If you use systemd, it has a scheduled file system trim which works fine. If you use a distro without systemd, I used to run "fstrim -v <mount point>" on whatever partitions I had on a weekly basis.

You can go down a rabbit hole trying to minimize writes to SSDs but personally I think that is largely a waste of time. Just my opinion based on Internet research and personal experience with SSDs.
 
1 members found this post helpful.
Old 07-27-2020, 10:51 AM   #4
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by berndbausch View Post
I would still expect it to be listed by fdisk. Or at least lsblk.
You probably guess right, but it really depends on the motherboard and its configuration.
Check my original post, fdisk found it as /dev/sdb
Code:
Disk model: CT250MX500SSD1
cheers
 
Old 07-27-2020, 01:23 PM   #5
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Okay, I started a Mint 20 install and went for something else when it got to the partition stage, see attached image

At this stage it seems I've set /dev/sdb to be my boot drive.

But how do I make /dev/sda one whole data partition?

I'm guessing I need to use the New Partition Table button?

What I'm after is for my old 2Tb HDD - /dev/sda, to be for data only and Mint to be on the SSD - /dev/sdb

What do I do next?
Attached Thumbnails
Click image for larger version

Name:	IMG_4160.v01.jpg
Views:	13
Size:	74.1 KB
ID:	33739  
 
Old 07-27-2020, 05:31 PM   #6
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Update: I went into the BIOS and added the SSD to the boot sequence and moved it above the HDD so it will be looked at first.

Tomorrow I'll swap the sata leads over on the MB, see how that affects sda and sdb and then re-install

To be continued.....
 
Old 07-27-2020, 06:28 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by GPGAgent View Post
But how do I make /dev/sda one whole data partition?
Remove all partitions, then add a single one.
 
1 members found this post helpful.
Old 07-28-2020, 01:27 PM   #8
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Looking at the Thinkstation C20 manual these are the sata connections I'm going to swap over
Attached Thumbnails
Click image for larger version

Name:	C20MB-1.png
Views:	7
Size:	54.4 KB
ID:	33747  
 
Old 07-28-2020, 01:59 PM   #9
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,167

Rep: Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339
Quote:
Originally Posted by sevendogsbsd View Post
......If you use a distro without systemd, I used to run "fstrim -v <mount point>" on whatever partitions I had on a weekly basis.

You can go down a rabbit hole trying to minimize writes to SSDs but personally I think that is largely a waste of time. Just my opinion based on Internet research and personal experience with SSDs.
F2FS runs the "cleaning process" in the background and I've seen it do it as the machine boots up.
https://en.wikipedia.org/wiki/F2FS#Cleaning_process

Quote:
The motive for F2FS was to build a file system that, from the start, takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards), which are widely used in computer systems ranging from mobile devices to servers....
https://en.wikipedia.org/wiki/F2FS
 
Old 07-28-2020, 03:00 PM   #10
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Interesting, never heard of it. On FreeBSD, UFS does this natively as well if you set a flag when making the file system. I have always used ext(2,3,4). Does Linux support F2FS? I don't recall that ever being a choice when I have done installs.
 
Old 07-28-2020, 05:25 PM   #11
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by sevendogsbsd View Post
Interesting, never heard of it. On FreeBSD, UFS does this natively as well if you set a flag when making the file system. I have always used ext(2,3,4). Does Linux support F2FS? I don't recall that ever being a choice when I have done installs.
Ditto! I've never seen it as an install option fs!
 
Old 07-28-2020, 05:29 PM   #12
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,167

Rep: Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339
Quote:
Originally Posted by sevendogsbsd View Post
......Does Linux support F2FS? I don't recall that ever being a choice when I have done installs.
Yes, Linux supports F2FS, but that could be on a distribution by distribution basis.

I know Slackware64-current supports F2FS and it is an option when running the installer. However, LILO does not recognize F2FS, so one can use GRUB 2 as their boot loader. As I like LILO, I made a small 200 meg ext4 /boot partition and the rest of the partitions are F2FS. I don't need to use the UEFI capabilities of the motherboard, but will switch to GRUB 2 the next time I do a fresh installation.

Here is a discussion "we" had on F2F2 when I first decided to make the change from ext4,
https://www.linuxquestions.org/quest...or-4175673968/

Last edited by cwizardone; 08-01-2020 at 08:00 AM.
 
Old 07-28-2020, 05:39 PM   #13
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Right, I swapped the ssd and hdd sata cables over and bingo, as I expected the ssd is now /dev/sda and the hdd is /dev/sdb
Code:
jonk@dave:~$ sudo fdisk -l
[sudo] password for jonk:          
Disk /dev/sda: 232.91 GiB, 250059350016 bytes, 488397168 sectors
Disk model: CT250MX500SSD1  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sdb: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: Hitachi HUA72302
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x289f73ed

Device     Boot   Start        End    Sectors  Size Id Type
/dev/sdb1  *       2048    1050623    1048576  512M  b W95 FAT32
/dev/sdb2       1052670 3907028991 3905976322  1.8T  5 Extended
/dev/sdb5       1052672 3907028991 3905976320  1.8T 83 Linux
jonk@dave:~$
The attached image shows the swapped cables, red one is to thew SSD and the black dusty one goes to the 2Tb HDD

Next step - re-install Mint 20, or maybe try LMDE 4 Debbie!
Attached Thumbnails
Click image for larger version

Name:	IMG_4164.JPG
Views:	11
Size:	154.9 KB
ID:	33749  
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a single-boot Win 10 ssd from a dual-boot ssd Robert.Thompson Linux - Newbie 5 03-28-2019 02:29 PM
Install Linux in Toshiba u940 series with 32gb ssd and 750gb hdd I would like to have boot code in ssd only cvkchary Linux - Laptop and Netbook 4 08-31-2016 04:26 PM
[SOLVED] Installing on a SSD with Hdd Storage Dogman2 Linux - Newbie 16 05-30-2016 04:18 AM
[SOLVED] Cannot boot cloned hdd in place of the original internal hdd completelinuxnube Slackware 12 08-06-2012 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration