On Fri, 6 Nov 2015 22:40:03 +0000 steve-ALUG@hst.me.uk wrote:
On 06/11/15 10:52, Chris Walker wrote:
Hello,
Can somebody point me in the right direction please?
I'm trying to mount another linux box and although it mounts, I can't write to it which is my desired aim.
The box in question is a Humax Freeview machine and I can telnet into it and run commands from the command line and having installed ntfs-3g on it, I can now delete files from an attached usb drive using the screen menu on the device. The files are iPlayer programs which I download here, on my Magiea 5 machine.
Before I installed ntfs-3g, the contents of the fstab on the Humaxc looked like this :- /dev/sda1 on /media/drive1 type ntfs (ro,uid=0,gid=0,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1)
Afterwards, and after a reboot, it now looks like this :- /dev/sda1 on /media/usb-drive1 type fuseblk (rw,nosuid,nodev,user_id=0,group_id=0,allow_other)
As I said, it mounts here but all the files are owned by root and of course I can't copy new files to the USB drive.
I can FTP files to the box using humxftp as the user and a password of 0000 so my question is, what should I have in the fstab file on my machine to allow me to read from and write to the usb drive on the Humax?
In case you're curious, the relevant line from my fstab is currently this :- //Hummy/media /home/chris/Humax_Fox_HDR/ cifs nosetuids,uid=0,gid=0,credentials=/etc/samba/auth.hummy.humaxftp,sec=ntlm,_netdev 0 0 and the credentials file has two entries for user and password as in the FTP command.
Any help appreciated.
I'm confused. You say you're trying "to mount another linux box" which I take to mean you're trying to attach to a shared drive on another machine, but then you talk about USB drives. I'm confused to if this is a USB drive, and if it is, where it's mounted, and where you're trying to mount it.
Apologies for the confusion.
The USB drive is currently attached to the Humax and as you say, I am trying to attach to a shared drive on another machine.
Reading down a bit, it may become clearer - have I got this right? You've put a USB drive on the Humax machine, and you're trying to a) mount it on the humax, and b) then connect to it remotely from another machine? Is that right?
Spot on.
I'm also confused as to why the fstab changed after installing ntfs-3g. Did you change it? If there was n ntfs entry for it in fstab already, could the humax read and write the USB drive before installing ntfs-3g? If so, why did you install ntfs-3g?
By default, the Humax can read from, but not write to, NTFS formatted drives. I have installed some custom firmware which allows me to install extra packages, including samba, cifs and ntfs-3g which will then allow the machine to write to the NTFS-formatted, USB drive.
The old fstab listed the drive type as ntfs. This sounds OK. The later type is listed as fuse. A fuse filesystem is a user-space driver I think. This is OK I think, but I don't know why it's changed.
I can't answer that I'm afraid.
[snip instructions]
Once you're happy with the samba settings, then comment out your machine's FSTAB cifs entry and try to mount it manually. Once you've got that working, then craft the fstab entry. Note again you're specifically setting the user id and group id (UID and GID) to be 0, which is root.
Ok. I'll have a try at doing it manually.
I hope this helps, but I may have got the wrong end of the stick!
I rather think it's me that's done that ;-)
Thanks for the ideas. I'll give them a go.