public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Why isn't this SDcard mounting?
Date: Tue, 29 Aug 2017 17:35:20 +0200	[thread overview]
Message-ID: <0958c1d4-b45c-4561-5516-e3fc39412a29@gmail.com> (raw)
In-Reply-To: <C8309908-0117-4DC5-A91E-CE3E50B322D3@stellar.eclipse.co.uk>

On 29/08/2017 17:33, Stroller wrote:
> 
>> On 29 Aug 2017, at 15:53, Ian Zimmerman <itz@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.mckinnon@gmail.com



  reply	other threads:[~2017-08-29 15:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-29 13:53 [gentoo-user] Why isn't this SDcard mounting? Stroller
2017-08-29 14:53 ` [gentoo-user] " Ian Zimmerman
2017-08-29 15:33   ` [gentoo-user] " Stroller
2017-08-29 15:35     ` Alan McKinnon [this message]
2017-08-29 16:45       ` Stroller
2017-08-29 18:15         ` Mick
2017-08-29 21:27           ` Stroller
2017-08-30  9:10             ` Mick
2017-08-31  9:42 ` Stroller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0958c1d4-b45c-4561-5516-e3fc39412a29@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox