LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-05-2010, 03:39 PM   #1
mackissack
LQ Newbie
 
Registered: Feb 2010
Location: Naucalpan, México
Distribution: Fedora
Posts: 15

Rep: Reputation: 0
Unhappy move /home to ntfs partition


So, this is the issue...

There was a Toshiba Satellite notebook with XP I decided to install
Fedora 13 in dual boot mode.
So, I booted with Gparted and shrunk the Windows XP partition to just 24 GB.
Then I set up partitions for Linux this way
/boot, ext4 256 MB
/, ext4 16 GB
/home, ntfs 176 GB
swap, 8 GB
I intentionally left about 8 GB left just in case

Then I proceeded to install Fedora 13.
I used the customized mode to use the already set up partitions and keep Windows XP.
At the moment of setting the mounting points, fine with /boot, / and swap. But Anaconda wouldn't accept mounting point for /home.
I went on anyway.

Fedora got set up and run smoothly.
However, /home resided in / with only 10 GB left.
And the /home partition could be seen as a separate disk with its 176 GB.
This is /etc/fstab:

#
# /etc/fstab
# Created by anaconda on Sun Sep 5 05:46:26 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=ec5da2b5-2253-4ead-ae9f-aeb99c3f4f53 / ext4 defaults 1 1
UUID=1840e453-6359-4f0e-807d-d3ef87977738 /boot ext4 defaults 1 2
UUID=22919f7a-cbb5-40ba-b88d-0b4ca0c51eb4 swap swap defaults 0 0
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


Now, my goal.
Send native Fedora /home currently in / to the /home ntfs partition so I can share both Windows XP My Documents files and my user files.
By the way, Windows recognizes that ntfs partition and called it E:\

Any suggestion? It will be joyfully appreciated.

Last edited by mackissack; 09-05-2010 at 03:43 PM. Reason: Change icon and add some info
 
Old 09-05-2010, 04:09 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why would you ever want to put your /home on a non-posix compliant filesystem?? that's a *really* bad idea. You can't set file ownerships correctly, permissions... it's really horrible. just have a separate location, e.g. /shared or /home/user/shared for that mountpoint.
 
Old 09-05-2010, 11:27 PM   #3
mackissack
LQ Newbie
 
Registered: Feb 2010
Location: Naucalpan, México
Distribution: Fedora
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
why would you ever want to put your /home on a non-posix compliant filesystem?? that's a *really* bad idea.
Didn't know that. Thank you.
1st, I made the /home partition to separate data from system so I can upgrade OS without affecting data.
2nd, what is another way of sharing the /home partition with Windows to have one same place for personal files?

I have been studying and read Windows doesn't recognize ext4 partitions.
But Fedora seems not to recognize ntfs partitions either.
So, how to solve it?
 
Old 09-06-2010, 02:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well the old school answer would be to use a fat32 partition, but fedora these days can read ntfs really quite well with the ntfs-3g driver (I think). I recently got a new laptop and in the process of nuking Win7 and installing FC13 the Fedora live CD picked up all the windows partitions just fine. So you can have a common area for data, but this should not just be /home completely. Fedora will create the ~/Documents, ~/Downloads stuff and they certainly can live wherever you want.
 
Old 09-06-2010, 02:57 AM   #5
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
What I used to do was have a windows section mounted within my home as ~/windows
which was where I dropped files between the two systems.

Code:
mkdir ~/windows
mount -t ntfs-3g /dev/windowsDrive /home/$user/windows
and then simply access it this way.
 
Old 09-15-2010, 06:35 AM   #6
xmarvelous
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
why would you ever want to put your /home on a non-posix compliant filesystem?? that's a *really* bad idea.
I don't think so. I'm using this setup for over 6 months now without any problems. If you are not completely paranoid about setting custom permissions for every single file in your home folder the NTFS-3G driver does a terrific job by now. absolutely suitable for a single user system.

I wrote a tutorial on how to set it up:
http://www.marvelous.at/?p=148
 
Old 09-15-2010, 11:11 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
If you don't have big security concerns sure it's possible. I'd try the reverse though, and use ext3 on Windows.

In any case, remember that ntfs3g allows file names containing characters that are not legal in at least some versions of Windows (like ':'), so if you use non-conventional file names and Windows fails to open some files you know what the problem is.

To do this you just have to copy the contents from the actual /home into your ntfs partition, then mount that partition at /home. Then just modify /etc/fstab so it is mounted automatically at boot time. You will have to read the ntfs3g man page(s) and make sure you set the right options, security will probably be an issue in one or another way.

Last edited by i92guboj; 09-15-2010 at 11:13 AM.
 
Old 09-16-2010, 02:38 AM   #8
xmarvelous
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
In any case, remember that ntfs3g allows file names containing characters that are not legal in at least some versions of Windows (like ':')
in recent NTFS-3G versions there is a mount option called 'windows_names' to deal with this issue.

http://www.tuxera.com/community/ntfs-3g-manual/
 
Old 09-16-2010, 02:40 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by xmarvelous View Post
in recent NTFS-3G versions there is a mount option called 'windows_names' to deal with this issue.

http://www.tuxera.com/community/ntfs-3g-manual/
Wonderful, if that really works I guess I can finally phase out my file name checker script. Thanks for the pointer.
 
Old 09-17-2010, 04:47 AM   #10
xmarvelous
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
I'd try the reverse though, and use ext3 on Windows.
NTFS-3G exceeds all Ext2 drivers for windows (Ext2fsd & Ext2IFS) by far in terms of stability and reliability. NTFS-3G even supports partially journaling. In my opinion ext2/3 on Windows is the risky way.
 
Old 09-18-2010, 11:58 AM   #11
mackissack
LQ Newbie
 
Registered: Feb 2010
Location: Naucalpan, México
Distribution: Fedora
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by xmarvelous View Post
I don't think so. I'm using this setup for over 6 months now without any problems.

I wrote a tutorial on how to set it up:
http://www.marvelous.at/?p=148
Thank you, xmarvelous.
That's what I was looking for.
I am studying your tutorial.

Now I am getting acquainted with these UUIDs and so.
I actually reinstalled the system asigning /boot, /, /var, /tmp, /usr and /home to their own partitions. Works OK.
This was the array:
/boot, 256 MB
/, 1 GB
/var, 12 GB
/tmp, 2 GB
/usr, 8GB
/home, ext4 rest of the disk
I did this to prove the mounting points.

Now I have to redesing the ext4 /home partition I created in this new installation and apply your suggestions.

Quote:
Originally Posted by xmarvelous View Post
If you are not completely paranoid about setting custom permissions for every single file in your home folder the NTFS-3G driver does a terrific job by now. absolutely suitable for a single user system.
What do you mean by that of custom permissions for every file?
 
Old 09-19-2010, 03:34 AM   #12
xmarvelous
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by mackissack View Post
What do you mean by that of custom permissions for every file?
I'm just saying that you can only set permissions for all files within the filesystem globally at mount time.

Usually you want to restrict permissions of certain files. For instance it would be a bad idea to let other users read your private keys in ~/.ssh. So maybe you want to set these files rwx------. Further that would mean that the rest of your home folder has the same permissions as well and is therefore not accessible by any other user.

You just have to think about that very carefully if your machine is accessed by multiple users.
 
  


Reply



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
Is it possible to redirect move /home to my NTFS / vfat XP-My Docs partition ? kcoriginal Linux - General 2 08-13-2008 11:49 PM
Can I move /home partition under root partition arijit_2404 Linux - General 3 07-05-2007 12:01 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:28 AM.

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