Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why isn't this SDcard mounting?
Date: Tue, 29 Aug 2017 15:40:20
Message-Id: 0958c1d4-b45c-4561-5516-e3fc39412a29@gmail.com
In Reply to: Re: [gentoo-user] Why isn't this SDcard mounting? by Stroller
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

Replies

Subject Author
Re: [gentoo-user] Why isn't this SDcard mounting? Stroller <stroller@××××××××××××××××××.uk>