Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
having a shared storage space between linux and windows...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Sun Sep 23, 2012 12:11 pm    Post subject: having a shared storage space between linux and windows... Reply with quote

say, i want to have my linux set up (sometime in the future, i'm just installing this on my laptop right now, but its my desktops turn after that)

Lets say i want my linux installed with storage space shared with my 3tb storage disk on my windows, just making a new folder on that 3tb drive

needless to say the drive is NTFS. and i'll handle any defragments on windows with diskeeper. (altho storage partitions don't have the tendancy to get fragmented)

how do you suggest i do this?

my guess at how i would do this, and how i for now plan to do it is set it up as simply

having
Code:

sdb1 /home ntfs  defaults,noatime 0 2


in fstab sdb being my 3tb drive. and also setting ntfs support and ntfs write support in the kernel.

also might there be an issue with using such a huge drive on linux?

Is there any way to make windows able to access my linux hard drive partitions, on different filesystems like reiserfs and ext4?
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 12:37 pm    Post subject: Reply with quote

rabcor,

Close and what you suggest will work fine except the shared space will be read only.

You need to build FUSE (Fliesystem In Userspace) for youe kernel. (Do not emerge FUSE)
Then use ntfs3g, so you get read write access.

There will be s a few more quirks to mount, as NTFS and linux permissions don't map.

Don't use ntfs for your /home, all your applications will hate you because of the permissions mapping. Instead put it under /mnt somewhere, like /mnt/shareddata
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Sun Sep 23, 2012 12:48 pm    Post subject: Reply with quote

thanks, if thats the case.. then is there a way i could make it just a folder on my hard drive instead of the hard drive
(on windows that folder would be D:\Linux)
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3920
Location: Hamburg

PostPosted: Sun Sep 23, 2012 12:56 pm    Post subject: Reply with quote

FWIW these settings are fine for me
Code:
n22 ~ # grep ntf /etc/fstab
/dev/sdb4       /mnt/E                  ntfs-3g         auto,user,noatime,uid=<my linux user id>,gid=users,umask=0022,locale=en_US.utf8
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 1:13 pm    Post subject: Reply with quote

rabcor,

Whats wrong with D:\ in Windows ans /mnt/shared in linux to describe the same space ?
You could make a symlink (several if you wish) in linux that points to /mnt/shared/linux, which would be D:\linux in windows. You still have to mount the entire partition, even if you only want to use a subdirectory of it.

As toralf shows, the faked permissions apply to the entire partition.

There is a ext2 filesystem driver for windows too, so you can share ans ext2 filesystem. Other than it exists, I know very little about it, since I haven't used Windows at home for about 10 years.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Sun Sep 23, 2012 1:57 pm    Post subject: Reply with quote

i see, thank you guys. 10 years huh? i guess we have some differences, i'm slowly but surely switching from windows to linux. i hope in a few years i'll be able to fully switch, but there are only 2 things that keep me glued to windows, one of these is a very big part of why i even use computers...

1. Gaming
2. K-lite Media Codec Pack (Media Player Classic) for viewing videos (reason for this is that the best media player i found for linux was vlc, and from my experiences this media player classic is better in almost every way, in fact i'm using it right now while waiting for a reply to my other question on here)
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 2:20 pm    Post subject: Reply with quote

rabcor,

1) I use an APPLE ][ for gaming :)
You can continue to dual boot with GameloaderOS if you need to.

2) Make friends with mplayer. Its not as user friendy as vlc or xine but once you have it set up the way you like it, it justworks.
It used to have a GUI front end called gmplayer, which I never liked, maybe its still around.

What made me switch completely was that I used to use WindowsNT but one day I bought a motherboard with USB and a USB scanner. WindowsNT never did support USB. Until that time I used to dual boot with Red Hat.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Sep 23, 2012 2:20 pm    Post subject: Reply with quote

There's another option. Create a small partition with a filesystem that both Windows and Linux understand. ntfs3g through fuse is fine, but FAT is built in to the standard Linux kernel and is thus a lot easier.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3920
Location: Hamburg

PostPosted: Sun Sep 23, 2012 2:28 pm    Post subject: Reply with quote

John R. Graham wrote:
There's another option. Create a small partition with a filesystem that both Windows and Linux understand. ntfs3g through fuse is fine, but FAT is built in to the standard Linux kernel and is thus a lot easier.

- John
FAT might foolish you with files > 2 GB, isn't it ?
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Sun Sep 23, 2012 2:40 pm    Post subject: Reply with quote

yes, fat sometimes just says no to files larger than 2gb. which makes it highly insufficient as a storage-device filesystem.

might work as a filesystem for the linux system since after all linux doesn't have any huge files nor most of its programs, but ext2-3 and 4 are just better i think...
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Sep 23, 2012 3:14 pm    Post subject: Reply with quote

I was suggesting it as a small space to share files between Windows and Linux, not the normal filesystem for either one. :wink: No, FAT isn't appropriate for a normal Linux filesystem: as NeddySeagoon mentioned, the permissions don't map, which is even more true of FAT.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Sep 23, 2012 4:16 pm    Post subject: Reply with quote

Use UDF unless you have a pressing need to use FAT (XP or older compatibility).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum