mdev with hda's

David Henderson dhenderson at digital-pipe.com
Wed May 11 18:51:19 UTC 2011


On 05/11/2011 01:55 PM, Harald Becker wrote:
>   Hallo David!
>
>> When generating the output for that reply, no.
> Can you please post the output of env for sda and hda devices using the
> same technice of calling mdev ... only than we are able to get a
> comparable output! ... else we are looking at completely different things.
>
> --
> Harald
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox

Since both are immediately exporting the environment, they will have the 
same information as originally posted, but for the sake of argument, I 
did as asked with the output below:


I used these mdev rules:
(sd[a-z])               root:home      660     @env >> /tmp/$MDEV
(sd[a-z])([0-9]+)       root:home      660     @env >> /tmp/$MDEV
(hd[a-z])               root:home      660     @env >> /tmp/$MDEV
(hd[a-z])([0-9]+)       root:home      660     @env >> /tmp/$MDEV

root at dev_pc:/tmp# cat hdc
TERM=linux
SUBSYSTEM=block
GUIPORT=81
OS=XiniX
USER=root
LD_LIBRARY_PATH=/lib:/home/root/.lib:/home/.everyone/.lib
bootmode=normal
ED=EE
PATH=/home/root/.etc/defaults:/etc/defaults:/home/root/.bin:/home/root/.sbin:/bin:/sbin
SUPPORT=XYZ
vga=0x314
_=/bin/env
PWD=/dev
TZ=EST5EDT
GUISERVER=127.0.0.1
ADMAIL=support at XYZ.com
HOME=/home/root
SHLVL=3
MDEV=hdc
PIDDIR=/var/run/pids
SVDIR=/var/run/services
VER=0.5
ADMIN=Dave

root at dev_pc:/tmp# cat hdc1
TERM=linux
SUBSYSTEM=block
GUIPORT=81
OS=XiniX
USER=root
LD_LIBRARY_PATH=/lib:/home/root/.lib:/home/.everyone/.lib
bootmode=normal
ED=EE
PATH=/home/root/.etc/defaults:/etc/defaults:/home/root/.bin:/home/root/.sbin:/bin:/sbin
SUPPORT=XYZ
vga=0x314
_=/bin/env
PWD=/dev
TZ=EST5EDT
GUISERVER=127.0.0.1
ADMAIL=support at XYZ.com
HOME=/home/root
SHLVL=3
MDEV=hdc1
PIDDIR=/var/run/pids
SVDIR=/var/run/services
VER=0.5
ADMIN=Dave

root at dev_pc:/tmp# cat sda
DEVTYPE=disk
SUBSYSTEM=block
DEVPATH=/devices/pci0000:00/0000:00:10.3/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda
MINOR=0
PATH=/sbin:/bin:/usr/sbin:/usr/bin
ACTION=add
PWD=/dev
MAJOR=8
DEVNAME=sda
SHLVL=1
HOME=/
MDEV=sda
SEQNUM=479
_=/bin/env

root at dev_pc:/tmp# cat sda1
DEVTYPE=partition
SUBSYSTEM=block
DEVPATH=/devices/pci0000:00/0000:00:10.3/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1
MINOR=1
PATH=/sbin:/bin:/usr/sbin:/usr/bin
ACTION=add
PWD=/dev
MAJOR=8
DEVNAME=sda1
SHLVL=1
HOME=/
MDEV=sda1
SEQNUM=480
_=/bin/env


More information about the busybox mailing list