On 29/08/2017 17:33, Stroller wrote: > >> On 29 Aug 2017, at 15:53, Ian Zimmerman <i...@very.loosely.org> wrote: >> >> I don't have a quick solution, but I would look at the state of /dev >> (not only /dev/sdb* but also the various /dev/disk/by-* directories) >> both before and after running parted. parted is my prime suspect for >> messing things up here. > > Indeed. > > 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). > > $ ls -l /dev/disk/* | grep sdb > lrwxrwxrwx 1 root root 9 Aug 29 14:51 > usb-Generic-_Card_Reader_20060413092100000-0:0 -> ../../sdb > 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 > $ > > The same command, grepping sda, shows much longer output, with symlinks to > all the partitions > > Is it udev that's responsible for populating the dev nodes? > (is that the right terminology?) > > 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?
run partprobe and see if that makes a difference. It forces the kernel to re-organize it's idea of what partitions are available. I would have thought SD Cards were treated like regular hotpluggable devices like USB storage, but maybe not. I'd be interested to see the results of running partprobe. -- Alan McKinnon alan.mckin...@gmail.com