Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install CD doesn't recognise SSD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Tae_kyon
n00b
n00b


Joined: 19 Apr 2006
Posts: 71

PostPosted: Tue May 12, 2020 3:30 pm    Post subject: Install CD doesn't recognise SSD Reply with quote

I just bought a Lenovo laptop with no OS, it has 2 hard disks: a 1Tb one which is recognised as /dev/sda and a 128Gb SSD.
Both are visible from the boot options.

However, if I boot from the minimal installation Gentoo image on a USB drive, I see:

Code:
ls -l /dev/sd*


/dev/sda, /dev/sda1
/dev/sdb, /dev/sdb1 and /dev/sdb2.

But /dev/sdb according to cfdisk, is only 14.4 Gb.

So how do I correctly visualise and partition the SSD?[/code]
_________________
We shall not cease from exploration. And the end of all our exploring
will be to arrive where we started and know the place for the first time
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue May 12, 2020 3:54 pm    Post subject: Reply with quote

A SATA SSD should be recognized. Is it an NVME? Then you need to add support to the kernel.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31538
Location: here

PostPosted: Tue May 12, 2020 3:55 pm    Post subject: Reply with quote

SSD is sata or nvme? If nvme try to check /dev/nvme*
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Tae_kyon
n00b
n00b


Joined: 19 Apr 2006
Posts: 71

PostPosted: Tue May 12, 2020 3:57 pm    Post subject: Solved! Reply with quote

Ok, I see the SSD as:

/dev/nvme0n1

:roll:

Wasn't aware of these newfangled naming schemes for SSD's.

:D
_________________
We shall not cease from exploration. And the end of all our exploring
will be to arrive where we started and know the place for the first time
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1933
Location: Germany

PostPosted: Tue May 12, 2020 3:58 pm    Post subject: Reply with quote

Hello Tae_kyon.

Are you sure /dev/sdb is your SSD and not your USB stick?

If the boot medium has the lshw command https://packages.gentoo.org/packages/sys-apps/lshw you can use to to identify the disks with
Code:
lshw -class disk -businfo


or a
Code:
fdisk -l
should be working, too. (here is some more information about this topic: https://www.binarytides.com/linux-command-check-disk-partitions/)

Please show us your output of
Code:
lspci -k


general usage and information about SSD: https://wiki.gentoo.org/wiki/SSD and NVMe: https://wiki.gentoo.org/wiki/NVMe

EDIT: dang, to slow
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue May 12, 2020 4:02 pm    Post subject: Re: Solved! Reply with quote

Tae_kyon wrote:
Wasn't aware of these newfangled naming schemes for SSD's.

This is a different piece of hardware, there are still SSD's which use more common SATA interface and are named sdX.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue May 12, 2020 4:23 pm    Post subject: Reply with quote

Drives used to be /dev/hdX. I suppose that stood for Hard Drive
I suppose /dev/sdX stands for Sata Drive. I had a mixed system with IDE and SATA and it named one /dev/sda and the other /dev/hda IIRC. That machine has Win 7 on it now. I should boot a Gentoo DVD and see what they are named now. Just for curiosity.

EDIT: You might be able to use a udev rule to rename the NVME drive but I'm not sure that's a good idea.
A better idea is to assign labels to the partitions, and just refer to them by label, i.e. in /etc/fstab and in your boot command. Then, no matter how the kernel assigns the /dev, you will be addressing the correct drive and partition.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue May 12, 2020 4:29 pm    Post subject: Reply with quote

It was IDE driver which named devices hda, SCSI driver named drives sda, it was even before SATA was invented.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Tue May 12, 2020 5:09 pm    Post subject: Reply with quote

Tony0945,

A long time ago, before the PC had hard drives ... before the IBM PC even there were real eight bit parallel SCSI drives.
They were expensive and not easy to interface to early PCs. DMA was not an optional extra with real SCSI.

Then Seagate invented the ST506.
That started the race to simplify the interface.

Next up was Compaqs Integrated Drive Electronics, better knows an IDE.
The motherboard interface was trivial. It was a cut down 16 bit ISA slot with a different connector.
Like all engineers, the designers were lazy and built on what was already documented.
The IDE interface used a subset of the SCSI command set. Essentially, all the hard bits were left out, like overlapping commands, DMA etc, which were added back in over the years as 'speed ups' and 'improvements'.

At the outset, LInux implemented IDE as /dev/hdX, where X was interface count dependent.
When libata came along, The IDE drives moved under libata and were merged back into their SCSI heritage.
I think I switched over about kernel 2.6.26.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue May 12, 2020 5:31 pm    Post subject: Reply with quote

NeddySeagoon wrote:
The motherboard interface was trivial. It was a cut down 16 bit ISA slot with a different connector.
I never knew that!
NeddySeagoon wrote:
Like all engineers, the designers were lazy and built on what was already documented.
I should resent that. But it's hard to feel resentment when one is grinning from ear to ear!
NeddySeagoon wrote:
The IDE interface used a subset of the SCSI command set. Essentially, all the hard bits were left out, like overlapping commands, DMA etc, which were added back in over the years as 'speed ups' and 'improvements'.
I only knew SCSI as something mentioned in BYTE magazine. I thought it was dead.


Thank you for sharing your encyclopedic knowledge here on the forum!
That mobo I mentioned has two IDE connectors and one SATA-1 connector. It can only boot from the IDE.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Tue May 12, 2020 5:38 pm    Post subject: Reply with quote

Tony0945,

Real live parallel SCSI electrical interfaces are dead but the protocol is alive and well.
Almost all block devices, no matter the electrical interface, use the SCSI protocol.
UAS even :) UAS USB Attached SCSI.

I'm an engineer too :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum