LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2007, 12:23 PM   #1
shreks
Member
 
Registered: Aug 2004
Posts: 79

Rep: Reputation: 15
Mount Issue in Gnome of FC7


I just installed FC7 a few days ago and am using Gnome as my desktop environment. One of my daily jobs is to back up my files from my hard drive to my USB portable drive. I use rsync to synchronize the data from ext3 hard drive partition to vfat portable drive partition. I use the following command to do the job:

rsync -v -t --modify-window=2 -r -u --delete -z "${SRC_DIR}" "${DEST_DIR}"

Everything was fine in FC6. But things were not going well in freshly installed FC7: some of my files were kept being backed up every time when I ran rsync command. I tracked down the problem by revealing the default mount options stored in /media/.hal-mtab, as shown here:

/dev/sdb1 501 0 vfat nosuid,nodev,uhelper=hal,shortname=lower,uid=501 /media/PHD

The culprit is the mount option "shortname=lower" which created lower-case directory names in vfat partition regardless of its original case in Linux ext3 partition. Therefore every time rsync deleted the lower-case directory in vfat, copied the source directory from ext3 to vfat, and then changed the case to lower ones. I checked out the manpage of mount and ran some tests, and found out that the mount option "shortname=winnt" does the right job: everything was kept exactly the same in vfat partition as those in ext3 one.

So my question is that where to put my customized mount option in FC7 system, so that every time when a removable device is plugged in, the correct mount option can be used automatically. It seems to have something to do with HAL but I have no idea where to store my mount options. Anyone could help me on this? Thanks a lot in advance!!!

BTW. I found a config file /etc/gconf/schemas/gnome-mount.schemas which contains something like:

<default>[shortname=lower,uid=]</default>

I changed "lower" to "winnt", but had no effects at all on mounting plugged drives.

Last edited by shreks; 06-05-2007 at 12:33 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fc7 noxious Fedora 8 01-20-2007 11:54 AM
DVD (auto)mount problem, gnome-mount, hal, Fedora C 5 lazarion Linux - Hardware 5 01-10-2007 05:45 AM
FC6 GNOME + Beryl + gnome-screensaver focus issue rhoekstra Fedora 3 01-09-2007 02:03 AM
Asus a6km laptop & GNOME mount issue ghaefb Linux - Laptop and Netbook 2 12-22-2006 04:13 PM
USB drive mount double mount issue pazzport Ubuntu 3 10-10-2005 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration