Professional Web Applications Themes

Mount in user mode && USBD for external HDD - FreeBSD

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 ...

  1. #1

    Default 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 rootvincent:/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_bachelieryahoo.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

  2. #2

    Default Re: Mount in user mode && USBD for external HDD

    Bachelier Vincent <vincent_bachelieryahoo.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 rootvincent:/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.
    Lowell Gilbert Guest

  3. Moderated Post

    Default Re: Mount in user mode && USBD for external HDD

    Removed by Administrator
    Bachelier Vincent Guest
    Moderated Post

Similar Threads

  1. External style sheet not showing in Edit mode
    By itchylick in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: April 30th, 11:46 AM
  2. Mount / Umount in user mode
    By Bachelier Vincent in forum FreeBSD
    Replies: 2
    Last Post: February 25th, 06:45 AM
  3. user mode mount question
    By George in forum Linux / Unix Administration
    Replies: 1
    Last Post: June 25th, 04:04 PM
  4. mount second hdd for user
    By @(none)web.de in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: September 15th, 05:23 PM
  5. Q:how to mount external USB-HDD
    By davide@yahoo.com in forum Linux Setup, Configuration & Administration
    Replies: 4
    Last Post: July 4th, 01:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139