[SOLVED] Need help linking user folders to ntfs folder
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not sure if this i the right forum, please let me know if I need to post elsewhere.
First, here are my system specs:
HP DV 2808
250 gig SATA drive
4 gig DDR
Nvidia 7150 mobile
Windows 7
Fedora 12
I have my HP DV2000 laptop configured to dual boot Win 7 and Fedora. What I would like to do is mount the Windows folders, (Documents, Music, etc.) automatically in my Fedora home folders.
I have done/tried the following:
1: identified my partitions:
[root@phoenix]# fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090
Device Boot Start End Blocks Id System
/dev/sda1 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 6375 51097600 7 HPFS/NTFS
/dev/sda3 6375 26644 162816000 7 HPFS/NTFS
/dev/sda4 26645 30401 30178102+ 5 Extended
/dev/sda5 * 26645 26670 204800 83 Linux
/dev/sda6 26670 30401 29972479+ 8e Linux LVM
The "file" _do_ exists. This second command has exactly the same result of the first one, it wants to create a "/home/bill/Documents" soft-link to "/home/bill/D/Libraries/Documents". But because you've already created that "/home/bill/Documents" symlink, the second command fails with "File exists" error
mount --bind /media/d/Libraries/Documents /home/bill/Documents
This work perfectly!
Now my problem is I am trying to make the mount permanent, I have tried to do so with;
mount --make-unbindable /media/d/Libraries/Documents /home/bill/Documents
However, this is what I get as my output;
[root@phoenix ~]# mount --make-unbindable /media/d/Libraries/Documents /home/bill/Documents
mount: wrong fs type, bad option, bad superblock on /media/d/Libraries/Documents,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
So I tried to make a startup script with the following;
#!/bin/bash
# chkconfig: 345 91 19
# description: mount NTFS on startup
case $1 in
*)
echo “Mounting Windows 7 NTFS Filesystem to /media/d”
mount --bind /media/d/Libraries/Documents /home/bill/Documents
Found my problem with the script, forgot to save it as a .sh, changed it from mntntfs to mntntfs.sh, work fine now.
Did a temporary fix by using Configuration Editor > Apps > Nautilus > Desktop > Volumes Visible, however, I would just like the "D drive" icon not to show, if I mount other volumes, I would like them to show up on the desktop. Any suggestions?
zog
Last edited by zogthegreat; 03-29-2010 at 12:30 PM.
SOLVED: Need help linking user folders to ntfs folder
Ok, did some more googling on the problem and found the following:
"Showing volumes (which is what the windows manager, calls them) is an 'all-or-nothing' proposition. Any partition mounted in /media will be displayed if the setting is enabled. You can hide the hard drives by moving the mount point to /mnt or some other folder. Partitions not mounted in /media won't be shown on the Desktop by default. They also will not be shown in Nautilus' Places, you will have to make a shortcut for them."
Made a new mount point in /mnt, edited my /etc/fstab to reflect this change and then the same for the script. Everything working perfectly now!
Thanks again to Woodypecker for the advice.
zog
Last edited by zogthegreat; 03-29-2010 at 02:33 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.