Missing /dev/disk directory!

View: New views
5 Messages — Rating Filter:   Alert me  

Missing /dev/disk directory!

by yhoo_does_my_head_in :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My slug is missing the /dev/disk folder. It's running OpenSlug (SlugOS) from around 2007. Uname says "2.6.16 #1 PREEMPT Fri Jun 9 07:34:31 PDT 2006 armv5teb unknown".
What do I do to enable this functionality? Time for an upgrade?


Re: Missing /dev/disk directory!

by Mike Westerhof (mwester) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

All disk device nodes are in /dev - there is no need for the extra directory level.
-Mike (mwester)

Sent via BlackBerry by AT&T

-----Original Message-----
From: "Elias" <eliasll@...>
Date: Sun, 08 Nov 2009 10:29:39
To: <nslu2-linux@...>
Subject: [nslu2-linux] Missing /dev/disk directory!

My slug is missing the /dev/disk folder. It's running OpenSlug (SlugOS) from around 2007. Uname says "2.6.16 #1 PREEMPT Fri Jun 9 07:34:31 PDT 2006 armv5teb unknown".
What do I do to enable this functionality? Time for an upgrade?



------------------------------------

Yahoo! Groups Links




Re: Missing /dev/disk directory!

by yhoo_does_my_head_in :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Then perhaps my question should be a different one. On my Ubuntu boxes, I have the directory /dev/disk, containing 4 subdirs called by-id, by-label, by-path, and by-uuid, as such:
.
|-- by-id
|   |-- ata-IC25N030ATMR04-0_MRG215KBGHUM5J -> ../../sda
|   |-- ata-IC25N030ATMR04-0_MRG215KBGHUM5J-part1 -> ../../sda1
|   |-- ata-IC25N030ATMR04-0_MRG215KBGHUM5J-part2 -> ../../sda2
|   |-- scsi-1ATA_IC25N030ATMR04-0_MRG215KBGHUM5J -> ../../sda
|   |-- scsi-1ATA_IC25N030ATMR04-0_MRG215KBGHUM5J-part1 -> ../../sda1
|   |-- scsi-1ATA_IC25N030ATMR04-0_MRG215KBGHUM5J-part2 -> ../../sda2
|   |-- usb-WD_1200BEV_External_575843583037353436393937-0:0 -> ../../sdb
|   `-- usb-WD_1200BEV_External_575843583037353436393937-0:0-part1 -> ../../sdb1
|-- by-label
|   `-- WD\x20Passport -> ../../sdb1
|-- by-path
|   |-- pci-0000:00:1d.1-usb-0:2:1.0-scsi-0:0:0:0 -> ../../sdb
|   |-- pci-0000:00:1d.1-usb-0:2:1.0-scsi-0:0:0:0-part1 -> ../../sdb1
|   |-- pci-0000:00:1f.1-scsi-0:0:0:0 -> ../../sda
|   |-- pci-0000:00:1f.1-scsi-0:0:0:0-part1 -> ../../sda1
|   |-- pci-0000:00:1f.1-scsi-0:0:0:0-part2 -> ../../sda2
|   `-- pci-0000:00:1f.1-scsi-1:0:0:0 -> ../../scd0
`-- by-uuid
    |-- 0be54e48-cf61-4121-8341-fba63f49ce79 -> ../../sda1
    |-- 692B-6507 -> ../../sdb1
    `-- 7a91387d-197c-4b94-ae6a-835b52401be8 -> ../../sda2

What I would like to do on my slug is to mount a partition based on its UUID or label, and without these dirs that seems impossible. Or perhaps there's another way?


--- In nslu2-linux@..., "Mike Westerhof" <mwester@...> wrote:

>
> All disk device nodes are in /dev - there is no need for the extra directory level.
> -Mike (mwester)
>
> Sent via BlackBerry by AT&T
>
> -----Original Message-----
> From: "Elias" <eliasll@...>
> Date: Sun, 08 Nov 2009 10:29:39
> To: <nslu2-linux@...>
> Subject: [nslu2-linux] Missing /dev/disk directory!
>
> My slug is missing the /dev/disk folder. It's running OpenSlug (SlugOS) from around 2007. Uname says "2.6.16 #1 PREEMPT Fri Jun 9 07:34:31 PDT 2006 armv5teb unknown".
> What do I do to enable this functionality? Time for an upgrade?
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>



Re: Re: Missing /dev/disk directory!

by Mike Westerhof (mwester) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Elias wrote:
> Then perhaps my question should be a different one.
>  
...
> What I would like to do on my slug is to mount a partition based on its UUID or label, and without these dirs that seems impossible. Or perhaps there's another way?
The mount command can mount a filesystem by either UUID or label.  If
your particular SlugOS version doesn't support that, then you may have
to upgrade to a more recent version - but see what options are supported
by the mount command first.

Note that the "pseudo-auto-mounter" on SlugOS systems (which is a udev
script that mounts a disk on /media/sd<something>) will usually get in
the way when you do this.  You'll probably want to disable that. Add
"sd*" to the blacklist file located somewhere in the /etc/udev directory.

-Mike (mwester)


Re: Missing /dev/disk directory!

by yhoo_does_my_head_in :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Thanx Mike! blkid and mount -L were all the tools I needed after all..

--- In nslu2-linux@..., Mike Westerhof <mwester@...> wrote:

>
> Elias wrote:
> > Then perhaps my question should be a different one.
> >  
> ...
> > What I would like to do on my slug is to mount a partition based on its UUID or label, and without these dirs that seems impossible. Or perhaps there's another way?
> The mount command can mount a filesystem by either UUID or label.  If
> your particular SlugOS version doesn't support that, then you may have
> to upgrade to a more recent version - but see what options are supported
> by the mount command first.
>
> Note that the "pseudo-auto-mounter" on SlugOS systems (which is a udev
> script that mounts a disk on /media/sd<something>) will usually get in
> the way when you do this.  You'll probably want to disable that. Add
> "sd*" to the blacklist file located somewhere in the /etc/udev directory.
>
> -Mike (mwester)
>