LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2009, 04:37 PM   #1
Krajisnik
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Rep: Reputation: 1
mount: cannot mount block device ... read-only


Hi,

I'm trying to mount a share on my fileserver to an other server
For both servers i use CentOS 5.3

On the fileserver samba is enabled, with the following in smb.conf:
Code:
[fileserver]
comment = fileserver
path = /fileserver
public = no
writable = yes
Now, when i try to mount the share to my other server, i get an read-only error:
Code:
[root@margomsrv02 mnt]# mount -t cifs //ip.address/fileserver /mnt/fileserver -o username=my.user,password=my.passwd
mount: block device //ip.address/fileserver is write-protected, mounting read-only
mount: cannot mount block device //ip.address/fileserver read-only
on both servers the folders are chmod 777

the strange thing is, it worked a few days ago, but then i restored my VMWare image to the beginning (new installation) and now i keep getting this error

i have seen that a lot of people have this kind a problem, but have never seen an solution, and its making me crazy...

anyone that can tell me what the problem may be?
 
Old 06-30-2009, 12:53 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

Do you have anything in your samba log on the file server
Also, can you try by adding permission for the smb user in the share folder

[fileserver]
comment = fileserver
path = /fileserver
public = no
writable = yes
valid users =my.user
 
Old 06-30-2009, 05:25 AM   #3
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
Just out of curiosity, why would you be using SMB for 2 linux boxes? NFS will work better and permissions are more stable. That's my pennies worth anyway.
 
Old 06-30-2009, 04:44 PM   #4
Krajisnik
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by masand View Post
hi there

Do you have anything in your samba log on the file server
Also, can you try by adding permission for the smb user in the share folder

[fileserver]
comment = fileserver
path = /fileserver
public = no
writable = yes
valid users =my.user
i have tried that, but nope, still the same error

Quote:
Just out of curiosity, why would you be using SMB for 2 linux boxes? NFS will work better and permissions are more stable. That's my pennies worth anyway.
well, SMB is the only way i know how to mount (i'm still new to linux..)
 
Old 07-15-2009, 03:33 AM   #5
Krajisnik
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by arckane View Post
Just out of curiosity, why would you be using SMB for 2 linux boxes? NFS will work better and permissions are more stable. That's my pennies worth anyway.
Thnx for you answer, i figured out how NFS works and i got i up and running.
Thnx alot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount: block device is write-protected, mounting read-only xpucto Linux - Server 10 02-01-2017 03:16 AM
mount: /dev/OldSys is not a block device bic Linux - Hardware 1 07-14-2008 10:32 AM
mount: /usr2 is not a block device maitrebart Linux - General 3 10-27-2007 02:02 PM
mount partition from copied block device cs-cam Linux - General 0 09-23-2006 08:41 PM
mount USB2: no valid block device crackinggear Linux - Hardware 4 01-03-2006 10:32 AM


All times are GMT -5. The time now is 12:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration