LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-13-2008, 08:48 PM   #1
kcoriginal
LQ Newbie
 
Registered: Oct 2007
Location: US -First Baltimore, then MD Sticks, then NC then Cali now San Antonio.
Distribution: ubuntu 8.04 and Centos 5.2
Posts: 29
Blog Entries: 4

Rep: Reputation: 15
Is it possible to redirect move /home to my NTFS / vfat XP-My Docs partition ?


Is it possible to redirect move /home to my NTFS / vfat XP-My Docs partition that I have used for ages?

RELIABLY?

I've made several attempts, but they aren't doing what I need...

(also posted this to my local LUG - SATLUG.org) :



"Can it be done? I've sepnt a few odd hours last coupla days trying to get it. Using ubuntu 8.04.1

I dual-boot XP and ubuntu. In XP I have used two partitions for YEARS. One for OS and one for redirecting My Documents to. Tried putting folder called "home" in the root of that partition. Folder called "kc" in that. Put all /home/kc/.system.files and all in the "kc" folder... and then put my Windows My Documents folder in with them as well in a folder I usually call docs. Told XP where to find "docs" in its new location, said "Hi" to all the .-files... they looked cozy enough in there...

I want to be able to be one or two clicks away from the same documents in either OS. But ALSO, as I use ubuntu/.Linux more and more... (prolly at 75% ubuntu for now but I won't ever stop dual-booting due to employment-reasons/flexibility... either way,) I wanna keep-keeping my My Documents on a separate partition but still keep my .configuration files from Linux in a safe spot, too. I was hoping to keep them both in the same safe spot.

As it stands thus far, my attempts at

sudo mount /dev/sda2 /home

and

sudo mount /dev/sda2 /docs
ln -s /docs /home

neither of them works.
Gnome tells me it cant find the /home/kc dir when it boots.
I can CTRL-ALT-Fx to get to the command-line and manually delete the /home-empty link or remount the /docs partition and I can get it to work... but not be persistent past a reboot.

Tried putting the mount in fstab, but I found some gibberish guid references in there telling me even fstab has gone "complicated" now... sheesh!

Tried some permissions-tweaking, too... but I burned out for the time-being and thought I would ask the Collective... ;-)


thx in advance for your help and ideas...

kc"
 
Old 08-13-2008, 11:03 PM   #2
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 32
Mounting a partition as home is usually done though your /etc/fstab file. Here is mine:
Code:
crashedagain@Desktop:~$ cat /etc/fstab

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda3       /               ext3    defaults,errors=remount-ro 0       1

/dev/hda4 /home ext3 auto,users,exec 0 0
#/dev/hda4 /media/hda4 ext3 auto,users,exec 0 0


/dev/hda6       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sda        /media/usb0     auto    rw,user,noauto  0       0

/dev/dvd /dvd  iso9660  defaults,ro,user,noexec,noauto  0  0

/dev/hda1 /media/hda1 auto auto,users,exec,umask=000,ro 0 0
/dev/hda5 /media/hda5 ext3 auto,users,exec 0 0
/dev/hdb7 /media/hdb7 ext3 auto,users,exec 0 0
/dev/hdb8 /media/hdb8 ext3 auto,users,exec 0 0

crashedagain@Desktop:~$
The operating system (Debian) is on hda3 and the original /home folder created at installation time on hda3 remains intact but the line
Code:
/dev/hda4 /home ext3 auto,users,exec 0 0
mounts the partition hda4 as /home instead. If for some reason I want to access the original /home folder, I have to edit the fstab file to use the next line instead which mounts hda4 as /media/hda4 instead of /home. The system then reverts to using the original /home folder. There is no other way to access this folder.

However, your /home partition must contain a lot of the config files for your linux system. I think it would be safer for these to be on a Linux only partition.... either in the existing /home folder or as a separate partition. For easy access to your shared XP "My Documents" partition, just create a symlink called DOCUMENTS in your /home partition or on your desktop (or both). In my case this would be
Code:
ln -s /media/hda1/MY\ DOCUMENTS /home/DOCUMENTS
. Note the odd syntax to handle the blank in the "MY DOCUMENTS" filename. Easiest way to get this right is to
Code:
ls /media/hda1/MY<tab>
then let the system finish the syntax for you.

Last edited by CrashedAgain; 08-13-2008 at 11:06 PM. Reason: typo
 
Old 08-13-2008, 11:49 PM   #3
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
kc sits on the partition that is currently your home partition. So if you use a different partition, there won't by any kc there. You'll have to copy kc to the NTFS partition first. But IMHO it's a very bad idea. NTFS does not have the permissions system that linux uses. Apart from any impracticalities, it would basically be compromising your system's security. I think it is much better to create an NTFS folder in your home directory and mount your partition there.

Last edited by jay73; 08-14-2008 at 06:28 AM.
 
  


Reply

Tags
home, move, ntfs, vfat


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I move /home partition under root partition arijit_2404 Linux - General 3 07-05-2007 12:01 AM
Home directory on a vfat partition siepmann Linux - Software 8 01-12-2006 02:09 PM
How do i move /home to a new partition? glenn69 Linux - General 8 06-25-2004 11:38 AM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration