Ask a Question related to FreeBSD, Design and Development.
-
Bachelier Vincent #1
Mount in user mode && USBD for external HDD
Hi, well
I have 2 problems
the first:
I have external hdd and I want that the system create a symlinks when I turn on my hdd
usbdev -v
give me:
Controller /dev/usb4:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA(0x0000),rev 1.00
port 1 powered
port 2 powered
port 3 addr 2: high speed, self powered, config 1, USB TO IDE(0x0702), GenesysLogic(0x05e3), rev 0.02
port 4 powered
port 5 powered
port 6 powered
port 7 powered
port 8 powered
Well I want to add a script in usbd.conf
then I have add this before device "USB device"
device "HddCombo"
devname "da[0-9]+"
vendor 0x05e3
product 0x0702
attach "ln -sf /dev/{DEVNAME} /dev/hddcombo"
(perhaps {DEVNAME}s1 is better)
but it doesn't work
My version of freebsd:
uname -a
FreeBSD vincent 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Feb 19 19:03:33 CET 2005 root@vincent:/usr/obj/usr/src/sys/VINCENT i386
Well, when I connect my hdd nothing append
just this in dmesg
umass0: Genesys Logic USB TO IDE, rev 2.00/0.02, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Maxtor 6 Y160P0 0811> Fixed Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 156334MB (320173056 512 byte sectors: 255H 63S/T 19929C)
Ok, the second problem is that I want to mount this disk with a user
If hddcombo is correctly link, I have this fstab line
/dev/hddcombo /mnt/removable ext2fs ro,noauto 0 0
Well, how can I do a mount command in users mode, in order to allow people I want to mount this, without login in in root
ok thx for support
--
Vincent Bachelier <vincent_bachelier@yahoo.fr>
Societe : Solintech
Site pro: [url]http://www.solintech.fr[/url]
Project :
Ripperwww: [url]http://www.sourceforge.net/projects/ripperwww[/url]
Citation (fortune):
Living in LA is like not having a date on Saturday night.
-- Candice Bergen
Bachelier Vincent Guest
-
External style sheet not showing in Edit mode
Make sure the extension for your ssi is .shtml. Styles should then render correctly in edit mode. -
Mount / Umount in user mode
Hi, How to mount or umount any file system in user mode ? like cdrom, usb drive ... ? I have hearn vfs.usermount with sysctl but I have set it... -
user mode mount question
Hi, Is there a solution to mount a winnt network share in user mode that is not to use standard 'mount -t smbfs' command. The problem is that... -
mount second hdd for user
Hello, I am trying to mount my second hdd for user, but I keep failing :-D Here are some details: I use Mandrake 9.1, first hdd has linux... -
Q:how to mount external USB-HDD
Barnoid <barnoid.no@spam.gmx.net> wrote: Did you recompile your kernel with the SCSI emulation, SCSI Generic, SCSI disk, USB support and USB mass... -
Lowell Gilbert #2
Re: Mount in user mode && USBD for external HDD
Bachelier Vincent <vincent_bachelier@yahoo.fr> writes:
What do you mean by "doesn't work"?> Hi, well
> I have 2 problems
> the first:
> I have external hdd and I want that the system create a symlinks when I turn on my hdd
>
> usbdev -v
> give me:
> Controller /dev/usb4:
> addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA(0x0000),rev 1.00
> port 1 powered
> port 2 powered
> port 3 addr 2: high speed, self powered, config 1, USB TO IDE(0x0702), GenesysLogic(0x05e3), rev 0.02
> port 4 powered
> port 5 powered
> port 6 powered
> port 7 powered
> port 8 powered
>
> Well I want to add a script in usbd.conf
>
> then I have add this before device "USB device"
>
>
> device "HddCombo"
> devname "da[0-9]+"
> vendor 0x05e3
> product 0x0702
> attach "ln -sf /dev/{DEVNAME} /dev/hddcombo"
> (perhaps {DEVNAME}s1 is better)
> but it doesn't work
There's a FAQ entry on letting users mount filesystems, but in this> My version of freebsd:
> uname -a
> FreeBSD vincent 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Feb 19 19:03:33 CET 2005 root@vincent:/usr/obj/usr/src/sys/VINCENT i386
>
> Well, when I connect my hdd nothing append
> just this in dmesg
> umass0: Genesys Logic USB TO IDE, rev 2.00/0.02, addr 2
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <Maxtor 6 Y160P0 0811> Fixed Direct Access SCSI-0 device
> da0: 1.000MB/s transfers
> da0: 156334MB (320173056 512 byte sectors: 255H 63S/T 19929C)
>
>
> Ok, the second problem is that I want to mount this disk with a user
> If hddcombo is correctly link, I have this fstab line
> /dev/hddcombo /mnt/removable ext2fs ro,noauto 0 0
>
> Well, how can I do a mount command in users mode, in order to allow people I want to mount this, without login in in root
case it seems like it would be easier for users (as well as more
secure) if you just configured usbd to mount the disk itself. I
haven't done this sort of thing myself, but I would expect that doing
the mount in an attach script (and umount in a detach script) would
solve the problem.
Lowell Gilbert Guest
-
Bachelier Vincent #3
Re: Mount in user mode && USBD for external HDD
In fact,
device "da[0-9]+"
doesn't match when I plug my hdd
I need to put device "umass[0-9]+"
and the ${DEVICENAME} = umass0 for exemple
I don't know how to obtain the pseudo "da" device with just information umass0
Use sysctl or devinfo doesn't match it
The only way I have found to get this information is to extract it from dmesg
But it's not really a fine way
Well, have an idea ?
Le Mon, Feb 21, 2005 at 06:00:38PM -0500, Lowell Gilbert a écrit:--> To: Bachelier Vincent <vincent_bachelier@yahoo.fr>
> Cc: [email]freebsd-questions@freebsd.org[/email]
> Subject: Re: Mount in user mode && USBD for external HDD
> From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
> Date: 21 Feb 2005 18:00:38 -0500
> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
>
> Bachelier Vincent <vincent_bachelier@yahoo.fr> writes:
>>> > Hi, well
> > I have 2 problems
> > the first:
> > I have external hdd and I want that the system create a symlinks when I turn on my hdd
> >
> > usbdev -v
> > give me:
> > Controller /dev/usb4:
> > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA(0x0000),rev 1.00
> > port 1 powered
> > port 2 powered
> > port 3 addr 2: high speed, self powered, config 1, USB TO IDE(0x0702), GenesysLogic(0x05e3), rev 0.02
> > port 4 powered
> > port 5 powered
> > port 6 powered
> > port 7 powered
> > port 8 powered
> >
> > Well I want to add a script in usbd.conf
> >
> > then I have add this before device "USB device"
> >
> >
> > device "HddCombo"
> > devname "da[0-9]+"
> > vendor 0x05e3
> > product 0x0702
> > attach "ln -sf /dev/{DEVNAME} /dev/hddcombo"
> > (perhaps {DEVNAME}s1 is better)
> > but it doesn't work
> What do you mean by "doesn't work"?
>>> > My version of freebsd:
> > uname -a
> > FreeBSD vincent 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Feb 19 19:03:33 CET 2005 root@vincent:/usr/obj/usr/src/sys/VINCENT i386
> >
> > Well, when I connect my hdd nothing append
> > just this in dmesg
> > umass0: Genesys Logic USB TO IDE, rev 2.00/0.02, addr 2
> > da0 at umass-sim0 bus 0 target 0 lun 0
> > da0: <Maxtor 6 Y160P0 0811> Fixed Direct Access SCSI-0 device
> > da0: 1.000MB/s transfers
> > da0: 156334MB (320173056 512 byte sectors: 255H 63S/T 19929C)
> >
> >
> > Ok, the second problem is that I want to mount this disk with a user
> > If hddcombo is correctly link, I have this fstab line
> > /dev/hddcombo /mnt/removable ext2fs ro,noauto 0 0
> >
> > Well, how can I do a mount command in users mode, in order to allow people I want to mount this, without login in in root
> There's a FAQ entry on letting users mount filesystems, but in this
> case it seems like it would be easier for users (as well as more
> secure) if you just configured usbd to mount the disk itself. I
> haven't done this sort of thing myself, but I would expect that doing
> the mount in an attach script (and umount in a detach script) would
> solve the problem.
Vincent Bachelier <vincent_bachelier@yahoo.fr>
Societe : Solintech
Site pro: [url]http://www.solintech.fr[/url]
Project :
Ripperwww: [url]http://www.sourceforge.net/projects/ripperwww[/url]
Citation (fortune):
Most people wouldn't know music if it came up and bit them on the ass.
-- Frank Zappa
Bachelier Vincent Guest



Reply With Quote

