Re: HowTo: Automount NTFS Drives
Quote:
Originally Posted by
Joeb454
I've found that if the directory already exists, ntfs-config doesn't play nice, for example I manually mounted my windows partition to /media/Vista, THEN installed ntfs-config.
Turns out I had to remove the /media/Vista directory before it could continue.
Naturally, the directory name will be different for everybody I would assume :)
Ah that might explain why when I run ntfs-config and enter the password, it just closes instantly. I already have a NTFS drive that mounts at /media/Storage (though not automatically!).
I'm a noob though and don't know how to "remove the directory" without breaking something. Any advice?
Thanks
Re: HowTo: Automount NTFS Drives
It depends how you manually mounted it. If you haven't edited /etc/fstab then you should just be able to run
Code:
sudo rmdir /media/Storage
while the drive isn't mounted.
Re: HowTo: Automount NTFS Drives
i'll try it first.. thanks
Re: HowTo: Automount NTFS Drives
Hello Joeb454,
I have 64bit Ubuntu 10.10
I followed your advice however the NTFS-Config "enable write support for internal device" is greyed out and not enabled.
sudo fdisk -l
returns the following:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b77a2
Device Boot Start End Blocks Id System
/dev/sda1 * 1 498 3998720 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 499 2988 19998721 5 Extended
/dev/sda3 2988 60802 464387072 b W95 FAT32
/dev/sda5 499 2988 19998720 83 Linux
It is /dev/sda3 is the device I wish to automount.
Your help is appreciated,
Regards.
Re: HowTo: Automount NTFS Drives
Quote:
I followed your advice however the NTFS-Config "enable write support for internal device" is greyed out and not enabled.
That's the thing I find most spooky about ntfs-config. It asks you if you want to enable write support for ntfs. Ntfs has had write support by default for about 3 years now so I'm not sure what its doing if you select "yes".
Anyway in your particular case you have no ntfs partitions so it doesn't matter if it's grayed out.
The following procedure is just an example:
Make a permanent home for your partition:
Code:
sudo mkdir /media/Data
Edit fstab as root:
Code:
gksu gedit /etc/fstab
Add the following line at the end of fstab:
Code:
/dev/sda3 /media/Data vfat utf8,umask=007,uid=1000,gid=46 0 1
Save fstab and back in the terminal run the following command to test for errors and mount the new partition:
Re: HowTo: Automount NTFS Drives
Joeb454, a thousand apologies. It's early here ( that's my excuse anyway ) and I had no idea I was posting in a HowTo. I consider that quite rude and I wouldn't have done it if I wasn't so feeble minded. Feel free to remove it.
Re: HowTo: Automount NTFS Drives
No apologies needed - it was a helpful post, and I have nothing against people helping out if they know the answer :)
Re: HowTo: Automount NTFS Drives
thank you very much for this HowTo....exactly what I was looking for.
Edit: this still does exactly what I wanted but it has one slight bug with network shared folders after mounting.
The bug is fairly easy to solve though so not to worry.
I originally manually mounted these drives and then shared some folders through Samba. This worked just fine and even after unmounting and remounting the shared folders continue to work just fine over the network. However, once I installed ntfs-config the folders were no longer seen over the network as permissions/ownership had been altered. So here is what I did to fix that.
1. Press Alt+F2 (run dialog) or open a terminal
2. Run the following:
Code:
gksu gedit /etc/samba/smb.conf
3. Enter your root password. gedit will need root access to edit this file.
4. Add the below line to the [global] section of Global Settings.
Code:
usershare owner only = false
3. Save and exit.
http://visuex.com/images/share/smb-c...fig-fix-th.png
Hope this helps anyone else who runs into this issue.
Re: HowTo: Automount NTFS Drives
Quote:
Originally Posted by
RottNKorpse
thank you very much for this HowTo....exactly what I was looking for.
Edit: this still does exactly what I wanted but it has one slight bug with network shared folders after mounting.
The bug is fairly easy to solve though so not to worry.
I originally manually mounted these drives and then shared some folders through Samba. This worked just fine and even after unmounting and remounting the shared folders continue to work just fine over the network. However, once I installed ntfs-config the folders were no longer seen over the network as permissions/ownership had been altered. So here is what I did to fix that.
1. Press Alt+F2 (run dialog) or open a terminal
2. Run the following:
Code:
gksu gedit /etc/samba/smb.conf
3. Enter your root password. gedit will need root access to edit this file.
4. Add the below line to the [global] section of Global Settings.
Code:
usershare owner only = false
3. Save and exit.
http://visuex.com/images/share/smb-c...fig-fix-th.png
Hope this helps anyone else who runs into this issue.
Sweet Fix. But how do you enable read/write & remove passwords.
Re: HowTo: Automount NTFS Drives
Quote:
Originally Posted by
XBMC old School
Sweet Fix. But how do you enable read/write & remove passwords.
I am not exactly sure what issues you are having as I would need much more detail but what I think your issue is that you need to make your SambaShare saved the login password when you connect to it. Be sure to click "Remember forever":
http://visuex.com/images/share/smb-s...ember-pass.png
As for the write permissions...you will need to add write permissions in NTFS-Config:
http://visuex.com/images/share/smb-n...g-settings.png
You also need to make sure that Write access is activated for the SambaShare from the original sharing computer:
http://visuex.com/images/share/smb-my-music-samba.png
Hope this helps...