You are not logged in.

#1 2013-09-24 13:58:21

windows_me
Member
From: England
Registered: 2013-08-14
Posts: 36
Website

Name SD card something other than sd?

"?" is used as wildcard, not question mark in title and below:

I'm playing around with Raspberry Pi operating systems and was wondering if there is some way to have SD cards named (on my Arch Desktop) with a different scheme than hard disks (e.g. /dev/mmcblk* instead of /dev/sd??).

I'm guessing that there's just a udev rule that I need to add/remove, could anyone enlighten me on it?

Thanks

Last edited by windows_me (2013-09-24 14:39:29)


[10:04:21] Time for weekly full server backup.
[10:04:25] Redirecting it to "/dev/null" to make it go faster.
[10:04:53] Backup done! Amazing how fast modern technology is!

Offline

#2 2013-09-24 21:41:45

Andy45
Member
Registered: 2013-09-21
Posts: 14

Re: Name SD card something other than sd?

Hi windows,

As far as I know, sd stands for Special Device. So this is something that the OS uses to identify all special devices - or disk drives. I believe that that isn't meant to be changed...

Good luck,
Andy

http://publib.boulder.ibm.com/infocente … hsag8.html
http://superuser.com/questions/558156/w … linux-mean

Offline

#3 2013-09-24 21:57:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Name SD card something other than sd?

It sounds like your DE is "helping you" with this. Is the device name the same in the output of `mount`?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2013-09-24 23:26:54

windows_me
Member
From: England
Registered: 2013-08-14
Posts: 36
Website

Re: Name SD card something other than sd?

Hi,

I'm using terminal, not a DE.  I recall on some Linux distro, SD/MMC cards appeared in /dev as "/dev/mmcblk?" and the partitions as "/dev/mmcblk?p?", rather than "sd??".


[10:04:21] Time for weekly full server backup.
[10:04:25] Redirecting it to "/dev/null" to make it go faster.
[10:04:53] Backup done! Amazing how fast modern technology is!

Offline

#5 2013-09-24 23:49:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Name SD card something other than sd?

Seems that indeed RasPi does that https://bbs.archlinux.org/viewtopic.php … 1#p1279741 -> https://bbs.archlinux.org/viewtopic.php … 7#p1279777 so you can ask on their forum, how do they do it - is it hardware related etc.

Offline

#6 2013-09-25 00:10:12

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: Name SD card something other than sd?

Huh, I always thought this had something to do with how the device connects. For me (the last time I checked), SDcards, when inserted using a USB card reader, will read as /dev/sd?, but when inserted through the dedicated SDcard reader, appear as /dev/mmcblk?. I thought this was always the case, but it appears that I have been wrong. I'll need to look into this again…

All the best,

-HG

Offline

#7 2013-09-25 00:12:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Name SD card something other than sd?

I also think that's how it works, but I have no way to check it.

Offline

#8 2013-09-25 00:13:43

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: Name SD card something other than sd?

karol wrote:

I also think that's how it works, but I have no way to check it.

Let me go test it, I have the necessary hardware.

[EDIT]: This is how it works for me. I don't know if that's how it is for everyone, but this is how I've always thought of it working.

All the best,

-HG

Last edited by HalosGhost (2013-09-25 00:16:38)

Offline

#9 2013-09-25 13:58:19

windows_me
Member
From: England
Registered: 2013-08-14
Posts: 36
Website

Re: Name SD card something other than sd?

HalosGhost wrote:

Huh, I always thought this had something to do with how the device connects. For me (the last time I checked), SDcards, when inserted using a USB card reader, will read as /dev/sd?, but when inserted through the dedicated SDcard reader, appear as /dev/mmcblk?. I thought this was always the case, but it appears that I have been wrong. I'll need to look into this again…

All the best,

-HG

My SD card reader is a 3.5" unit that internally connects to the mobo via USB - I guess my kernel just doesn't like me sad


[10:04:21] Time for weekly full server backup.
[10:04:25] Redirecting it to "/dev/null" to make it go faster.
[10:04:53] Backup done! Amazing how fast modern technology is!

Offline

#10 2013-09-25 17:24:53

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: Name SD card something other than sd?

windows_me wrote:

My SD card reader is a 3.5" unit that internally connects to the mobo via USB - I guess my kernel just doesn't like me sad

Well, no that makes sense. If it connects through USB, then it would appear as /dev/sd?.

All the best,

-HG

Offline

#11 2013-09-25 17:35:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Name SD card something other than sd?

HalosGhost wrote:
windows_me wrote:

My SD card reader is a 3.5" unit that internally connects to the mobo via USB - I guess my kernel just doesn't like me sad

Well, no that makes sense. If it connects through USB, then it would appear as /dev/sd?.

All the best,

-HG

So it's the same as attaching an external drive or a USB card reader.

Raspberry Pi's card reader is not connected via the USB, it's build-in, but as I mentioned, I don't know how exactly the hardware works.

Offline

#12 2013-09-25 18:45:32

windows_me
Member
From: England
Registered: 2013-08-14
Posts: 36
Website

Re: Name SD card something other than sd?

HalosGhost wrote:
windows_me wrote:

My SD card reader is a 3.5" unit that internally connects to the mobo via USB - I guess my kernel just doesn't like me sad

Well, no that makes sense. If it connects through USB, then it would appear as /dev/sd?.

All the best,

-HG

Maybe it makes no sense, but that's the way Arch is naming it!


[10:04:21] Time for weekly full server backup.
[10:04:25] Redirecting it to "/dev/null" to make it go faster.
[10:04:53] Backup done! Amazing how fast modern technology is!

Offline

#13 2013-09-25 20:39:56

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: Name SD card something other than sd?

windows_me wrote:

Maybe it makes no sense, but that's the way Arch is naming it!

You misunderstand. I'm saying that that makes perfect sense. It's connected through USB (even though that USB cable is internal), so karol is right:

karol wrote:

So it's the same as attaching an external drive or a USB card reader.

All the best,

-HG

Offline

Board footer

Powered by FluxBB