USB stick mounting as autofs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rick78
    Junior Member
    • Aug 2011
    • 20

    #1

    USB stick mounting as autofs

    Hi,
    I have searched the forum and found many problems regarding USB mounting, with some solutions on how to mount. My problem is that my USB stick is only sometimes showing up in the devices. When it show up it has the label of USB Pen Drive. Then I can mount it and fix my paths in PVR and recording.
    The problem is that more time than not it is not found. When I look thru the CLI I can see it is mounted under 'autofs'.
    I cannot see what controls this.
    I would like this to loaded in fstab, but if it is not correct in the /dev , I don't think it will mount.
    I am running Nemesis 2.3 on a DM800 SE.
    I have installed enigma2-plugin-extensions-usb2hdd_0.1.6_mipsel.ipk , but that does really do anything I can see.

    Thanks in advance for any help on this.
    Rick
  • ypvs125
    DK Veteran
    • Dec 2010
    • 506

    #2
    Originally posted by rick78
    Hi,
    I have searched the forum and found many problems regarding USB mounting, with some solutions on how to mount. My problem is that my USB stick is only sometimes showing up in the devices. When it show up it has the label of USB Pen Drive. Then I can mount it and fix my paths in PVR and recording.
    The problem is that more time than not it is not found. When I look thru the CLI I can see it is mounted under 'autofs'.
    I cannot see what controls this.
    I would like this to loaded in fstab, but if it is not correct in the /dev , I don't think it will mount.
    I am running Nemesis 2.3 on a DM800 SE.
    I have installed enigma2-plugin-extensions-usb2hdd_0.1.6_mipsel.ipk , but that does really do anything I can see.

    Thanks in advance for any help on this.
    Rick
    Maybe this could help u understand better. Should be able to apply to dm800se.


    Finding/Mounting your USB Memory stick / Pendrive
    (using TELNET)

    - Use to find it : fdisk -l

    What you will see (hdd installed sda, and pendrive sdb) :

    root@dm800:~# fdisk -l

    Disk /dev/sda: 60.0 GB, 60011642880 bytes
    255 heads, 63 sectors/track, 7296 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 1 7296 58605116 83 Linux

    Disk /dev/sdb: 4059 MB, 4059561984 bytes
    229 heads, 32 sectors/track, 1081 cylinders
    Units = cylinders of 7328 * 512 = 3751936 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 1082 3964400 b Win95 FAT32

    - As you can see the USB device is on /dev/sdb1

    - To initialize (to ext3), one time only needed :
    mkfs.ext3 /dev/sdb1

    - Mounting the External File System / Pendrive
    mount /dev/sdb1 /mnt/usb

    The line mounts the device at the /dev/sdb1 location to the
    /mnt/usb directory. If you want to mount it as hdd then you just
    need to send command : mount /dev/sdb1 /mnt/hdd

    Now you can reference your pendrive from the command line
    using the folder /mnt/usb.

    Now your pendrive will be available at cd /media/usb/

    - Unmount if you don't use :
    umount -f -l /mnt/usb

    - See memory amount on devices : df -h (this only once mounted)


    - Automount In the Terminal

    To have your pendrive mount each time your server is restarted, you must edit your /etc/fstab file. Simply add at the bottom of your /etc/fstab file:

    /dev/sdb1 /mnt/usb ext3 defaults 0 0

    The first argument (/dev/sdb1) tells the system what device to mount, and the second argument (/mnt/usb) tells the system where to mount it. The third argument is the filesystem type (ext3). The fourth argument (defaults) tells the system what options to apply to the device, so in this case we?ll just use the defaults. The fifth and sixth arguments (both zeros) tell the system if the filesystem should be backed up using the dump utility, and the second zero tells the system whether to process the device when fsck is run. We can leave them both to zero for now.

    Comment

    • girovend
      Top Poster
      • Sep 2008
      • 158

      #3
      Change your image

      Comment

      • Mr S
        Member
        • Feb 2010
        • 52

        #4
        1) Format USB using HP format utility, FAT32 in tools folder. Then plug usb disk into dreambox.

        2) Then go to TS Panel (install it if you dont have it) and ?Initialise? the USB key to ?EX3? and change to media/usb (go to system tools, device manager and initialise). Format if you need to. If it goes wrong then format on pc with HP tool and then try again ?Initialising? with TS Panel, System Tools, Device Manager. Also enable hotswap every time device is connected ? it should give you a prompt for this.



        (If having problems try turning off dreambox completely with USB key in at the bottom USB port and turn on power).

        - Mountpoint should now be media/usb or similar. Go to ?TS panel? ?Information? and it should be similar to this;

        Partition info /dev/sda

        /dev/sda1

        Size: 8gb
        Free: 7gb

        Label:usb
        Mountpoint: /media/usb
        Filesystem: ext3


        - To check to see if it?s done it right, on Dreambox Control Centre, create a text file in my documents on pc and transfer this over to ?media/usb? on the deambox main page.

        - Then go to TS Panel on dreambox, then system tools, ?File explorer? and select ?USB ? in the parent directory. If the text file which you transferred over from the pc is present in here then it has worked correctly.

        Comment

        Working...