Results 1 to 8 of 8
hello everyone,
can anyone tell me the command to permanent mount aa windows directory into linux for using samba....
- 03-30-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 1
permanent mounting of windows directory into linux
hello everyone,
can anyone tell me the command to permanent mount aa windows directory into linux for using samba.
- 03-30-2010 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
In this case it's not a command, it's an entry in /etc/fstab. The details of the entry are specific to the partition and filesystem type. Your best bet would be to read up on fstab (either man fstab or googling) or to post more details of your case here. Whatever you do, make sure you backup /etc/fstab first!
- 03-30-2010 #3
what should i add in /etc/fstab to mount my drive automatically.
I've a drive with NTFS partitioning
let that be /dev/sda0'
what should i add?
- 03-30-2010 #4Let say /dev/sda1 is NTFS Partition. Create a mount point ( folder ) for it, /media/sda1 and add this code in /etc/fstab
Originally Posted by ultimatelinux
Code:/dev/sda1 /media/sda1 ntfs-3g defaults,umask=0 0 0
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 04-01-2010 #5Hi! I would like to also take this opportunity to ask something personally since this might also bring further clarifications to the original poster's concern.../dev/sda1 /media/sda1 ntfs-3g defaults,umask=0 0 0
/dev/sda1 Object to mount
/media/sda1 Destination of mount
ntfs-3g To be able to read NTFS
defaults,umask=0 0 0 Is this always the case or would this vary? I mean would these values be the same everytime I add a partition so it mounts automatically?
ex.
/dev/sda3 /media/Storage Bin Ext 3 defaults,umask=0 0 0
Assuming I'm trying to mount a Linux Partition
Thank you!nujinini
Linux User #489667
- 04-01-2010 #6Just Joined!
- Join Date
- Nov 2006
- Location
- INDIA, New Delhi
- Posts
- 27
Yes that's depend on your or your organization user's requirement say if you take the example of Devil Casper he mentioned below line for mounting ntfs filesystem partition in linux server
In above Quote word umask=0 means allows any permissions. This does not actually set permissions just allows permissions to be set of files in this filesystem. Generally I have seen this umask parameter added with windows partitions like NTFS as in Devil's example. But in ext3 or ext 2 scenarion you don't need to add umask you can simply add the below line as per your scenario/dev/sda1 /media/sda1 ntfs-3g defaults,umask=0 0 0
/dev/sda3 /media/Storage_Bin ext 3 defaults 0 0
And if you want to set the permision in ext3 filesystem either you can use chmod command or you can use setfacl and also have to put acl word in /etc/fstab in the place of umask word as shown above.
For more information how to manage filesystem and mounting foreign filesystems I recommend you to refer man pages of your distro. or you may also refer your disto. guide which should available on it's offical website.
- 04-02-2010 #7
Filesystem permissions are different in NTFS and Linux based filesystems like ext3 or ext4.
umask=0 set permission for every user in NTFS but it doesn't work for Linux based filesystems. You have to manage ownership and groups for that.
For ext3 partition :
Only root user will have write permission in /media/sda1 but if you wan't to allow access to other users too, either change ownership of /media/sda1 or manage group.Code:/dev/sda1 /media/sda1 ext3 defaults 0 0
Code:chown -R /media/sda1 user_id:group_id
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 04-02-2010 #8


Reply With Quote
