Nov 22, 2009

Linux And Windows Partitions - Sharing files back and forth

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Operating Systems > Linux

Linux And Windows Partitions - Sharing files back and forth

FirefoxRocks
Introduction

Ok so many of you that use Linux, you probably have Windows installed also, probably on another partition (an exception is using Wubi).
There is a problem that exists with Linux having read-only access to NTFS partitions. A solution to this is to install NTFS-3G or a similar package/application, but this only solves half of the problem.

The other half of the problem is Windows not being able to read an ext2/ext3 partition. If you check your partitions in Disk Management, Windows has absolutely zero support for ext3/ext2/linux-swap partitions, display the message Healthy (Unknown Partition). Again, a utility is available for Windows to have read/write access to ext2/ext3 partitions, called EXT3 IFS. From my experience, there are a few problems in this such as blue screen errors, system crashes and the speed is a bit slower, but not notably slower.

My Recommended Solution

Instead of having to do this, we can try partitioning the hard disk as shown in the table below. This is an example of using a 160 GB (more accurately, 149 GB) hard drive.
QUOTE
Partition# -- Filesystem -- Capacity -- Free Space
prt1 -- ntfs -- 26.00 GB -- 17.39 GB
prt2 -- fat32 -- 94.95 GB -- 86 GB
prt3 -- linux-swap -- 973 MB -- unknown
prt4 -- ext3 -- 27.06 GB -- unknown

As you can probably guess, the FAT32 partition is used to store documents and settings, music, webpages, pictures, movies and other data.
Before you begin/notes
To use this partitioning system, you must meet either of the following requirements:
- The biggest partition should be the first partition of the disk
- You do not have any extended partitions (see note below)

I will not be able to help much if you have an extended partition, but it shouldn't be too hard to figure out. The reason for not having an extended partition is because 4 partitions (Windows, data, swap and Linux) can fit nicely on the disk as primary partitions. But if you have more than 1 Linux distribution installed (such as Ubuntu and SuSE for example), it would be necessary for extended partitions to be developed.

Windows should be your hda1 or sda1, or the "first" partition (if you installed Windows first, it should be like this). This is because if it isn't, the drive letter for the Windows installation would not be C:, and although this is not a huge problem, it can cause backwards-compatibility issues. If you have already set up other partitions, use a utility to hide them (Super FDISK, Parted, etc) to try and install Windows onto a partition that is drive C:. Some developers do not use %SystemDrive%, or %ProgramFiles% (see this for more information) when developing their programs/installers, they put in C:\ or C:\Program Files instead. If you are willing to verify the installation path of each program and change it, then you can use whatever drive letter you want.

ALWAYS, ALWAYS, ALWAYS make a backup BEFORE working with partition utilities!! There is ALWAYS a risk of data loss!!

Partitioning and installation of operating systems

If you already have the partitions setup like this, skip to the part below labelled Remapping Documents and Settings.

If you have the time to make a complete backup, wipe out your entire disk and start over, it would be a good idea to avoid complications. However, if you do not have the time to do that, resize them.

Resizing partitions:

Boot into a Linux Live CD and open GParted/GNOME Partition Editor or whatever it is called. This is using the Ubuntu Live CD, yours may vary. Make sure all partitions on the hard disk is unmounted. Resize the Windows (NTFS) partition to a smaller size, minimum should be 12 GB, for the virtual memory and programs. The space beside the Windows partition should be the FAT32 partition. Ensure that your Linux partition is also resized to a smaller size, approximately the size of the Windows partition, but it can be smaller. Personally, I don't even know what I am apt-getting so I need to have some extra space there.

Make the FAT32 partition between the Windows and ext3/swap partition (should be a big space). Format it as FAT32 if you haven't, and exit out of the live CD.

Installing Windows:

Install Windows into the NTFS partition if necessary. It should be the same as installation Windows any time. The only thing you need to follow is when setting up user accounts, you should either set up only 1, or only log onto 1 until you read the Remapping Documents and Settings section. Trust me.

Installing Linux:

Umm...you should know how to do this. I'm not really an expert in this area, but the Ubuntu installer is easy enough.

Remapping Documents and Settings

If you installed Windows and set up multiple user accounts, just log onto 1 right now and do not log onto other ones until you have finished this section.

As you know, all settings and stuff in Windows is stored in a folder called Documents and Settings. We will move the directory to the FAT32 partition to share documents easier.
*From now on, the shared FAT32 partition will be called the Z:\ drive.

Make a folder on the Z: drive called Documents and Settings. Move all that you can move, the only thing you can't would be your accounts. Ensure All Users is moved.

Now according to this http://support.microsoft.com/kb/236621, we need to go into Registry Editor to find all the paths to C:\Documents and Settings\ to change them (remapping them). CTRL+F and type in Documents and Settings. Everytime it says C:\Documents and Settings\, change it to Z:\Documents and Settings\ (of course substitute Z: for whatever drive letter it is). Use caution when editing the registry.

Now log onto another account, if you followed the above steps properly, the new profile should be created on the Z: drive. Move the other accounts' profile into Z:\Documents and Settings and delete the old folder on the C: drive.

Remapping /home

Search Google for some instructions because I almost damaged my Linux partition when do this. tongue.gif

Conclusion

By using this method, we can avoid using 3rd party utilities to access files on other non-native partitions.

Some issues

Here is a list of possibly issues that may result from using a FAT32 partition. This list is non-exhaustive:

Permissions are not kept. Anyone booting into Windows can delete, modify, rename or do anything to the files. The Windows permissions aren't kept either.

There is no NTFS compression, because this is a FAT32 drive. A 3rd party utility would need to be used for encryption.

Anything that requires NTFS will either need to be FAT-compatible, otherwise it will not work. An example of this is Windows Live Messenger Sharing Folders.

Hope this helps,
FirefoxRocks/OpenOffice

 

 

 


Comment/Reply (w/o sign-up)

Harry Pearce
My solution with Desktops have always been to add a second Harddrive. Especially with them being so cheap these days, and have one with windows, and the other with BSD/LINUX/Whatever else you want. Laptops, I started using a USB external HDD to do the same thing.

I've just always run into problems with partitioning.

Comment/Reply (w/o sign-up)

Jimmy89
Great tutorial! Thanks, its very informative and could be very helpful.

QUOTE(FirefoxRocks @ Jan 25 2008, 04:30 PM) *
ALWAYS, ALWAYS, ALWAYS make a backup BEFORE working with partition utilities!! There is ALWAYS a risk of data loss!!

I've learn this lesson the hard way once before, luck it wasn't much

QUOTE(FirefoxRocks @ Jan 25 2008, 04:30 PM) *
Installing Linux:

Umm...you should know how to do this. I'm not really an expert in this area, but the Ubuntu installer is easy enough.
As for this, there is many tutorials that can help you do this, many of them are on this board. There is a great tool at http://www.instalinux.com/ which can generate a custom boot image for you, taking the hard work out of setting it up. You need to know some stuff about your computer, but it helps.

 

 

 


Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : linux, windows, partitions, sharing, files, back

  1. Lightest Linux
    (15)
  2. When And What Is Your First Linux Experience?
    (4)
    Hi All, I want to learn when and what is your first experience of linux? Mine is; 1996 first
    install of linux. 1995 first time I heard of linux. I remember how I was happy and how I was curious
    about linux. I was bored of Windows. It was not the OS I was dreaming of. It was not completely
    flexible. I was feeling that windows is not the edge of the computer tech. There are something wrong
    about windows. And Linux was like a dream for me.. I remember how I tried to get a linux distro. I
    remember how I installed it.. How excited I was. It was incredible.. The linux I ins....
  3. I Want To Get Linux, Which One Is Best?
    (20)
    currently have Windows XP (god help me) and want to change to Linux. I know that Linux is
    open-source, but does that mean that it is free? I have no idea on the matter so I decided to
    consult the forums. ....
  4. Linux Software Installation Help
    it tells how to install software in tar.bz2 or .bin extension (2)
    installing .tar.bz2 software open the terminal window.Place the s/w in root's home..then
    write file.tar.bz2 in terminal. uncompressing will take place.a folder with .tar extension will b
    created.Now write tar -xvf filename.tar,contents will be read..Now,move to the directory just
    created..read the readme file..follow instruction such as make or make install to be commanded in
    terminal...now its done..use it by writing in terminal for ex. mplayer movie.avi. ..or just drop ur
    movie file nin the terminla..nd remove the " " in the file..append mplayer with blank spa....
  5. Which Linux Version For Newbies?
    Give your opinion (14)
    Hi, well i have been a windows user all my life, and I'm really satisfied with it. But from a
    time know as a good programmer/user, I want to know what I'm missing(or not) from not using
    linux, so for those who have a long time using it I would like you to ask a favor, if you could
    recommend me the version that I should test. I don't understand when someone says to a newbie in
    linux that is asking for a version to start, they say to them "well ubuntu(example) is a good
    version to start", what are the real diference between the different types of linux. ....
  6. Why Linux?
    (23)
    i have always wonder, what is so special about linux? why do people have linux? rather than windows
    or mac? is it recommended that noobs like me /laugh.gif" style="vertical-align:middle"
    emoid=":lol:" border="0" alt="laugh.gif" /> have an linux os? /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />....
  7. Choice Of Motherboard For Linux Virtualization
    Who knows which ones work well? (6)
    Virtualization is a relatively arcane subject, but it is one which is very rapidly growing, and
    apparently very "hot" in commercial enterprises. For the hobbyist with multiple computers (I have
    8), it offers the possibility of taking snapshots of running, fully configured applications and
    operating systems, and transferring some or all of them onto a single computer platform. First, it
    saves energy. Second, once the conversion has been made from real hardware to a virtual "guest,"
    the driver problems associated with moving from one hardware platform to another are sol....
  8. Linux Basic Command - For Storing Compilation Error To File
    (1)
    Ex: Compiling a cpp file using a basic command " g++ filename.cpp " and to run the program use
    ./a.out , Then to store the compilation error to text file use this command. g++ test.cpp >
    log.txt log.txt contains the compile time errors. ....
  9. Linux For Beginners- Easy To Install
    (16)
    Which Linux distru is for beginners and Easy to install?....
  10. Access Linux Box From Windows Machine- Putty Tool
    (2)
    Most of the guys want to access Linux box from Windows machine just to do some programming on the
    command line. The "Putty Tool" is the solution for this. Just google for "Putty" and download this
    small package(less then 1MB) and keep it on your desktop. Just you need to configure the linux
    machine IP on this Putty tool and connect to Linux machine. If you face any problem in configuring
    Linux IP, then let me know, i will help you out. If you think this is help full, please rate this.....
  11. How To Copy File & Folders From Linux To Windows?.
    (14)
    Many face problem while transfering file from Linux to windows and Vise versa. My solution for
    this is "winscp405". Winscp is a windows freeware tool used to copy file from & to Linux machine.
    To get this tool just google for " winscp405" tool and download this small package and install.
    Enjoy working with Linux and windows /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />....
  12. Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.
    (0)
    Let me give some usefull linux commands and utilities. Please add to this list if you know.
    Work with tar files. To make tar archive use $ tar -cvf filename.tar filename
    To extract tar archive use $ tar -xvf filename.tar To extract tar archive
    with gz use $ tar -xzvf filename.tar.gz Connect to remote system through ssh
    $ ssh name@ip followed by passwd e.g. ssh project@172.16.0.14 passwd: List the
    file in current directory $ ls -l list the running process ....
  13. How To Play Music And Movie In Linux? Which Is The Good One?.
    (6)
    How to play Movie and music on linux. I am using fedora and i dont think so any player is specific
    to any one flavour of linux. I have used "MP3 blaster" player, but this you need to play from
    command line. Any other user friendly player pls let me know /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> ......
  14. So, I Want To Try Out Linux.
    What do I need? (9)
    If I want to use Linux, would I need XP or a OS on a LAPTOP already? Or can I just pure boot Linux?
    I've wanted to use Linux for a while, preferably Ubuntu. Unless those are two completely
    different things. /dry.gif" style="vertical-align:middle" emoid=" I don't know, I have never
    used Linux before. /tongue.gif" style="vertical-align:middle" emoid=":P" border="0"
    alt="tongue.gif" /> So, any help?....
  15. Diablo 2 In Linux?
    possible or not? (11)
    Hey! Sorry if this should be in the game forum, but it is about a game in Linux. And I need help
    with it /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> so I
    thougt that it belongs to here. So.. Is it possible to install Diablo 2 on Linux using some sort of
    patch, or any special software? Not just diablo. But other games too, that only works on Windows.
    Thanks //Feelay....
  16. Ubuntu 7.10 + Windows Xp Dual Boot
    how to reinstall GRUB after windows reinstall (9)
    Ok so for a long time I had my dual boot working great, windows and ubuntu. But 2 days ago my
    windows required a wipe and clean install because of some issues, like it usually happens after 8
    months. So I reinstalled windows, well, first deleted the windows partition using the windows XP
    install CD. Then assigned a partition for windows (same size) and left the ubuntu and swap partition
    intact. But of course, windows deletes GRUB and replace it with their boot info, so now I can't
    boot ubuntu (I can't choose). How can I reinstall GRUB without having to reinstal....
  17. How To Install Linux Without A CD or DVD?
    Would like to learn how to use Linux but don't know how to install (11)
    Hey! I've tryed to install linux without a cd (as they said on the website).. But I did'nt
    understand it so good =/ Can anyone please tell me how I can install linux without a CD? Any
    version.. The only thing I need is a fast one (faster than windows).. I am completly new (never
    tried it before) and would want to learn Linux. But thats not easy, if I don't know hoiw to
    install it /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Thanks
    //Feelay....
  18. Three Ways To Access Linux Partitions From Windows On Dual-boot Systems
    (11)
    If you have a dual-boot Windows/Linux system, you probably know this problem: you can access files
    from your Windows installation while you are in Linux, but not the other way round. This tutorial
    shows three ways how you can access your Linux partitions (with ext2 or ext3 filesystem) from within
    Windows: http://www.howtoforge.com/access-linux-par...ns-from-windows
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  19. Looking For Linux
    2 choices that I will choose - make it easy to install and MAINTAIN (34)
    Ok I have tried Linux before, it was ok, until something with the kernel screwed up and it left me
    with a command line interface that I didn't know what to do. I am looking for 2 different
    distributions of Linux here, my first one is for: (Currently running Windows XP SP2) A computer
    with 512 MB RAM Pentium 4 processor Internet Access GNOME or KDE desktop, doesn't matter Minimal
    command line work!!! Absolutely no command line work when installing. I have tried Ubuntu, it was
    easy enough. Anything easier than Ubuntu and I'll give it a try. My second cho....
  20. Psybnc - Howto
    How to make a psyBNC on Linux (5)
    Installation First, fetch the latest source code from http://www.psybnc.at QUOTE cd wget
    http://www.psybnc.at/download/beta/psyBNC-2.3.2-7.tar.gz tar -zxvf psyBNC-2.3.2-7.tar.gz cd psybnc
    Configuration QUOTE make menuconfig Now go in `Bouncer Config', next set Listening
    Port and Ip. Next select `User' Here you will be able to create a user for your bouncer. You
    must set Ident, Realname and Password, and vhost too. So return to main menu, and choose exit. When
    prompted for saving select Yes. Launching psyBNC QUOTE make ./psybnc ....
  21. What Made You Switch To Linux?
    (65)
    I first tried Linux a few years ago, not because I was completely against Windows or anything like
    that, but just because I had some free time on my hands. I started off with Mandrake 9.0 which was
    very user friendly and Windows-like. After reading through a bunch of message boards and learning
    which distros are good for what, I soon realized my current distro was great for Linux noobs. So
    then I decided to try something a little more advanced like Slackware which I knew had a steep
    learning curve. Since then I've been using Slackware as my main OS and couldn'....
  22. Where To Find Notepad++ For Linux ?
    (38)
    I'm searching 2 days ago trying to find notepad++ for linux but i couldn't find it yet,
    does anyone know or have this great software?, ofcourse i have it on windows, but i don't use
    windows so much time, most times i'm on linux so i need it to be run on linux. P.S: i don't
    use WINE so please don't recommend it /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> ....
  23. Binds ( Dns Server For Linux ) - How To Use It ?
    (3)
    I have BINDS installed on my Linux box and was wondering how you use it. For the fact that it is a
    DNS server, that is all I know. Otherwise, I'm lost! Thanks! F....
  24. What Language Is Linux Written In ?
    (15)
    I''ve been wondering lately, what language is Linux written in? I'm interested in
    this, because my friend and I are considering writing our own distro. I know, it sounds like a bit
    of a feat, but one guy wrote MEPIS by playing with the Debian source code. I think the two of us
    could do something similar. /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif'
    /> ....
  25. What's The Difference Between Linux And Unix?!?
    (23)
    are they even made by the same people...?....
  26. Linux - which distributiuon?
    (21)
    I'm wondering what distributions of Linux do you like most. Please make some comments on
    distribution you like so everybody will know its adventagies.....
  27. You can Play now in Linux
    These is a list of the games. (26)
    You can Play a greates gameg in linus as: Unreal Tournament Quake 3 Wolfenstein Enemy teritory Medal
    of Honor And Emule Nintendo 64 and Play Station games. He have your property games as: Tux Raser
    Tux Cart Flith of the amazon queen Beneath a Steel Sky and most more.....
  28. Linux SuSE detec you all hareware
    Yea SuSE detec all. (2)
    Yea SuSE heve the best tools. Mplayer, Xmms, OpenOfecce, K3B, FireFox etc.....
  29. Now Linux is ease
    The linux SuSE 9.1 is most ease linux (9)
    /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> if you desire
    to do your linux most ease, I recommend yourself to change you to SuSE 9.1 and your life to be ease.
    These linux make all to you. you don't need to make nothing. /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  30. Running Linux on slow computers
    (17)
    I'm wondering if Mandrake 9.2 with X can be used on slow machine like: Pentium 350, 64mb ram,
    2mb graphic card. I don't want to install any servers (ssh maybe).....

    1. Looking for linux, windows, partitions, sharing, files, back

See Also,

*SIMILAR VIDEOS*
Searching Video's for linux, windows, partitions, sharing, files, back
Similar
Lightest Linux
When And What Is Your First Linux Experience?
I Want To Get Linux, Which One Is Best?
Linux Software Installation Help - it tells how to install software in tar.bz2 or .bin extension
Which Linux Version For Newbies? - Give your opinion
Why Linux?
Choice Of Motherboard For Linux Virtualization - Who knows which ones work well?
Linux Basic Command - For Storing Compilation Error To File
Linux For Beginners- Easy To Install
Access Linux Box From Windows Machine- Putty Tool
How To Copy File & Folders From Linux To Windows?.
Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.
How To Play Music And Movie In Linux? Which Is The Good One?.
So, I Want To Try Out Linux. - What do I need?
Diablo 2 In Linux? - possible or not?
Ubuntu 7.10 + Windows Xp Dual Boot - how to reinstall GRUB after windows reinstall
How To Install Linux Without A CD or DVD? - Would like to learn how to use Linux but don't know how to install
Three Ways To Access Linux Partitions From Windows On Dual-boot Systems
Looking For Linux - 2 choices that I will choose - make it easy to install and MAINTAIN
Psybnc - Howto - How to make a psyBNC on Linux
What Made You Switch To Linux?
Where To Find Notepad++ For Linux ?
Binds ( Dns Server For Linux ) - How To Use It ?
What Language Is Linux Written In ?
What's The Difference Between Linux And Unix?!?
Linux - which distributiuon?
You can Play now in Linux - These is a list of the games.
Linux SuSE detec you all hareware - Yea SuSE detec all.
Now Linux is ease - The linux SuSE 9.1 is most ease linux
Running Linux on slow computers
advertisement



Linux And Windows Partitions - Sharing files back and forth

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com