LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-02-2004, 04:51 PM   #1
Nice-n-Slow
LQ Newbie
 
Registered: May 2004
Posts: 24

Rep: Reputation: 15
FAT32 vs Reiserfs: Samba write issues


Greetings
I had two FAT32 formatted drives that I was writing to over the network. The drives were actually mounted by a Knoppix CD that was running off of one of the drives AKA the poor man's install. I was running this little file server in terminal mode with a little script that would change the hostname and setup the smb.conf on startup and to re-mount the drive in writeable mode. I had some troubles initially with the smb.conf file, but after playing with it a bit things worked well.
I was writing to those drives with samba from several different PCs with several different OSs but mostly Win98, Knoppix and DSL and not having any particular problems accessing either drive from samba shares.
So, things were fine but I eventually wanted to reformat the drives as resiserfs. I backed up everything on one of the drives and used fdisk and parted to format hdc as a reiserfs drive.
Unfortunately, now I can't write to the resiserfs drive from any remote share. Interestingly, I can still get to the second FAT32 drive (hda) just as I could before. And more intriguingly, I can copy files onto the reiserfs drive from the console, just not over shares.
Here's the line I'm using in my script to mount the drives writeable.

mount -o remount,rw,users,exec,suid,dev /mnt/hda1
mount -o remount,rw,users,exec,suid,dev /mnt/hdc1

Any ideas?
 
Old 10-02-2004, 06:34 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
post a cat /proc/mounts to see how they are mounted.
where have mounted the reiser? maybe you'll have to set this directory rw for users.

sl mritch.
 
Old 10-03-2004, 09:38 AM   #3
Nice-n-Slow
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
cat /proc/mount

tells me the drive is mounted read/write. The output is

//dev/hdc1 /mnt/hdc1 reiserfs rw 0,0

And like I said, I can write to it from the console. It's only the shares that don't allow writes, but my fat32 drive still accepts remote writes. This latter issue makes it particularly confusing because it's not a simple matter of no remote writes working, but only writes to the resiserfs drive.

Here's the line I'm using for the share on hdc1

[hdc1]
path = /mnt/hdc1
public = yes
guest ok = yes
read only = no

I've got pretty much no security on this machine and it's not connected to the Internet and it just acts as a temporary media holder. Like I say, it's just a knoppix CD running in text mode connected to two drives.
Other smb.conf details include user=share the workgroup is right, the default user is knoppix. And most importantly, it still works on the other drive.
 
Old 10-04-2004, 11:54 AM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
well, that's funny to me too. shouldn't make any difference if there's ext or reiserfs on the target. so i guess is something 'bout permissions and samba. check if permissions are the same on the two shares. what's about the double-slash (//) above - a typo? doublecheck configurations.
however, you can switch back to ext3 if there's no need for highest performance, ext3 will do a great job. (it's max. minus 3-8% anyway.)

sl mritch.
 
Old 10-05-2004, 10:17 AM   #5
Nice-n-Slow
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Another clue. This could be important.

I think I have a key clue here.
It makes me think I should have put this in a Knoppix forum instead of general software, but anyway --to continue.

Curiously, when I boot up, I get both hda1 and hdc1 in my /mnt directory. But while I can freely cd into /mnt/hda1, I get nothing on mnt/hdc1.
That is, I see nothing in /mnt/hdc1 until I mount it. Then I can see stuff that I copied into /mnt/hdc1 in the previous session.
So, I bet the problem is the way I'm mounting it. I'm just using

mount /dev/hdc1 /mnt /hdc1

That gives me a little message about reiserfs starting up and then I can read the directory. However, the write problem is still there.
I suspect that the way I'm initially mounting it is wrong. Is there a better suggestion? No doubt the man page is where I should be looking. But I thought I'd bring it back here and see if there are some tips before I play with it.
 
Old 10-05-2004, 01:40 PM   #6
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
to check this have a look in your /proc. if compiled in reiserfs will give you some statistics and information in some directory there.

mount /dev/hda1 /mnt/hda1 - should be sufficent. but i suggest to use the type (-t reiserfs) and maybe options (-o defaults) if you mount them thah way.
check your /etc/fstab , there should be something like this:

/dev/hda1 /mnt/hda1 reiserfs defaults 0 0

(btw. "notail" is commonly used speedup option.)
so a "mount /mnt/hda1" would do it also.

if you believe it's a prob with your knoppix(-kernel) check for infos on knoppix sites about strange reiser/samba behavior.

anyway check if your reiser libs are recent. and check if you have formatted your drives with reiser v4 or v3. v4 is quite new, but i can't say how stable it actually is. i use reiser v3 myself.

please check for the permission settings.

sl mritch.
 
Old 10-10-2004, 01:25 PM   #7
Nice-n-Slow
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Yes, you were right. Permissions.
I used chmod 755 /mnt/hdc1 and now it works fine.
 
  


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
Issues writing to Fat32 partition Samba Suse 10 usaf_sp SUSE / openSUSE 7 10-29-2005 02:17 PM
Accessing Reiserfs and FAT32 under Solaris 10. Basel Solaris / OpenSolaris 2 10-27-2005 11:51 AM
Write to NFS reiserfs? Euronymous Linux - Networking 1 10-24-2004 03:26 PM
Samba Share Write permission Issues Colossus610 Linux - Software 4 08-12-2004 05:20 PM
read/write remote access to fat32 via samba totococo Linux - General 2 11-06-2003 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:31 AM.

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