1 |
On 12/10/05, Peter Kelly <linuxpete@×××××××.com> wrote: |
2 |
> However, upon reboot, I can't get a USB backup drive to mount correctly. |
3 |
> It's an LVM2 partition that should show up as vgusbhd, mounted to /mnt/usbhd. |
4 |
> Something seems to die between vgscan finding the drive/partition, and udev |
5 |
> creating a /dev/mapper/vgusb* mountpoint. It has no problem finding the |
6 |
> other /hd* LVM2 partitions. Seems only the /dev/sda partition is missing. |
7 |
> Of course, it's the only usb/sd* drive on the system. |
8 |
|
9 |
Udev doesn't create the device nodes for LVM volumes, these are |
10 |
created by the LVM tools, and should be symlinks to devices in |
11 |
/dev/mapper/. These are made after you do "vgchange -a y <group>". |
12 |
|
13 |
> crichton ~ # vgscan |
14 |
> Reading all physical volumes. This may take a while... |
15 |
> Found volume group "vgiso" using metadata type lvm2 |
16 |
> Found volume group "vg" using metadata type lvm2 |
17 |
> Found volume group "vgexport" using metadata type lvm2 |
18 |
> Found volume group "vgusbhd" using metadata type lvm2 |
19 |
> |
20 |
> crichton ~ # ll /dev/vgusb/usbhd |
21 |
> lrwxrwxrwx 1 root root 7 Dec 10 16:07 /dev/vgusb/usbhd -> ../sda1 |
22 |
|
23 |
This is wrong...this link should be to /dev/mapper/vgusbhd-usbhd. |
24 |
|
25 |
> And the udev rule that seems to work, since there is a link |
26 |
> BUS="usb", KERNEL="sd*1", SYSFS{product}="USB 2.0 Storage Device", |
27 |
> SYSFS{serial}="000422222000000*****", NAME="%k", SYMLINK="vgusb/usbhd" |
28 |
|
29 |
This rule should not exist. |
30 |
|
31 |
> |
32 |
> crichton ~ # ll /dev/mapper/ |
33 |
> total 0 |
34 |
> drwxr-xr-x 2 root root 200 Dec 10 15:59 . |
35 |
> drwxr-xr-x 18 root root 13940 Dec 10 16:14 .. |
36 |
> crw-rw---- 1 root root 10, 63 Dec 10 15:59 control |
37 |
> brw------- 1 root root 254, 4 Dec 10 15:59 vg-portage |
38 |
> brw------- 1 root root 254, 5 Dec 10 15:59 vg-source |
39 |
> brw------- 1 root root 254, 3 Dec 10 15:59 vg-sysbackup |
40 |
> brw------- 1 root root 254, 1 Dec 10 15:59 vg-usr |
41 |
> brw------- 1 root root 254, 2 Dec 10 15:59 vg-usrlocal |
42 |
> brw------- 1 root root 254, 6 Dec 10 15:59 vgexport-export |
43 |
> brw------- 1 root root 254, 0 Dec 10 15:59 vgiso-isoserver |
44 |
> |
45 |
> As you can see, there is no /dev/mapper/vgusb. |
46 |
|
47 |
Have you run "vgchange -a y vgusbhd"? |
48 |
|
49 |
-Richard |
50 |
|
51 |
-- |
52 |
gentoo-user@g.o mailing list |