I have a network share named dreambox on C:\dreambox that is shared with the group Everyone in Windows. I have mounted it to /hdd on a Linux-based STB with OpenDreambox (OpenEmbedded) using Telnet (PuTTY).
I have done so to enable the STB to record TV show to my PC without a dedicated eSATA disk drive.
I now wish to undo this, because I want to use a different PC for this and stop using this one.
This is the command I have used after connecting to the box over telnet and logging in:
cd / umount -t cifs
This command was accepted. But I was still able to press the Record button on the STB remote control and get the popup menu for recording. But if I chose to record the REC symbol would start flashing on the Info-bar but there were no files actually recorded to my network share. So it kind of... only kind of... worked...
Also, when I stopped the recording I got a GSOD (green screen of death) showing me some basic crash information and told me to send the log to the manufacturer to their e-mail address. It also stated that it would have to reboot. But I don't think it actually rebooted. So when I went to Menu, Standby/Restart, and choose Restart I could see the gears animation as if it was loading settings and then I got the same kind of GSOD again. I don't think it fully rebooted at all. I have done it repeatedly and got the GSOD every time. I then switched it off from power and put it back on, and after booting I had the same problem again.
These are the steps I have done to enable this:
1. PuTTY start 2. Connect to 192.168.0.107 3. Log in as root 4. cd / 5. mkdir /hdd/movie 6. mount -t cifs -o username=*,password=* //192.168.0.101/dreambox /hdd 7. cd /hdd 8. ls (showed nothing - empty folder)
Also, the Linux box is running BusyBox, and from what I understand, this is the package that gives it the shell command. I mention this because this shell doesn't seem to support all shell commands found on a regular Linux distro.
I did try this command first:
umount -t cifs -t cifs -o username=*,password=* //192.168.0.101/dreambox
Is this the proper syntax?
This is the same command as the one I used to mount, only this is the
umount command to unmount. And it didn't work, it didn't find the directory, file, or device (not sure of exact word). So I decided to unmount everything
cifs (as seen above), and it worked, but caused the Linux box to act up.
I have now done the same command again:
mount -t cifs -o username=*,password=* //192.168.0.101/dreambox /hdd
It got mounted, and I no longer get any GSOD and I can record once again.
But how do I stop it for good?...
I think it has something to do with bad references. Something is referring to my network share which is no longer there when I unmount it, which in turn causes Linux to start acting up.
FWIW, this is the content of my fstab file in
rootfs / auto defaults 1 1 proc /proc proc defaults 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 usbfs /proc/bus/usb usbfs defaults 0 0 /dev/mtdblock2 /boot jffs2 ro 0 0 tmpfs /var tmpfs defaults 0 0 tmpfs /tmp tmpfs defaults 0 0 /dev/sda1 /media/hdd auto defaults 0 0
I did use a different set of commands in my first attempts to mount the share in the box. And to make it mount on reboot I have edited this file. But I have undone those changes, so this should not have any effect anymore. What you see here above is what the fstab file looks like by default.
Oh right... the
/hdd actually redirects to
/media/hdd. So the
movie folder I created in the process is actually in
/media/hdd/movie and not
/hdd/movie (step 5. mkdir /hdd/movie).