PDA

View Full Version : [SOLVED] Just a simple question about SAMBA



Deniz343
July 5th, 2012, 07:46 PM
Can I change this in smb.conf
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
To

[share]
comment = Ubuntu File Server Share
path = /dev/sdb2
browsable = yes
guest ok = yes
read only = no
create mask = 0755

Morbius1
July 5th, 2012, 07:58 PM
No.

/dev/sdb2 is a physical device. You can change the path to the directory it's mounted to though ( i.e., mount point ).

Deniz343
July 5th, 2012, 08:11 PM
No.

/dev/sdb2 is a physical device. You can change the path to the directory it's mounted to though ( i.e., mount point ).

How can I path this mount point to samba ?

Best Regards

alexlpratt
July 5th, 2012, 08:17 PM
This appears to be a pretty good guide for what you would like to do: Forum Thread (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-create-new-mount-point-in-linux-906731/)

Morbius1
July 5th, 2012, 08:24 PM
How can I path this mount point to samba ?

Best Regards
Your simple questions require much information:

[1] Is it currently mounted?

The output of this command will tell you if it is mounted and where it is mounted:

mount[2] If it's not mounted then more information is required: How is it formatted and what is it's UUID number:

sudo blkid -c /dev/nullAnd where would you like it to be mounted?

Deniz343
July 5th, 2012, 08:33 PM
fukawi1 ~ # sudo mkdir /media/usb_hdd
and then mount the filesystem to the mount point, using:
Code:
fukawi1 ~ # sudo mount /dev/sdc /media/usb_hdd
This is simple but is this command start on start up.

Deniz343
July 5th, 2012, 09:02 PM
Your simple questions require much information:

[1] Is it currently mounted?

The output of this command will tell you if it is mounted and where it is mounted:

mount[2] If it's not mounted then more information is required: How is it formatted and what is it's UUID number:

sudo blkid -c /dev/nullAnd where would you like it to be mounted?

1) Yes my disk is mounted. And I run the command and I see this /dev/sdb2 on /media/sdb2 should I need to path this
/media/sdb2

Morbius1
July 5th, 2012, 09:42 PM
You asked 2 questions in the last 2 posts:

[1] your current mount point is /media/sdb2 so your smb.conf share should look like this:

[share]
comment = Ubuntu File Server Share
path = /media/sdb2
browsable = yes
guest ok = yes
read only = no
create mask = 0755 [2] But the remaining question is how did it mount to /media/sdb2?

If there is an entry for sdb2 in /etc/fstab then it will always mount to that location.

If it isn't in fstab then it will not. So post the output of the following commands:

cat /etc/fstab
sudo blkid -c /dev/null
And we will have enough information to put it there.

Deniz343
July 6th, 2012, 09:53 AM
You asked 2 questions in the last 2 posts:

[1] your current mount point is /media/sdb2 so your smb.conf share should look like this:
[2] But the remaining question is how did it mount to /media/sdb2?

If there is an entry for sdb2 in /etc/fstab then it will always mount to that location.

If it isn't in fstab then it will not. So post the output of the following commands:

cat /etc/fstab
sudo blkid -c /dev/null
And we will have enough information to put it there.

I'm using pySDM to mount my disk every startup automaticly.
And look out this screenshot from pySDM
220749