Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] re-scanning for devices Richard Fish <bigfish@××××××××××.org>
Re: [gentoo-user] re-scanning for devices "Boyd Stephen Smith Jr." <bss03@××××××××××.net>