You are not logged in.

#1 2020-10-24 11:25:39

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Nvme set up

Got a 256Gb Nvme card and pci adapter for my desktop pc. Read the wiki page on nvme set up. Being too keen I set up drive as gpt with one ext4 partition. Should I have just run commands in wiki guide and then created filesystem?


Mr Green

Offline

#2 2020-10-24 11:35:44

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Nvme set up

Which commands? Consider updating firmware https://wiki.archlinux.org/index.php/fwupd
and make sure periodic trim is enabled. You can leave the filesystem as is. If you need to modify anything in the ext4 properties, consider tune2fs.

Offline

#3 2020-10-24 12:57:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Nvme set up

Basically setup drive (gdisk) gpt then added a ext4 filesystem.

[root@arch mrgreen]# nvme list
Node             SN                   Model                                    Namespace Usage                      Format           FW Rev  
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1     S4EUNS0N709831D      Samsung SSD 970 EVO Plus 250GB           1           1.08  GB / 250.06  GB    512   B +  0 B   2B2QEXM7

Mr Green

Offline

#4 2020-10-24 13:03:30

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,988
Website

Re: Nvme set up

The question is, what you want to do with the drive. On a BIOS booted system, one partition for / is a totally valid setup.
However if this is your only disk on an EFI system, you're missing an ESP now.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#5 2020-10-24 13:03:49

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Nvme set up

The namespace commands fail

nvme create-ns /dev/nvme0
FLBAS corresponding to block size 0 not found
Please correct block size, or specify FLBAS directly

Mr Green

Offline

#6 2020-10-24 13:05:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Nvme set up

schard wrote:

The question is, what you want to do with the drive. On a BIOS booted system, one partition for / is a totally valid setup.
However if this is your only disk on an EFI system, you're missing an ESP now.

My current ssd has efi partition and boots normally, at some point want nvme to run / partition and possibly home.

Drive setup atm

[root@arch mrgreen]# fdisk -l
Disk /dev/nvme0n1: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 970 EVO Plus 250GB          
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: gpt
Disk identifier: 8FB71557-1C07-4C19-92A7-0DBCC86A8F07

Device         Start       End   Sectors   Size Type
/dev/nvme0n1p1  2048 488396799 488394752 232.9G Linux filesystem


Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: KINGSTON SV200S3
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: gpt
Disk identifier: 25EA9BA0-BEFB-44F8-8925-4208A13EC3DE

Device        Start       End   Sectors  Size Type
/dev/sda1      2048   1050623   1048576  512M EFI System
/dev/sda2   1050624  66791423  65740800 31.3G Linux filesystem
/dev/sda3  66791424 250068991 183277568 87.4G Linux filesystem


Disk /dev/sdb: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SA400S3
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: gpt
Disk identifier: 34DC46B0-6312-48FC-9CFD-95FDCBBCA978

Device     Start       End   Sectors   Size Type
/dev/sdb1   2048 468860927 468858880 223.6G Linux filesystem

sda2 is current /
sda3 /home
sdb is simply a date drive.


Mr Green

Offline

#7 2020-10-24 15:16:28

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Nvme set up

Mr Green wrote:

Basically setup drive (gdisk) gpt then added a ext4 filesystem.

[root@arch mrgreen]# nvme list
Node             SN                   Model                                    Namespace Usage                      Format           FW Rev  
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1     S4EUNS0N709831D      Samsung SSD 970 EVO Plus 250GB           1           1.08  GB / 250.06  GB    512   B +  0 B   2B2QEXM7

That looks fine, nothing wrong with the controller.

Also your partition layout seems fine to me, should work. I would also consider a partition for swap, but, that's personal;)

Offline

#8 2020-10-24 16:36:28

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Nvme set up

Cool am booting from partition one on the nvme at the moment. Luckily Luke Smith is moving partitions to an emmc device. Did put the wrong PARTUUID in loader entries. After firing up a live iso soon got that fixed. Home partition next....


Mr Green

Offline

#9 2020-10-24 17:08:02

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Nvme set up

Nice, you should soon be up and running. It's always good to have someone help you btw, stay save mate.

Offline

#10 2020-10-25 08:35:53

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Nvme set up

System is booting into uefi (EFI) partition on a sata drive as bios does not see nvme as device. Something I can look into.

Not noticed any real speed gains yet.....might need to mess around with settings in fstab. Was concerned that a pci card based drive would not perfom as fast as a true mother board mounted one.

Nice, you should soon be up and running. It's always good to have someone help you btw, stay save mate.

You too ;-)

Last edited by Mr Green (2020-10-25 08:36:19)


Mr Green

Offline

#11 2020-10-25 14:14:42

merlock
Member
Registered: 2018-10-30
Posts: 236

Re: Nvme set up

Mr Green wrote:

Not noticed any real speed gains yet.....might need to mess around with settings in fstab. Was concerned that a pci card based drive would not perfom as fast as a true mother board mounted one.

Is it a true PCI card, or is it a PCIe card?  If the former, you might not see any real gains.

I don't have the data/hardware anymore, but I ran benchmarks on a PCIe NVMe vs an M2 NVMe.  Benchmarking, the M2 was faster, but from a using standpoint, I couldn't tell the difference.

Also, dig around your BIOS and see if there are any settings that will help get the card set up to properly use whatever bus your card is on.


Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#12 2020-10-25 15:36:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Nvme set up

I am using a pcie slot. Will to look for an option in bios. System boots a little quicker and Firefox seems to load pages faster (but that could be down more to PSD).


Mr Green

Offline

#13 2020-10-25 16:11:19

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Nvme set up

Mr Green wrote:

System is booting into uefi (EFI) partition on a sata drive as bios does not see nvme as device. Something I can look into.

Not noticed any real speed gains yet.....might need to mess around with settings in fstab. Was concerned that a pci card based drive would not perfom as fast as a true mother board mounted one.

I don't know if your system is able to boot from PCIe in UEFI mode, if not place boot on a SATA drive and the / OS on the NVME....

Yeah, FSB bus speeds are so high nowadays and your PCIe card, probably PCIe x4 should theoretically reach the same speed as m2. This is theoretic for far as I know AHCI is in the way, there are some statistics you can find about that on the net, like this forum post  https://www.win-raid.com/t871f50-Guide- … -BIOS.html Run a few systemd-analize (blame or plot) to see some timed measures.

You too ;-)

Will do..;)

Offline

#14 2020-10-26 08:48:22

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Nvme set up

My fstab:

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>   <dump>  <pass>

# /dev/sda1 /boot
UUID=5BEC-1713                  /boot       vfat         defaults       0 2

# /dev/sda2
# mounted via uefi loader entry.
#UUID=1a73229b-4f08-4016-860b-18919956b5ae  /       ext4         rw,relatime,data=ordered   0 1

# /home/mrgreen/Drive
UUID=c15a6067-be47-4bdb-b359-d741a212c50d   /home/mrgreen/Drive  ext4        noauto,x-systemd.automount         0 1

# New /home/mrgreen nvme p2
UUID=3d54cfbf-0475-457a-9a00-070dea00985b       /home       ext4         noauto,x-systemd.automount         0 1

Think flags for /home are incorrect, guessing / is mounted via uefi loader.


Mr Green

Offline

#15 2020-10-26 15:03:34

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Nvme set up

I use 'rw,relatime' for '/' & '/home', never looked back..
Your sixth field on home, 'passno' should be '2' not one! (see)man --pager='less -p ^DESCRIPTION' fstab
Boot looks okay...

edit: the flags I use are defaults so you could just as easy use 'defaults' for your flags, work fine with NVME.

Last edited by qinohe (2020-10-26 15:19:57)

Offline

#16 2020-10-26 15:32:13

merlock
Member
Registered: 2018-10-30
Posts: 236

Re: Nvme set up

qinohe wrote:

I use 'rw,relatime' for '/' & '/home', never looked back..

Same here, but I also use data=ordered.


Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#17 2020-10-26 15:54:43

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Nvme set up

merlock wrote:
qinohe wrote:

I use 'rw,relatime' for '/' & '/home', never looked back..

Same here, but I also use data=ordered.

Which is also default'*' btw wink

Offline

Board footer

Powered by FluxBB