Re: map mainboard sata connector to device name

2025-04-11 Thread Andy Smith
Hi, On Thu, Apr 10, 2025 at 05:42:43AM +0200, Petric Frank wrote: > Am Donnerstag, 10. April 2025, 00:13:10 CEST schrieb Andy Smith: > > You have yet to explain why block device serial numbers > > (/dev/disk/by-id/) and filesystem UUIDs (/dev/disk/by-uuid/) are not > > sufficient for your use case

Re: map mainboard sata connector to device name

2025-04-10 Thread tomas
On Wed, Apr 09, 2025 at 11:32:31AM +0200, Petric Frank wrote: > Hello, > > i want to map the sata hardware connections to fixed device names. This be > done even the hdd on the cable is changed. > > So - when i connect a hdd to sata port 4 i want to get (for example) /dev/sdd > created even /dev/

Re: map mainboard sata connector to device name

2025-04-10 Thread Dan Ritter
Anssi Saari wrote: > debian-u...@howorth.org.uk writes: > > > Serious disk enclosures have lights that can be turned on to indicate > > which disk has failed. > > Yes. I take it the actual question is, is there a DIY version of that? > This sort of thing is why I mostly do just mirroring. If ea

Re: map mainboard sata connector to device name

2025-04-10 Thread Anssi Saari
debian-u...@howorth.org.uk writes: > Serious disk enclosures have lights that can be turned on to indicate > which disk has failed. Yes. I take it the actual question is, is there a DIY version of that? This sort of thing is why I mostly do just mirroring.

Re: map mainboard sata connector to device name

2025-04-10 Thread debian-user
Petric Frank wrote: > Hello, > > Am Donnerstag, 10. April 2025, 06:47:13 CEST schrieb Titus Newswanger: > > On 4/9/25 22:42, Petric Frank wrote: > > > Hello, > > > > > > Am Donnerstag, 10. April 2025, 00:13:10 CEST schrieb Andy Smith: > > > > Hi, > > > > > > > > On Wed, Apr 09, 2025 at 05:46:

Re: map mainboard sata connector to device name

2025-04-09 Thread Petric Frank
Hello, Am Donnerstag, 10. April 2025, 06:47:13 CEST schrieb Titus Newswanger: > On 4/9/25 22:42, Petric Frank wrote: > > Hello, > > > > Am Donnerstag, 10. April 2025, 00:13:10 CEST schrieb Andy Smith: > > > Hi, > > > > > > On Wed, Apr 09, 2025 at 05:46:32PM +0200, Petric Frank wrote: > > > > In th

Re: map mainboard sata connector to device name

2025-04-09 Thread Titus Newswanger
On 4/9/25 22:42, Petric Frank wrote: Hello, Am Donnerstag, 10. April 2025, 00:13:10 CEST schrieb Andy Smith: > Hi, > > On Wed, Apr 09, 2025 at 05:46:32PM +0200, Petric Frank wrote: > > In this case i have to manually create a mapping from pci-id (of the > > controller) together with the "

Re: map mainboard sata connector to device name

2025-04-09 Thread Petric Frank
Hello, Am Donnerstag, 10. April 2025, 00:13:10 CEST schrieb Andy Smith: > Hi, > > On Wed, Apr 09, 2025 at 05:46:32PM +0200, Petric Frank wrote: > > In this case i have to manually create a mapping from pci-id (of the > > controller) together with the "ata-x" to the sata connection number > > print

Re: map mainboard sata connector to device name

2025-04-09 Thread Max Nikulin
On 09/04/2025 22:46, Petric Frank wrote: Due i am not firm with udev rules - any hint on these ? try udevadm info --query=all --name=sda or udevadm info --query=all -p /sys/block/sda The /usr/lib/udev/rules.d/ directory contains a lot of examples.

Re: map mainboard sata connector to device name

2025-04-09 Thread Felix Miata
Petric Frank composed on 2025-04-09 11:32 (UTC+0200): > i want to map the sata hardware connections to fixed device names. This be > done even the hdd on the cable is changed. > So - when i connect a hdd to sata port 4 i want to get (for example) /dev/sdd > created even /dev/sda to /dev/sdc (resp

Re: map mainboard sata connector to device name

2025-04-09 Thread Andy Smith
Hi, On Wed, Apr 09, 2025 at 05:46:32PM +0200, Petric Frank wrote: > In this case i have to manually create a mapping from pci-id (of the > controller) together with the "ata-x" to the sata connection number > printed on the motherboard. Based on the mapping udev rules are to be > created to get de

Re: map mainboard sata connector to device name

2025-04-09 Thread Petric Frank
Hello, Am Mittwoch, 9. April 2025, 15:36:11 CEST schrieb Michael Stone: > On Wed, Apr 09, 2025 at 01:41:21PM +0200, Petric Frank wrote: > >Am Mittwoch, 9. April 2025, 11:35:27 CEST schrieb to...@tuxteam.de: > >> Does /dev/disk/by-path fulfil your needs? > > > >Not exactly. The names are like pci-0

Re: map mainboard sata connector to device name

2025-04-09 Thread Michael Stone
On Wed, Apr 09, 2025 at 09:36:11AM -0400, Michael Stone wrote: On Wed, Apr 09, 2025 at 01:41:21PM +0200, Petric Frank wrote: Am Mittwoch, 9. April 2025, 11:35:27 CEST schrieb to...@tuxteam.de: Does /dev/disk/by-path fulfil your needs? Not exactly. The names are like pci--0b:00:0-ata-4 and

Re: map mainboard sata connector to device name

2025-04-09 Thread Michael Stone
On Wed, Apr 09, 2025 at 01:41:21PM +0200, Petric Frank wrote: Am Mittwoch, 9. April 2025, 11:35:27 CEST schrieb to...@tuxteam.de: Does /dev/disk/by-path fulfil your needs? Not exactly. The names are like pci--0b:00:0-ata-4 and pci--0d:00:0-ata-1. Yes, that's necessary to account for

Re: map mainboard sata connector to device name

2025-04-09 Thread tomas
On Wed, Apr 09, 2025 at 01:41:21PM +0200, Petric Frank wrote: > Hello, > > Am Mittwoch, 9. April 2025, 11:35:27 CEST schrieb to...@tuxteam.de: > > On Wed, Apr 09, 2025 at 11:32:31AM +0200, Petric Frank wrote: > > > Hello, > > > > > > i want to map the sata hardware connections to fixed device name

Re: map mainboard sata connector to device name

2025-04-09 Thread Petric Frank
Hello, Am Mittwoch, 9. April 2025, 11:35:27 CEST schrieb to...@tuxteam.de: > On Wed, Apr 09, 2025 at 11:32:31AM +0200, Petric Frank wrote: > > Hello, > > > > i want to map the sata hardware connections to fixed device names. This be > > done even the hdd on the cable is changed. > > > > So - when

Re: map mainboard sata connector to device name

2025-04-09 Thread Dan Purgert
On Apr 09, 2025, Petric Frank wrote: > Hello, > > i want to map the sata hardware connections to fixed device names. This be > done even the hdd on the cable is changed. > > So - when i connect a hdd to sata port 4 i want to get (for example) > /dev/sdd created even /dev/sda to /dev/sdc (respecti