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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-02-2004, 04:51 PM
|
#1
|
LQ Newbie
Registered: May 2004
Posts: 24
Rep:
|
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?
|
|
|
10-02-2004, 06:34 PM
|
#2
|
Member
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667
Rep:
|
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.
|
|
|
10-03-2004, 09:38 AM
|
#3
|
LQ Newbie
Registered: May 2004
Posts: 24
Original Poster
Rep:
|
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.
|
|
|
10-04-2004, 11:54 AM
|
#4
|
Member
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667
Rep:
|
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.
|
|
|
10-05-2004, 10:17 AM
|
#5
|
LQ Newbie
Registered: May 2004
Posts: 24
Original Poster
Rep:
|
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.
|
|
|
10-05-2004, 01:40 PM
|
#6
|
Member
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667
Rep:
|
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.
|
|
|
10-10-2004, 01:25 PM
|
#7
|
LQ Newbie
Registered: May 2004
Posts: 24
Original Poster
Rep:
|
Yes, you were right. Permissions.
I used chmod 755 /mnt/hdc1 and now it works fine.
|
|
|
All times are GMT -5. The time now is 02:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|