LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-11-2007, 08:24 AM   #1
marklawford
LQ Newbie
 
Registered: Mar 2005
Location: Eastbourne, UK
Posts: 4

Rep: Reputation: 0
Troublesome fstab entry in opensuse 10.2


I'm expanding my setup to include a network attached hard drive so I can access resources from either my laptop or my sparkling open suse linux box (installed just this morning with openSuse 10.2).

I can mount the network drive and access the files on it but I'd like to have the drive mounted at startup for all users.

The following command mounts the drive and gives me access to the files (at least, running as root it does...)

mount -t cifs "//192.168.2.7/DISK 1" /mnt/starone

But I think the share name "DISK 1" may be giving me problems when I try to add the mount to the /etc/fstab file.

/dev/hda2 / ext3 acl,user_xattr 1 1
/dev/hda3 /home ext3 acl,user_xattr 1 2
/dev/hda1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
"//192.168.2.7/DISK 1" /mnt/starone cifs noauto 0 0

I've included my full fstab file above.

It fails if I leave out the "DISK 1" share name and it fails if I leave it in...

Can anyone suggest a way to get this working?

Thanks,

Mark
 
Old 04-11-2007, 08:51 AM   #2
marklawford
LQ Newbie
 
Registered: Mar 2005
Location: Eastbourne, UK
Posts: 4

Original Poster
Rep: Reputation: 0
I did a little looking around and I've updated my new fstab line as follows:

//192.168.2.7/DISK\0401 /mnt/starone cifs noauto 0 0

I saw a tip (http://gentoo-wiki.com/HOWTO_Setup_Samba) to use \040 in place of the space character in the server/share name.

It still doesn't work...
 
Old 04-11-2007, 09:09 AM   #3
marklawford
LQ Newbie
 
Registered: Mar 2005
Location: Eastbourne, UK
Posts: 4

Original Poster
Rep: Reputation: 0
The answer's always just around the corner...

//192.168.2.7/DISK\0401 /mnt/starone cifs guest 0 0

The guest bit is important.

Now, when I boot up and log in as any of my user accounts (I've created a few for the family) the drive is mounted and available.

Great stuff.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
entry into /etc/fstab wetnose23 Slackware 2 01-07-2006 04:30 PM
what is wrong with this /etc/fstab entry? d1l2w3 Linux - Hardware 10 01-31-2005 11:15 PM
/etc/fstab entry ryedunn Linux - Newbie 1 01-17-2005 01:45 AM
FC2 FSTAB Entry jeopardyracing Linux - Newbie 2 07-10-2004 09:53 AM
fstab entry albean Linux - Newbie 1 12-04-2002 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration