Linux - GeneralThis 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
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.
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
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.
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?
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.
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.
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.
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.
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.