Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th October 2008, 07:43 PM
errorxp's Avatar
errorxp Offline
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.
Reply With Quote
  #2  
Old 16th October 2008, 11:47 PM
glennzo's Avatar
glennzo Online
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
Reply With Quote
  #3  
Old 17th October 2008, 09:52 AM
errorxp's Avatar
errorxp Offline
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


Reply With Quote
  #4  
Old 17th October 2008, 10:05 AM
glennzo's Avatar
glennzo Online
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
Reply With Quote
  #5  
Old 17th October 2008, 10:58 AM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
i think i need to configure autofs but not sure how
Reply With Quote
  #6  
Old 17th October 2008, 11:14 AM
glennzo's Avatar
glennzo Online
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
Reply With Quote
  #7  
Old 17th October 2008, 11:15 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924
Quote:
Originally Posted by errorxp View Post
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
Reply With Quote
  #8  
Old 17th October 2008, 11:36 AM
errorxp's Avatar
errorxp Offline
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.
Reply With Quote
  #9  
Old 17th October 2008, 11:52 AM
glennzo's Avatar
glennzo Online
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
Reply With Quote
  #10  
Old 17th October 2008, 12:13 PM
errorxp's Avatar
errorxp Offline
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
Reply With Quote
  #11  
Old 17th October 2008, 12:15 PM
LonelySpooky's Avatar
LonelySpooky Offline
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?!"
Reply With Quote
  #12  
Old 17th October 2008, 08:59 PM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
Quote:
Originally Posted by LonelySpooky View Post
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
Reply With Quote
Reply

Tags
automatically, drives, kde, mounting, ntfs, startup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Automatically Mounting USB Drives Scyythe Using Fedora 21 9th May 2009 05:04 AM
mounting NTFS drives madpro Installation and Live Media 3 10th April 2009 02:49 PM
How to stop automatically mounting NTFS partitions? Murrquan Using Fedora 10 20th June 2008 07:57 PM
mounting windows NTFS drives? BrasssMunkye Using Fedora 19 8th June 2007 04:15 AM
Mounting NTFS drives lazerid Using Fedora 17 8th March 2007 07:51 PM


Current GMT-time: 23:00 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat