LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-02-2023, 11:20 AM   #1
will41
Member
 
Registered: Jul 2020
Posts: 76

Rep: Reputation: Disabled
Recover Disk Space From Optane


I puchased a 2 year old Lenovo C940 laptop that used the Optane memory management system. In order to install Fedora 38 Cinnamon, I had to go into the BIOS and disable Optane. That seemed to go well and I got F38 installed dual booting with Windows. However, at the time I did not notice that there is 28gb of space left over from Optane. "Gparted" identifies that space and the larger 450gb plus space that I am now using as two separate disks. Gparted was able to make an ext4 partition on the 28gb "drive" and it is usable. The 28 gb "drive" is identified as /dev/nvme1n1 and the large 450 + "disk is /dev/nvme0n1p1. I can use the space as a separate "drive" if necessary, but I would like to bring them together as one if possible? Does anyone know how to do that?
 
Old 11-03-2023, 05:50 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I'm mildly surprised that worked, but I have zero experience with the technology.

Your best solution might be to format it as a pv and add it to your LVM configuration. Preferably as a cachevol front-end as it (Optane) was designed for. Did you do a LVM install for Fedora ?.
Could be an interesting project.
 
Old 11-03-2023, 11:29 AM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by will41 View Post
Gparted was able to make an ext4 partition on the 28gb "drive" and it is usable. The 28 gb "drive" is identified as /dev/nvme1n1 and the large 450 + "disk is /dev/nvme0n1p1. I can use the space as a separate "drive" if necessary, but I would like to bring them together as one if possible? Does anyone know how to do that?

I looked up the description of Optane. It is actually a block of non-volatile memory situated on the motherboard close to the CPU. The Optane feature of the BIOS can use this block of memory as a cache for actively used disk data. Apparently the system that you have set up recognizes this cache memory as a SSD.

If you want to combine /dev/nvme1n1 and /dev/nvme0n1p1 then I suggest that you might be able to do so with Logical Volume Manager.
 
Old 11-03-2023, 03:16 PM   #4
will41
Member
 
Registered: Jul 2020
Posts: 76

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
I'm mildly surprised that worked, but I have zero experience with the technology.

Your best solution might be to format it as a pv and add it to your LVM configuration. Preferably as a cachevol front-end as it (Optane) was designed for. Did you do a LVM install for Fedora ?.
Could be an interesting project.
Anaconda offered a "standard" (I think that was the term) install which is ext4 partitions. I created standard /, /home, and swap. I left Win10 alone after shrinking it's volume to about 120gb.
What is "pv"?
 
Old 11-03-2023, 03:31 PM   #5
will41
Member
 
Registered: Jul 2020
Posts: 76

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jailbait View Post
I looked up the description of Optane. It is actually a block of non-volatile memory situated on the motherboard close to the CPU. The Optane feature of the BIOS can use this block of memory as a cache for actively used disk data. Apparently the system that you have set up recognizes this cache memory as a SSD.

If you want to combine /dev/nvme1n1 and /dev/nvme0n1p1 then I suggest that you might be able to do so with Logical Volume Manager.
This is something that doesn't have to be done. We are only talking 28gb and I can store files there. But if my 512 ssd is actually split, it would be nice to put it back together. Gparted sees two drives of 477 and 28gb. Maybe the 28 is the space on the MB you mentioned?? If it does no harm, I can just use it that way or ignore it.
 
Old 11-03-2023, 03:36 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by will41 View Post
Maybe the 28 is the space on the MB you mentioned?? If it does no harm, I can just use it that way or ignore it.
The 28 is the space on the motherboard. It is not part of your SSD.
 
Old 11-04-2023, 10:00 AM   #7
will41
Member
 
Registered: Jul 2020
Posts: 76

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jailbait View Post
The 28 is the space on the motherboard. It is not part of your SSD.
Thanks. It's not much but do you know if it is safe to use it for storage purposes?
 
Old 11-04-2023, 12:31 PM   #8
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by will41 View Post
Thanks. It's not much but do you know if it is safe to use it for storage purposes?
I don't know whether it is volatile or non-volatile memory. You could try writing a file to it and then shutdown and power off. See if the file is still there when you power up again.
 
Old 11-04-2023, 03:40 PM   #9
will41
Member
 
Registered: Jul 2020
Posts: 76

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jailbait View Post
I don't know whether it is volatile or non-volatile memory. You could try writing a file to it and then shutdown and power off. See if the file is still there when you power up again.
Yup. I created an empty folder there rebooted and it was still there. So, unless you can think of any down sides, I'll try putting some non-important stuff there and see what happens. I'll wait a few days to call this solved.
Thanks
 
Old 12-13-2023, 06:39 PM   #10
will41
Member
 
Registered: Jul 2020
Posts: 76

Original Poster
Rep: Reputation: Disabled
Sorry it took so long to get back. Yes the 30 gb "Optane" segment is on the ssd and is usable after reformatting it. After disabling Optane in the BIOS and turning off secure boot (not sure if the latter was necessary) I reinstalled everything. Windows was reinstalled with my wifi turned off. This resulted in an incomplete (from Microsoft's point of view) install, but left me with a "local account" (no Microsoft password needed) and with no Optane drivers and Bitlocker is disabled. Once windows was rebooted and the wifi turned on the uninstalled apps etc got caught up and setup proceeded as normal. I then reinstalled Fedora 38 with no issues. All is working without Optane, Bitlocker, or the need for an MS password. I don't use Windows often and I don't need those "features". However, I understand that without Bitlocker it will be best to install some malware protection.

Last edited by will41; 12-13-2023 at 06:42 PM.
 
Old 12-14-2023, 03:54 AM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
The 28 gb "drive" is identified as /dev/nvme1n1 and the large 450 + "disk is /dev/nvme0n1p1.

The /dev/nvme1n1 would indicate a second SSD drive while /dev/nvme0n1 would be the first SSD detected by the system. The /dev/nvme0n1p1 entry would be the first partition on the first physical drive. You don't indicate but seem to be saying you have only one physical drive? If you have a 450GB partition and an additional 28GB that would add up to what would be seen on a 512GB drive. This is due to the difference in using GB and Gib.
 
Old 12-14-2023, 06:20 PM   #12
will41
Member
 
Registered: Jul 2020
Posts: 76

Original Poster
Rep: Reputation: Disabled
Yancek. If it helps, this is the same as or very close to what I have:
https://www.amazon.com/Intel-Optane-...2598871&sr=8-9
Thanks
 
  


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
Optane memory in Slackware? sombragris Slackware 2 07-03-2019 09:00 PM
Swapping out 16 GB Intel Optane with M.2 256 GB 2280 SATA 3 SSD with B+M key. Will it work? Chripcikas Linux - Hardware 1 02-17-2019 06:32 PM
Best place for Intel Optane? mkoniarz Linux - Hardware 2 09-11-2017 05:52 AM
LXer: COM Express Basic runs Linux on Kaby Lake, supports Intel Optane LXer Syndicated Linux News 0 01-17-2017 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:24 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