Mounting cifs shared drives in Mga6 [Closed]

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Mounting cifs shared drives in Mga6 [Closed]

Postby rodgoslin » Dec 9th, '17, 00:57

Building a new system in Mga6, I've used a line in /etc/fstab, which has worked successfully for a good few years. However, in the new build, it no longer works, as illustrated below:-


Code: Select all
[root@up etc]# mount -av
/                        : ignored
/home                    : already mounted
mount: none is already mounted or /proc busy
swap                     : ignored
mount: wrong fs type, bad option, bad superblock on //transporter/Transporter,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.



[root@up etc]# cat fstab
# Entry for /dev/sda2 :
UUID=90aba70b-aca3-4e8a-bac2-6541db8e4ef6 / ext4 relatime,acl 1 1
# Entry for /dev/sda4 :
UUID=b4bff940-0f20-421f-ae7b-ac95b0b8d4b5 /home ext4 relatime,acl 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda3 :
UUID=64a6f8a5-b538-42d6-aca8-db85f77aebb1 swap swap defaults 0 0

//transporter/Transporter /mnt/Transporter cifs username='user',password='password',uid='xxx',gid='xxx' 0 0
[root@up etc]#


The output of dmesg | tail is:-

Code: Select all
[ 8493.834580] Key type cifs.spnego registered
[ 8493.834584] Key type cifs.idmap registered
[ 8493.835068] Unable to determine destination address.
[root@up etc]#


The appropriate entry in /etc/hosts is :-

Code: Select all
192.168.1.213           netbookwifi
192.168.1.214           netbooketh
192.168.1.190           laserjet1
192.168.1.192           laserjet2

192.168.1.156           Transporter

Pinging the address gets the usual response. Ping with either the name or the address, works. Any ideas? It works fine in Mga5. In fact, I've only just discovered that appending uid and gid to the options, gains me write access, which has hampered the use of the NAS units for years.
Last edited by rodgoslin on Dec 10th, '17, 02:20, edited 1 time in total.
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Mounting cifs shared drives in Mga6

Postby rodgoslin » Dec 9th, '17, 03:06

Ummm. I seem to have solved this myself, inadvertently. While adding all the applications that do not come under the build banner, there was cif-utils, which I think is the needed file to make the thing work. Running mount -av, after the install, and the mount worked. If it works for the other mounts, that I've not added yet, I'll close the thread. Should this be an install by default?
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Mounting cifs shared drives in Mga6

Postby doktor5000 » Dec 9th, '17, 04:25

rodgoslin wrote:While adding all the applications that do not come under the build banner, there was cif-utils, which I think is the needed file to make the thing work. Running mount -av, after the install, and the mount worked. If it works for the other mounts, that I've not added yet, I'll close the thread. Should this be an install by default?

Going by that logic, all packages that may be needed in any cornercase scenario should be in the default install, which is the wrong way to go.
And if you would have set it up via MCC, it would install cifs-utils, but if you choose to configure that manually then you need to take care of that for yourself.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mounting cifs shared drives in Mga6

Postby rodgoslin » Dec 9th, '17, 17:58

Doktor,
This is no 'cornercase scenario' , if I take the meaning correctly. This is an essential part of MMC, and is therefore a default application, and to my mind to have the option of mounting SMB shares (cifs), without an essential file set is not correct.
To your point of manual install, I have to confess that I do manual installs, at times. This is not by choice, but as a consequence of shortcomings in the 'official' way of doing things. Whenever Mageia issues a new version, I ALWAYS use the correct method, first, in the hope that in the new version any extant problems will have been dealt with. Only when it proves that the problem still exists, do I go for the manual method. Which has worked before.
In the present case, the 'official' way did not work, as I have outlined below
1. The first step is to locate such devices as are suitable, with the 'find servers' button. This should, and has, in the past located all of the relevant devices. Not all the time, mind, and it usually takes several tries before they all come up. In my case they consist of two Drobo units and a Transporter. The search revealed only the Transporter, and no matter how often I initiated a search, it did not find the other two. Which is why that was the one which I pursued, for moment ignoring the others.
2. The next step is to setup the mount. This is simple enough, until we come to the 'Options'. To use the devices, should the mount be successful requires that the device username and password be entered. However, since Mga 5, the option for including the password has gone. Although, from memory, it was still available on the 32 bit version, but absent from the 64 bit. The password can be entered 'manually', but, at that time the system was changed to hide the password from the user. Rather pointless if the user had to know the password to effect the mounting.
3. The final step was to establish the mount. here the system has always failed, if one takes the 'official' route. The reason is not difficult to understand, although difficult to establish why, since no reason for the failure to mount is given. The reason is because in the install the device is referred to by name, and the mount cannot mount an object unless the name is associated with an IP address. So far I have failed to find any operation which will automatically associate a named object with it's IPaddress. So a 'manual' editting of the /etc/hosts file is needed to make the system work.
4. Since all efforts to mount the drive using the 'correct' method fail, there seems little point to clicking on the 'done' button, but if you do, it will create an entry in the /etc/fstab record. Mounting from this, with the mount -a command fails for the reason outlined in 3.
When all has been 'corrected', and the device will mount on boot, the system is still unsatisfactory, since the device is mounted read only to the user, which makes copying files to the device difficult. I did find that by opening a file manager (Konqueror) as root, transfers can be made, but hardly a use of root in a resposible manner. It is only recently when pursuing another matter, in a wiki on another distro, that I came across the method of adding users, and consequently after a number of years of read only, as a user, I can now write to my shares.
If, Doktor, you are interested in my experiences with using the 'official' system, you can ask me of the results of an absolutely and only 'by the book' clean install of Mageia 6, on a new, just out of the shrink wrap 4TB HDD, on my other desktoip machine.
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Mounting cifs shared drives in Mga6

Postby doktor5000 » Dec 10th, '17, 00:00

Well the point is you are asking for a workaround. We cannot just add any arbitrary package to the default installation, people that only want a minimal installation mayn not want this and all the dependencies it requires.
Either you vote on the respective bugs that may or may not exist with the 'official' system to configure CIFS mounts, or you set it up manually. Setting that up includes making sure that name resolution works, and that a few packages like cifs-utils and samba-client are installed beforehand. Just because you forgot to install it does not make this a reason to install this package in all default installations.
Next time people will ask for nfs-utils, all sorts of email clients and browsers and whatnot to be added to the default installations, going by your logic.

rodgoslin wrote:If, Doktor, you are interested in my experiences with using the 'official' system, you can ask me of the results of an absolutely and only 'by the book' clean install of Mageia 6, on a new, just out of the shrink wrap 4TB HDD, on my other desktoip machine.

Well, you already listed your experiences, why ask afterwards? But as you are asking, no I'm personally not interested.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mounting cifs shared drives in Mga6 [Closed]

Postby rodgoslin » Dec 10th, '17, 02:22

All my other shares now working. Thread closed
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Mounting cifs shared drives in Mga6 [Closed]

Postby wintpe » Dec 13th, '17, 11:52

Rod

if i can add my view on this.

for server message block to work in a linux environment, without one of the issues you have bought up, name resolution must be in place.

that because the protocol only deals in names, but for it to work with tcpip there must be name resolution.

Im guessing from excerpts of conversations i had with you in the past that you rely solely on your adsl/dhcp router for your name resolution.

That just wont cut it, for what you want.

instead i think a replacement dhcp/dns server is required to provide the name resolution, move away from every server taking pot luck what ip address it gets, and move to what is termed static dhcp, where every server always gets the same ipaddress.

then that step in your problems will go away.

I run one and i dont have the issues with samba that you describe.

if you need help on this theres a few of us who can help, but you will need to do some reading

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: Mounting cifs shared drives in Mga6 [Closed]

Postby rodgoslin » Dec 14th, '17, 01:55

Peter,
I've no idea how you came by the notion that I use DCHP. I've NEVER used DCHP. My background is in Unix, where the ipaddress of every machine was allocated, and that's how my system is run. Apart from such devices running Android, which as far as I'm concerned, have no contact and need no contact with the system proper. The only exeption to this is the Transporter, which has no function to set an ipaddress. For that, in the router, I use Address Reservation, which allocates a specific ipaddress according to the devices MAC address. My beef, with this thread, was that the function to add a share does not work, and has never worked without a fair admixture of hands on.
A long time ago, I tried to interest my friends with the delights of Linux, but no more. Lamentably Windows has no problems whatever with shares, but I'd hate to try and justify Linux's handling of the same function. For a good few years, now, I've had various Drobo units associated with my LAN. One of the biggest problems has been that no matter what I did, I could only get read access for the user. Hence my recent threads regarding root use of a file manager. The only way to add files to the Drobo, short of FTP'ing them across to Windows, and adding them there.
I've recently put in a bug report about the poor performance of the procedure for adding SMB devices, and have received a fair amount of positive response, and agreement with my suppositions. One of the subscribers provided me with a link to an Archlinux Wiki, which, while browsing through it, i came across an invaluable piece of advice regarding adding users to the mount options. As a result, I now have full read/write access to the Drobo's, and the necessity for root action is no more.
Name Resolution, in my systems is handled by the /etc/hosts file, as it has always been. I know of no other. It works, which works for me.
The Drobo, is an odd device. It originally ran on a version of Linux, and quite likely still does, but the manufacturer, Data Robotics has from the start insisted that they do not provide support for the use in a Linux environment. Consequently, in this case I have to resort to Windows in order to assign my choice of ipaddress to the units. Although, as with the Transporter, I could use the routers Address Reservation function.

Regards, Rod
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Mounting cifs shared drives in Mga6 [Closed]

Postby wintpe » Dec 18th, '17, 14:09

im sorry if ive misunderstood your environment

maybe im mixing up some of your posts with another ive commented on, and intertwined them.

it was your use of hosts files, that made me think that as a way of helping your samba, that i thought you would benefit from a dns/dhcp server

its difficult to get an accurate understanding of someones environment, based on a mixture of posts.

However if you are happy with maintaining hosts files carry on, its a bit 1990's though.

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: Mounting cifs shared drives in Mga6 [Closed]

Postby rodgoslin » Dec 18th, '17, 15:30

Lol. Well, I'm a 1990's sort of guy. With a somewhat old-fashioned idea of keeping things simple and understandable! I've never understood the rationale of assigning a different ipaddress every time an item was powered up. I'm sure it would never work with the Post Office letter post!

Rod
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest