Author Topic: Help with a fstab line on a workstation  (Read 3604 times)

freymann

  • Douchebag
  • Guru
  • *
  • Posts: 380
    • View Profile
Help with a fstab line on a workstation
« on: November 04, 2008, 03:37:46 pm »
I can run the following command:

Code: [Select]
sudo mount -t cifs -s -o credentials=/home/freymann/samba_lmce.txt,dir_mode=0777,file_mode=0777 //192.168.80.2/Storage203$ /mnt/device/203

on my ubuntu workstation so I have access to my 500GB drive on the living-room media director from my workstation. This works great and allows me to do backups to the drive.

I wanted to make this permanent, so I added this line into my /etc/fstab file:

Code: [Select]
192.168.80.2://Storage203$/ /mnt/device/203/ cifs credentials=/home/freymann/samba_lmce.txt,dir_mode=0777,file_mode=0777 0 0

but when I fire up my workstation in the morning, it doesn't take, and if I run "sudo mount -a" form the command line I get this message:

Code: [Select]
retrying with upper case share name
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Can anybody spot what I've done wrong in my fstab file?



Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: Help with a fstab line on a workstation
« Reply #1 on: November 04, 2008, 04:37:33 pm »
Looks like you're using "//192.168.80.2/Storage203$" on the command line, but "192.168.80.2://Storage203$/" in the fstab file, I think the latter one is how nfs shares are mounted, not smbfs/cifs.  So I'd suggest trying "//192.168.80.2/Storage203$" in the fstab as well.

And just to point out the obvious for our other listeners, this is for a non-lmce Ubuntu workstation, this sort of thing should NOT ever have to be done manually on a Media Director at all!
"Change is inevitable. Progress is optional."
-- Anonymous


freymann

  • Douchebag
  • Guru
  • *
  • Posts: 380
    • View Profile
Re: Help with a fstab line on a workstation
« Reply #2 on: November 06, 2008, 01:49:33 pm »
Looks like you're using "//192.168.80.2/Storage203$" on the command line, but "192.168.80.2://Storage203$/" in the fstab file, I think the latter one is how nfs shares are mounted, not smbfs/cifs.  So I'd suggest trying "//192.168.80.2/Storage203$" in the fstab as well.

 Tried it without the trailing slash, same thing.

 So I put the line in my /etc/rc.local file and this morning when I booted up, the drive is mapped, so I'll go with that.

 And that is true -- for a normal LMCE environment, these drive mappings aren't required. I have a separate ubuntu desktop that has nothing to do with the LMCE setup, other than being on the internal network. My goal was to have access to the hard drive in the living-room media director for backup purposes. That is now working fully automated.

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: Help with a fstab line on a workstation
« Reply #3 on: November 07, 2008, 03:44:39 am »
Looks like you're using "//192.168.80.2/Storage203$" on the command line, but "192.168.80.2://Storage203$/" in the fstab file, I think the latter one is how nfs shares are mounted, not smbfs/cifs.  So I'd suggest trying "//192.168.80.2/Storage203$" in the fstab as well.

 Tried it without the trailing slash, same thing.
...

It's not about the trailing slash at all, these simply are two entirely different things:

//192.168.80.2/Storage203$
192.168.80.2://Storage203$/
"Change is inevitable. Progress is optional."
-- Anonymous


freymann

  • Douchebag
  • Guru
  • *
  • Posts: 380
    • View Profile
Re: Help with a fstab line on a workstation
« Reply #4 on: November 07, 2008, 04:10:46 am »
Quote
It's not about the trailing slash at all, these simply are two entirely different things:

//192.168.80.2/Storage203$
192.168.80.2://Storage203$/


 Oh! I think I get it now...

 I had a line above that one mapping the drive in the core too, so I used the same syntax as that, but I can see how those are two different things.

 Good eye!