cifs How To-English

  • How To - Common Internet File Sharing (CIFS)


    Introduction
    For those looking for another option besides NFS for recording movies to another PC on the network, there is CIFS. CIFS is basically an SMB client for connecting the Linux DB to a Windows share. Many of the newest images already have CIFS mounting capabilities built-in.
    This guide will cover the following topics:
    -Creating an account
    -Sharing a folder
    -Configuring the DB
    Please note, at the end of each section I have included DOS command tool instructions for performing each of the tasks. There are also troubleshooting tips at the end of the document
    -Creating an account
    These instructions will be written with Windows XP Pro In mind. If you have Home, I suggest you move the end of each section and follow the DOS command line instructions.
    Creating a User:
    Click the Start button and right click on My Computer, then click on Manage. For Home edition, open the Control Panel.
    Once in the management console, open “Local Users and Groups”. For Home edition, click on Add Users [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs1.jpg]
    Open the Users Folder. Right click on the Users folder and click on New Users. For Home, click on Add new user.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs2.jpg]
    Enter the new user name. Suggest you keep the name short as it will be easier when typing on the DB remote.
    Enter the password and confirm.
    Uncheck “User must change password at next logon”
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs3.jpg]
    Check “Password never expires”. Press the Create button and you are done.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs4.jpg]
    If you do not wish to go through the entire GUI process, you can simply enter the following command at a Command Prompt
    Net User dream dream /add
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs45.jpg]
    This command will create an account named “dream” with the password of “dream”.
    Sharing a Folder
    Windows XP Home Edition will not easily allow you to disable “Simple File Sharing Mode”. See the Command Line section at the end of this topic.
    If your XP machine is in a Workgroup as opposed to a Domain, you will first have to disable the Simple File Sharing Mode.
    To do this, go into the Control Panel and open the “Folder Options” icon. This icon is under “Appearance and Themes” if you are in Category view.
    Click the “View” tab and scroll down to the bottom. Uncheck the item:
    “Use simple file sharing (Recommended)”[Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs46.jpg]
    Press the Apply button to implement the setting and close the windows.
    In Windows Explorer, browse to the drive you want to share a folder on. Create your Folder, “Dreambox” for example. Create another folder within that folder called “movie” (all of this is without the quotes of course). Do not name the subfolder movies, it must be “movie”.
    Go back to the Dreambox folder and right click on it. Select “Sharing and Security”
    Check the “Share this folder” button. Notice the name of the folder appears in the “Share Name” text box. You can leave it at this or change it if you wish. Just remember what the folder is being shared as if you do change it.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs5.jpg]
    Press the Permissions button
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs6.jpg]
    In the permissions window, click the Add button. Be sure the “From this location” field displays the name of your PC. If it doesn’t, just press the locations button and select your PC.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs7.jpg]
    Type in the name of the account you created, in the instructions above, we created the account; dream
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs8.jpg]
    Press the OK button and you will now see the dream account in the top window above Everyone.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs9.jpg]
    Be sure to check off at lease Change and Read permissions. It wouldn’t hurt to check off Full as well.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs10.jpg]
    Press OK and OK again and you are done.
    The folder should now be shared out with the user dream having read/write permissions.
    Note to advanced users: I tried modifying the NTFS permissions alone and it didn’t work. It appears as the SMB client (CIFS) requires Windows Share permissions to be set.
    Command Line
    Once again, if you do not want to spend time doing this through the GUI, you can perform the following steps:
    Make a folder on the D: drive called “Dreambox” (You can make this wherever you like, just adjust the path accordingly.
    Change to the D: drive, type “md Dreambox” (without quotes), Press Enter
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs11.jpg]
    Now create the “movie” subfolder by typing “md Dreambox\movie” (again, without quotes), then press Enter. Do not name the subfolder movies, it must be “movie”.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs12.jpg]
    Share the folder:
    At the command prompt, type the following:
    Net Share dreambox=d:\dreambox **Note the lowercase for the share. When mounting in DB use lower case.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs13.jpg]
    Issue NTFS permissions **XP Home Edition users see here**
    To grant NTFS permissions you can use the command line tool “CACLS”. In this guide, we created the “dreambox” folder at the root of D: Adjust this command to accommodate your share location if necessary.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs14.jpg]
    This command is saying, use the CACLS tool on the folder D:\dreambox /Edit the permissions, instead of replacing them and /Grant the account “dream” Full NTFS access. For a comprehensive list of things this tool can do, type CACLS /? At the command prompt.
    It’s important to have the /E as you want to Edit the rights to the folder, not replace them.
    After you press “Enter” you will know you were successful if you see the following message:
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs15.jpg]


    Configuring the DB
    NOTE: When mounting a DB 500 with Pi mount to /mnt/nfs instead of /hdd below
    To mount the drive in Enigma, Follow these steps:
    Open the “Settings” menu
    Open the “Expert Menu”
    Open the “Communication” menu
    Press the Blue button to enter the “Mounts” menu.
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs16.jpg]
    Enter the following information taking care to change the IP address to the IP of your receiving PC/Server
    Check off the Automount button if you want the drive to mount each time the DB boots.
    To make sure you have done everything right, on this screen, press the Green button to mount the volume.
    You should see this message if all went well:
    [Blockierte Grafik: http://ihadna.com/wbb2/attachments/downloads/imgs/cifs17.jpg]
    If you want to mount the volume in a telnet session instead of using the Enigma GUI, type the following command at the prompt.
    mount -t cifs -o user=dream,password=dream //<Share machine’s IP>/dreambox /hdd
    Taking care to enter the IP of your receiving PC/Server.
    -Remember, on the 500 with Pi, set the LocalDir: to /mnt/nfs
    -Remember, Do not name the subfolder movies, it must be “movie”.
    -Remember, always create the “dreambox” share in lower case.
    -Remember, always create the “movie” subfolder in lowercase.
    Here is a good link that goes into setting NTFS permissions on XP Home Edition.
    http://www.windowsnetworking.c…s_tutorials/wxpsimsh.html

  • Couple of Things on this:


    1) You dont have to create a new user as such, you can just use the same user name and password you use to start up and log into the windows PC


    2) The folder does not have to be created from scrath, and you can use an existing folder or even hard drive that you may have with files on it (I have a 2nd HDD with lots of films, Pics and music) You simply open my computer on the PC and open until the folder or Harddrive you want to share is showing. Right Click on it and choose SHARING, there add the user that you want to be able to access this folder or HDD (you can use your esiting use name and password if you want.) Remeber the SHARE NAME you give the shared drive or folder, as this is what you have to enter on the dreambox MOUNT section


    To record movies you simply creat a new folder (open the Folder or HDD, right click and choose NEW FOLDER, and name it movie.) or, as I had, rename your existing films folder to "movie". (So that my existing films and new ones were in the same place.) to do this right click the existing films folder and choose RENAME, simple as that.


    I have 3 folders within the shared drive, called mp3, movie and pics.


    The advantage of this is that not only will you have a shared drive to record onto, but you can also access existing files, music and pictures by clicking FILE OPTION on the dream then ROOT, and choose the mount drive name, there (as in mine) you will find all your folders, which when you open, will show your files, and when you choose a picture, a movie or a music (MP3) file, it will start automatically (ie Play music, Display picture, or start a movie). IT makes a great photo album and music centre.


    you use the GO UP option to move back up a level.

  • Hi. I want to run Distv Indain card on Dreambox 500. Please tell me is it possible or not and if yes. then how. I shall be great full to you if you reply. you can mail me on my mailing address.
    asia_isscab@hotmail.com
    hopiing for a reply
    thanks

  • Zitat

    Originally posted by stefan.kujanpaa@telia.com
    The CIFS How to helpt mi very vell but the cuality of the recorded files is not very god. I have som desturbans comming upp now and then.


    Do you have any sudgestion that the problem can be?


    /Stefan


    Have a look at this thread 500C Perfect Streaming or Loss of telnet & Webif


    I know it concerns streaming on a 500 box but recording module will come in time. Streaming & recording on the 500 is terrible - some people have suggested capacitor modification but I've tried this and it didn't make any difference. I found some people had already looked at the streaming module & identified problems with it.


    Dweeb4

  • Zitat

    Originally posted by fortas
    I sucsseded to mount usin this method, I start recording using timer in DB500s but seems it stops recordiing, why?


    It depends on how you start the recording. I noticed the same issue when starting a recording like this:
    - press red for multi epg
    - press green to record
    - press green to confirm
    - now you're back in the multi epg. When you press ok, the recording fails immediately. When you press exit, all will be fine.

  • On Dreambox 7025


    mount -t cifs -o user=dream,password=dream //192.168.1.40/dreambox /hdd


    Gave me an error


    -sh: mount-t :not found


    any help appreciated.

  • is it onlynecessary if I have a harddrive inside the dreambox? or exists another reason to create "CIFS" even I have a hard drive insidy my db? Thank you

  • Would someone be kind enough to update this tutorial for Gemini V4 on the E2 DM800 box, I can't seem to get anything working, cheers

  • DM800
    Edit the file auto.hotplung under etc to something like this


    * -fstype=auto,rw :/dev/&
    Music -fstype=cifs,rw,soft,nolock,rsize=8192,wsize=8192,user=Dream,pass=Dream ://192.168.0.196/Music
    Movie -fstype=cifs,rw,soft,nolock,rsize=8192,wsize=8192,user=Dream,pass=Dream ://192.168.0.196/Movie
    Opptak -fstype=cifs,rw,soft,nolock,rsize=8192,wsize=8192,user=Dream,pass=Dream ://192.168.0.196/Opptak
    Timeshift -fstype=cifs,rw,soft,nolock,rsize=8192,wsize=8192,user=Dream,pass=Dream ://192.168.0.196/Timeshift
    Photos -fstype=cifs,rw,soft,nolock,rsize=8192,wsize=8192,user=Dream,pass=Dream ://192.168.0.196/Photos

  • I have tried all you said but It keeps displaying mount FAILED any ideas? I have a dreambox 600 PVR

    • Offizieller Beitrag

    Not a lot of informations are you providing.


    You should post more. Firewall on or off, IP of pc, shared folder of pc, kind of os you use. And the mount settings on the box are interessting as well.