Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #172589
| From | Reco <recoverym4n@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: 'Wiring down' hard disks |
| Date | 2016-09-21 17:20 +0200 |
| Message-ID | <sjRtw-2de-13@gated-at.bofh.it> (permalink) |
| References | <sjzwD-7F4-91@gated-at.bofh.it> <sjzwD-7F4-89@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi. On Tue, Sep 20, 2016 at 08:03:46PM +0000, ch_edge@yahoo.com wrote: > Hi > Could someone please advise me the best way to ensure a particular hard disk (SATA) always appears at a specific device node, i.e how can I be sure /dev/sdb for example is always going to refer to a specific drive even if others are added or removed? > UUIDs only apply to partitions, is there no way to do a similar thing for a physical disk? > I have some existing partitioned and formatted disks in a server which I want to plug into another machine and move the services over to a VM It's possible, although unless you're trying to change device's permissions permanently you'd better use those /dev/disk/by-id symlinks instead. What you'd need is a custom udev rule like this (in a single line): KERNEL=="sd*", BUS=="scsi", PROGRAM=="/lib/udev/scsi_id -g -d $devnode", RESULT==<UUID>, NAME=<devicename> Where device UUID can be obtained by: /lib/udev/scsi_id -g <your_block_device_here> Another dirty hack (as it's not intended to be used this way) whould be configuring multipathing with a single path representing your disk device. Reco
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
'Wiring down' hard disks <ch_edge@yahoo.com> - 2016-09-20 22:10 +0200 Re: 'Wiring down' hard disks Dan Ritter <dsr@randomstring.org> - 2016-09-20 22:20 +0200 Re: 'Wiring down' hard disks "Neal P. Murphy" <neal.p.murphy@alum.wpi.edu> - 2016-09-20 23:20 +0200 Re: 'Wiring down' hard disks Reco <recoverym4n@gmail.com> - 2016-09-21 17:20 +0200
csiph-web