Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] re-scanning for devices
Date: Sun, 26 Feb 2006 05:56:50
Message-Id: 7573e9640602252151w7713e53bk7692afd7f665e352@mail.gmail.com
In Reply to: [gentoo-user] re-scanning for devices by Nick Smith
1 On 2/25/06, Nick Smith <nick.smith79@×××××.com> wrote:
2 > is there a way to rescan for devices after bootup? like if i
3 > hot-plugged a scsi drive into the machine after it was already
4 > running? how can i re-detect the hardware?
5
6 If you are using udev, and have configured the kernel for hotplug
7 support, this should not be necessary. The kernel will generate the
8 appropriate hotplug events, and udev will create the device nodes.
9
10 >
11 > also, what if it detects a drive as sda, and i want it to be sdb? is
12 > there a way i can tell it what i want to be sda, sda etc? without
13 > actually having to move the drives around?
14
15 Write udev rules to create persistent device names.
16
17 An example:
18 BUS=="usb", KERNEL=="sd[a-z]2", SYSFS{serial}=="300000005AF6",
19 SYMLINK="%k", NAME="backups%e"
20
21 -Richard
22
23 --
24 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] re-scanning for devices Nick Smith <nick.smith79@×××××.com>
Re: [gentoo-user] re-scanning for devices "Boyd Stephen Smith Jr." <bss03@××××××××××.net>