MEPIS This forum is for the discussion of MEPIS Linux. |
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.
|
|
04-13-2008, 06:37 PM
|
#1
|
Member
Registered: Oct 2007
Location: FL, US
Distribution: Ubuntu MintLinux, ChromeOS, Parted Magic, PCOS OpenWorkstation, OpenSuse-11
Posts: 139
Rep:
|
Can you Mount SMB Shares to your /mnt directory??
I have SimplyMepis and wanted to know when you mount your smb shares, can you mount them somehow in your /mnt directory. Is it imilar to mounting an .iso file like (mount -o loop /mnt/hda6/SomeFile.iso /mnt/isos). The reason I wanted to mount the smb share is because I wanted to run a command like the following to see what directories over the network PCs I have (du -s -B 1024k /home/* | sort -n). Thanks.
|
|
|
04-13-2008, 08:56 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Yes. You need to create a mount point first, but the you can mount it on /mnt/remotehostname or whatever. If you already have something mounted on a subdirectory of /mnt/, such as /mnt/isos; then mounting over /mnt/ itself will hide any existing mounts.
Use the "cifs" filetype if possible instead of smbfs. Smbfs is obsolete.
You can also add an entry in /etc/fstab for each computer you want to mount. This can save you typing later. Also, consider creating a credentials file and using that in your /etc/fstab entry or mount command. That prevents the password from being world readable if you use password= in the /etc/fstab entry.
Please read the mount.cifs and mount manpages for more options. If you mount your home directory on another machine and use the cifs filesystem, then you can use the normal Linux permissions. Even the setfacl command will work as long as the target computers filesystem supports acls.
|
|
|
04-13-2008, 10:36 PM
|
#3
|
Member
Registered: Oct 2007
Location: FL, US
Distribution: Ubuntu MintLinux, ChromeOS, Parted Magic, PCOS OpenWorkstation, OpenSuse-11
Posts: 139
Original Poster
Rep:
|
Thanks. One more question though... How do you add a computer to your /etc/fstab file? Do you have a sample of how it should look? I understand the format of the entries like this one (/dev/hda6 /mnt/hda6 ext3 user,exec,rw,noauto 0 0), but don't know if I replace the /dev/hda6 with a computer name? I don't know what the format would be for this. Thanks again.
|
|
|
04-14-2008, 04:31 AM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
/etc/fstab entry example:
Code:
//hpmedia/jschiwal /home/jschiwal/hpmedia cifs defaults,users,uid=jschiwal,file_mode=0117,dir_mask=007,gid=jschiwal,cred=/home/jschiwal/.credentials 0 0
If the filesystem being shared can handle permissions and acls then the file_mode and dir_mask entries are ignored. The cred option is the location of the credentials file which looks like this:
Code:
username=jschiwal
password=XXXXXXXX
I used a hidden file just so it doesn't show up normally. It contains a password so make sure it isn't world readable.
See the "mount" and "mount.cifs" and "fstab" manpages for more info.
|
|
|
04-19-2008, 11:32 PM
|
#5
|
Member
Registered: Oct 2007
Location: FL, US
Distribution: Ubuntu MintLinux, ChromeOS, Parted Magic, PCOS OpenWorkstation, OpenSuse-11
Posts: 139
Original Poster
Rep:
|
Hey thanks again, i will give it a try.
|
|
|
04-21-2008, 05:34 AM
|
#6
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
This may be a time when "RT M" may not be so impolite : man fstab or, in Konqueror man:/fstab #fstab
-- either of these will display the man page as HTML, & w/ clickable links.
If there's anything in the man page that is confusing, please post back.
|
|
|
04-28-2008, 03:24 PM
|
#7
|
Member
Registered: Oct 2007
Location: FL, US
Distribution: Ubuntu MintLinux, ChromeOS, Parted Magic, PCOS OpenWorkstation, OpenSuse-11
Posts: 139
Original Poster
Rep:
|
Ummm what r u talking about ??
|
|
|
All times are GMT -5. The time now is 12:39 PM.
|
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
|
|