 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

16th October 2008, 07:43 PM
|
 |
Registered User
|
|
Join Date: Jul 2007
Posts: 371

|
|
|
Mounting ntfs drives automatically at kde startup
Hi,
im using FC8 with KDE.
My ntfs drives are detected and all but i have to mount them manually by clicking on them each time i want to use them. In drive properties under mounting tab i have checked the option "mount automatically" but that doesn't mount the drives at kde startup. I have a feeling the option is buried somewhere but i just can't find it. So my question is how can i mount those drives automatically at startup.
|

16th October 2008, 11:47 PM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924

|
|
|
Add mount commands to /etc/fstab.
/dev/sdb1 /media/windows ntfs-3g defaults 0 0
Assuming that the Windows partition is /dev/sdb1 and your mount point is /media/windows. Change it to match the actual partition you want to mount and create the mount point, i.e., mkdir /media/windows or mkdir /media/mypix, etc.
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

17th October 2008, 09:52 AM
|
 |
Registered User
|
|
Join Date: Jul 2007
Posts: 371

|
|
When i modify fstab and add mount points i won't be able to access my ntfs partitions at all. I have my mp3 collection stored on ntfs partitions and it's quite annoying to mount them manually each time.
added some screens
|

17th October 2008, 10:05 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924

|
|
|
I 'm a Gnome user. Don't mess with KDE too much. Doing what I suggested works perfectly for me and I'd say it could be considered pretty standard practice. However, the example I provided is also fairly generic and can be expanded to be much more specific. If you search the forum you will come up with several examples for mounting NTFS partitions automatically at boot time. Also, man mount will provide a great amount of insight on using the command.
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

17th October 2008, 10:58 AM
|
 |
Registered User
|
|
Join Date: Jul 2007
Posts: 371

|
|
|
i think i need to configure autofs but not sure how
|

17th October 2008, 11:14 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924

|
|
I think you may be over complicating things. Let's assume that you want to permanently mount your Windows partition on the C drive, dev/sda1. All you need to do is make a mount point. You can name that mount point whatever you like. Let's call it winxp. Open a terminal and as root type mkdir /media/winxp. Mount point created. Now all we need to do is mount the partition. Again as root, type mount -t ntfs-3g /dev/sda1 /media/winxp. Partition mounted. Browse it with your favorite file manager. This mount will be good until you reboot or manually un-mount, umount /media/winxp.
To make it mount automatically when you boot your system you need to add a line to /etc/fstab. Using the assumed partition and mount point you would add this line to the bottom of the file,
Code:
/dev/sda1 /media/winxp ntfs-3g defaults 0 0
. Save the file. Done.
Additionally, if /dev/sda1 is not the partition you are targeting you can, in a terminal, type /sbin/fdisk -l which will display all partitions on all disks. Choose from what's listed and adjust the mount command accordingly.
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

17th October 2008, 11:15 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924

|
|
Quote:
Originally Posted by errorxp
When i modify fstab and add mount points i won't be able to access my ntfs partitions at all.
|
Why will you not be able to access the partitions?
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

17th October 2008, 11:36 AM
|
 |
Registered User
|
|
Join Date: Jul 2007
Posts: 371

|
|
I modified my etc/fstab
Code:
LABEL=/ / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda6 swap swap defaults 0 0
to look like this:
Code:
LABEL=/ / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda6 swap swap defaults 0 0
/dev/sda1 /media/XP ntfs-3g rw,defaults,umask=0000 0 0
/dev/sda5 /media/DOWNLOAD ntfs-3g rw,defaults,umask=0000 0 0
/dev/sdb1 /media/DATA ntfs-3g rw,defaults,umask=0000 0 0
After that i couldn't browse my ntfs partitions which are shown on the screenshot above (permission denied error smth) and my mount points where i actually mounted my partitions did not show any contents. Maybe if i uninstall the autofs thing it will work but then again i will have to mount my dvd-roms and etc?
Last edited by errorxp; 17th October 2008 at 11:40 AM.
|

17th October 2008, 11:52 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924

|
|
Replace defaults with users.
Code:
/dev/sda1 /media/XP ntfs-3g rw,users,umask=0000 0 0
/dev/sda5 /media/DOWNLOAD ntfs-3g rw,users,umask=0000 0 0
/dev/sdb1 /media/DATA ntfs-3g rw,users,umask=0000 0 0
If you un-mount a partition and remount it with mount /media/xp do you get any errors? Does the command dmesg | grep ntfs-3g or dmesg | grep mount show anthing that looks like an error?
Is SELinux enabled and denying mount by regular user?
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

17th October 2008, 12:13 PM
|
 |
Registered User
|
|
Join Date: Jul 2007
Posts: 371

|
|
ok with the updated fstab still nothing happens. while booting it shows some kind of error about not being able to mount ntfs drives
Code:
[root@localhost Priit]# dmesg | grep ntfs-3g
[root@localhost Priit]# dmesg | grep mount
EXT3-fs: mounted filesystem with ordered data mode.
nothing happens though i can't see my partitions.
also selinux is disabled.
it's driving me crazy
|

17th October 2008, 12:15 PM
|
 |
Registered User
|
|
Join Date: Nov 2005
Location: Brazil - Rio de Janeiro
Age: 33
Posts: 18

|
|
Have you tried ntfs-config tool?
Code:
# yum install ntfs-config
__________________
"In a world without walls and fences, who needs windows and gates?!"
|

17th October 2008, 08:59 PM
|
 |
Registered User
|
|
Join Date: Jul 2007
Posts: 371

|
|
Quote:
Originally Posted by LonelySpooky
Have you tried ntfs-config tool?
Code:
# yum install ntfs-config
|
 that did the trick, i don't know why but it did. i just enabled write support.
anyway thanks guys
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 23:00 (Saturday, 18-05-2013)
|
|
 |
 |
 |
 |
|
|