LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-30-2005, 12:38 AM   #1
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Rep: Reputation: 15
Samba, windows, and multiple drives.


I have a samba share defined in smb.conf that says "path = /home/hondaman/mount" Mount is a drive I added to to my linux box. I have this share mapped in windows, and windows displays the disk free properly of this drive. I now have another drive I added. Where or how do I mount it so that windows will display its disk free too?
 
Old 07-30-2005, 05:48 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Correct me if I am wrong, but you did suceed mounting a drive in linux and sharing it with samba and now you ask how to do for a second drive ?

well... mount the drive ( mount /dev/hdX /where/you/want/it) then add this mount point to your smb.conf ?
 
Old 07-30-2005, 08:23 PM   #3
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Half_Elf
Correct me if I am wrong, but you did suceed mounting a drive in linux and sharing it with samba and now you ask how to do for a second drive ?

well... mount the drive ( mount /dev/hdX /where/you/want/it) then add this mount point to your smb.conf ?
Yes, I was able to mount both drives and access them. What i'd like is for windows explorer to report the disk free of each drive.

I tried this in my smb.conf:

[homes]
comment = Home Directories
browseable = no
writable = yes
path = /home/hondaman/mount
path = /home/hondaman/mount1

but it only displayed the last "path", not both.
 
Old 07-31-2005, 12:26 AM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
a "mounted" drive is like a new "letter" in windoze. Of course, you can't just "merge" together 2 drive just writing 2 path lines. The fact that you see the last one is mostly a weird way of samba to handle a buggy syntax atmo.
There is way to "merge" together 2 drives, make some search about software raid or any ways to "mixt" together 2 drives.
 
Old 07-31-2005, 02:20 PM   #5
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Half_Elf
a "mounted" drive is like a new "letter" in windoze. Of course, you can't just "merge" together 2 drive just writing 2 path lines. The fact that you see the last one is mostly a weird way of samba to handle a buggy syntax atmo.
There is way to "merge" together 2 drives, make some search about software raid or any ways to "mixt" together 2 drives.
So there is no way to mount the drives under my home directory in linux, then in windows, click on those mounts and have windows display the disk free of that particular drive?
 
Old 08-01-2005, 12:00 AM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
as I said, make TWO mount then make TWO shares. ONE share can't show you 2 drives UNLESS you are using some application, like software raid to "merge" together mounted partition, making them appears as one big partition for the system.

It's like a windows letters... can you share TWO letters under ONE share?
 
Old 08-01-2005, 12:40 AM   #7
hondaman
Member
 
Registered: Feb 2004
Location: Dallas
Distribution: Fedora
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Half_Elf
as I said, make TWO mount then make TWO shares. ONE share can't show you 2 drives UNLESS you are using some application, like software raid to "merge" together mounted partition, making them appears as one big partition for the system.

It's like a windows letters... can you share TWO letters under ONE share?
Ok, makes sense. So how would I go about mapping to letters in windows to 2 shares in samba since I can only define one "path" in smb.conf
 
Old 08-01-2005, 06:45 AM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Quote:
since I can only define one "path" in smb.conf
Since when? You can only define one path PER SHARE. No share can own 2 path, it would be senseless.
Take a look at /etc/samba/smb.conf.example and "man smb.conf"
 
  


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
multiple drives cs-cam General 2 02-16-2005 05:46 AM
samba and windows hard drives citrus Linux - Newbie 0 01-05-2005 02:28 AM
Treat multiple drives as one Whitman Linux - Software 5 04-06-2004 05:21 PM
multiple hard drives bosewicht Linux - Hardware 4 11-22-2003 10:23 PM
samba and windows printer drives. deano Linux - Networking 4 10-16-2003 10:33 AM

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

All times are GMT -5. The time now is 12:29 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