1 |
> On 29 Aug 2017, at 16:35, Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
2 |
>> |
3 |
>> Is it udev that's responsible for populating the dev nodes? |
4 |
>> (is that the right terminology?) |
5 |
>> |
6 |
>> 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? |
7 |
> |
8 |
> run partprobe and see if that makes a difference. It forces the kernel |
9 |
> to re-organize it's idea of what partitions are available. |
10 |
> |
11 |
> I would have thought SD Cards were treated like regular hotpluggable |
12 |
> devices like USB storage, but maybe not. I'd be interested to see the |
13 |
> results of running partprobe. |
14 |
|
15 |
$ sudo partprobe -s |
16 |
/dev/sda: gpt partitions 1 2 3 4 5 |
17 |
/dev/sdb: msdos partitions 1 |
18 |
$ |
19 |
|
20 |
The following is also dumped to /var/log/messages: |
21 |
|
22 |
Aug 29 17:31:13 alrai sudo[20565]: stroller : TTY=pts/1 ; PWD=/home/stroller ; USER=root ; COMMAND=/bin/bash -c partprobe |
23 |
Aug 29 17:31:13 alrai sudo[20565]: pam_unix(sudo:session): session opened for user root by (uid=0) |
24 |
Aug 29 17:31:13 alrai kernel: sdb: sdb1 |
25 |
Aug 29 17:31:13 alrai kernel: sdb: sdb1 |
26 |
Aug 29 17:31:13 alrai sudo[20565]: pam_unix(sudo:session): session closed for user root |
27 |
|
28 |
However no new device nodes are added in /dev. |
29 |
|
30 |
This is a headless system, mostly used as a file server. It doesn't run a desktop (although I've run X11 apps using xpra a few times in the past). I've never done anything to set up hotplugging. |
31 |
|
32 |
Stroller. |