1 |
On 29/08/2017 17:33, Stroller wrote: |
2 |
> |
3 |
>> On 29 Aug 2017, at 15:53, Ian Zimmerman <itz@××××××××××××.org> wrote: |
4 |
>> |
5 |
>> I don't have a quick solution, but I would look at the state of /dev |
6 |
>> (not only /dev/sdb* but also the various /dev/disk/by-* directories) |
7 |
>> both before and after running parted. parted is my prime suspect for |
8 |
>> messing things up here. |
9 |
> |
10 |
> Indeed. |
11 |
> |
12 |
> No sdb1 is mentioned, despite it apparently being recognised by the kernel when plugged in (from the last line of the `grep kernel /var/log/messages` output in my previous post). |
13 |
> |
14 |
> $ ls -l /dev/disk/* | grep sdb |
15 |
> lrwxrwxrwx 1 root root 9 Aug 29 14:51 usb-Generic-_Card_Reader_20060413092100000-0:0 -> ../../sdb |
16 |
> lrwxrwxrwx 1 root root 9 Aug 29 14:51 pci-0000:00:12.2-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sdb |
17 |
> $ |
18 |
> |
19 |
> The same command, grepping sda, shows much longer output, with symlinks to all the partitions |
20 |
> |
21 |
> Is it udev that's responsible for populating the dev nodes? |
22 |
> (is that the right terminology?) |
23 |
> |
24 |
> How do I force it to reconstruct the partition table? Surely one should expect to be able to format or partition a removable drive and have the dev nodes created without the necessity of rebooting? |
25 |
|
26 |
run partprobe and see if that makes a difference. It forces the kernel |
27 |
to re-organize it's idea of what partitions are available. |
28 |
|
29 |
I would have thought SD Cards were treated like regular hotpluggable |
30 |
devices like USB storage, but maybe not. I'd be interested to see the |
31 |
results of running partprobe. |
32 |
|
33 |
|
34 |
-- |
35 |
Alan McKinnon |
36 |
alan.mckinnon@×××××.com |