Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why isn't this SDcard mounting?
Date: Tue, 29 Aug 2017 16:45:57
Message-Id: DF467886-C0AA-47FD-BD7F-FD755E9D6180@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] Why isn't this SDcard mounting? by Alan McKinnon
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.

Replies

Subject Author
Re: [gentoo-user] Why isn't this SDcard mounting? Mick <michaelkintzios@×××××.com>