Mounting NAS drive under Ubuntu

Ubuntu Issues!

I class this as very invaluable on how to mount NAS drives, So i thought i would share!

I’ve been battling this one for a long time… Finally got it solved…
Since I bought it, I have been unable to mount the drive under the linux console so that i can access it’s contents in bash script.
Accessing the drive from Gnome file browser, works fine, however.

I tried and exhausted all options:

1. Using smbmount (although deprecated) would mount the drive, but the contents of any subsequent directory listing would be garbled and look like corrupt text

———- 1 root 16 114P 1940-10-24 12:26 ?
———- 1 root 16 114P 1940-10-24 12:26 ?~?????
———- 1 686040 32 115P 1940-10-24 12:26 9.jpgj
———- 1 root 16 114P 1940-10-24 12:26 and star cityg 

2. Using mount.cifs would not even get that far – it would just mount error out with:

mount error 20 = Not a directory

And then i stumbled across a newsgroup post which had the answer:

modprobe cifs
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
mount /mountPoint

According to this link apparently the NAS drive doesn’t support the smb extensions supported by my client’s kernel, so disabling them allows me to mount the drive successfully…

i don’t know what the Linux extensions actually are, but i’m guessing that they have something to do with codepages and the interpretation of content, because now when i try and browse the mounted directory under Gnome’s file browser, it comes out all garbled… no proble… i can still browse the network share directly through gnome so no need to browse the share…

Just another day in front my computer…

EDIT:
On the upside, i’m now able to mount the network drive on my linux server, and share the network mount using samba on the server. This is a long and nasty workaround to the problem that Vista can’t access the NAS server without patching the NAS device itself.

Original Source: http://www.xerxesb.com/2008/mounting-nas-drive-under-ubuntu/

4 responses so far, want to say something?

  1. Xerxes says:

    Hi there,

    If you’re going to steal my content, I’d appreciate if you could at least acknowledge you found it on my website and put a link at the top, instead of trying to pass it off as your own?

    http://www.xerxesb.com/2008/mounting-nas-drive-under-ubuntu/

    Thanks,
    Xerxes

  2. Dan Cunningham says:

    Sorry but I did give you a trackback link Xerxes, I’ve now made it more easily visible on the bottom of the post so you can actually see it. I didnt intend to pass it off as my own, the trackback link was always there from my site to your’s Anyways sorry if i’ve caused you any upset as that wasnt my intention…

    Regards.
    Dan

  3. Wilfredo Gaudette says:

    hahah alright so this is exactly how brainless I am, halfway through looking through your post I dropped my cup of coffee on my desk and shut the internet explorer by mistake and I could not locate your internet page once again right up until 3 days later on to finish reading through from the point i stopped at for the reason that I forgot how I linked to your site in the first place haha at any rate it was worth the hold out..many thanks :)

  4. Free Newsgroup Server says:

    Youre so cool! I dont suppose Ive read something like this before. So nice to search out any person with some authentic thoughts on this subject. realy thank you for beginning this up. this website is one thing that’s wanted on the internet, somebody with a little originality. helpful job for bringing one thing new to the web!

Leave a Reply