LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-05-2005, 09:36 PM   #1
Oh Cisco
Member
 
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95

Rep: Reputation: 15
Create a dual boot with shared vfat


I am starting with a blank 20 GB harddrive and I want to have 5 GB for WIN2000, 5 GB for Debian testing and 10 GB for my home directory formated as fat32 so I can store all my info. I want to be able to share these files between both OS's. Is there a place that tells how to setup the home directory on the fat32 partition?
 
Old 07-05-2005, 11:29 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
You can't run Debian inside a FAT32 partition. Put your /home partition on the 5G partition for Debian testing, and setup the FAT32 to mount and be accessible from Debian, so that you can read and write to it from both Windoze and Debian. Windoze can't read the Linux native filesystems, and you have many files under your /home directory that can't be FAT32. You can make that 10G partition the one where you save files that you create on both systems, though.
 
Old 07-06-2005, 12:23 AM   #3
camlinux
Member
 
Registered: Feb 2003
Location: north dakota
Distribution: Gentoo, Debian
Posts: 90

Rep: Reputation: 15
Couldn't you set up fstab to put /homes on a fat32 partition? More of a curiosity for me than anything.

Oh CISCO, you don't want to have your home partition on a fat partition even if it was possible. You can't set permissions that way and that can cause you system to act funny.
 
Old 07-06-2005, 12:27 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Also, how would a FAT filesystem handle these files and directories?
Code:
drwx--x--x  61 mingdao users 4.8K 2005-07-06 00:26 ./
drwxr-xr-x   6 root    root   120 2005-07-02 18:35 ../
drwx------   2 mingdao users  112 2005-03-31 09:55 .AbiSuite/
drwx------   3 mingdao users   72 2005-04-01 10:34 .BitchX/
lrwxrwxrwx   1 mingdao users   34 2005-07-06 00:26 .DCOPserver_james_:0 -> /home/mingdao/.DCOPserver_james__0
-rw-r--r--   1 mingdao users   52 2005-07-06 00:26 .DCOPserver_james__0
drwxr-xr-x   2 mingdao users   96 2005-06-24 06:20 .GalleryRemote/
-rw-------   1 mingdao users  501 2005-07-06 00:26 .ICEauthority
-rw-------   1 mingdao users   99 2005-05-04 21:37 .Xauthority
drwxr-xr-x   3 mingdao users   72 2005-04-10 06:50 .adobe/
-rw-------   1 mingdao users  11K 2005-07-06 09:37 .bash_history
-rw-------   1 mingdao users 9.1K 2005-05-05 11:02 .bash_history.old
-rw-r--r--   1 mingdao users   20 2005-07-05 09:08 .bashrc
drwx------   3 mingdao users   72 2005-05-07 11:51 .bittorrent/
drwx------   4 mingdao users   96 2005-05-04 21:15 .cache/
-rw-------   1 mingdao users  12K 2004-06-01 06:55 .cedit.menu
drwx------   4 mingdao users  104 2005-05-04 21:37 .config/
-rw-r--r--   1 mingdao users  29K 2005-04-19 12:57 .config-acpi-builtin
-rw-------   1 mingdao users   44 2005-03-31 20:27 .cvspass
drwxr-xr-x   3 mingdao users   72 2005-05-31 19:20 .e/
drwx------   3 mingdao users   88 2005-05-31 19:20 .ecore/
-rw-------   1 mingdao users   16 2005-04-02 07:34 .esd_auth
drwxr-xr-x   5 mingdao users  272 2005-03-30 19:58 .fluxbox/
drwxr-xr-x   2 mingdao users 2.3K 2005-03-30 20:09 .fonts/
-rw-r--r--   1 mingdao users  84K 2005-03-30 20:13 .fonts.cache-1
-rw-r--r--   1 mingdao users 1.4K 2005-03-30 20:09 .fonts.conf
drwxr-xr-x   6 mingdao users  288 2005-05-17 22:48 .fullcircle/
drwx------   5 mingdao users  384 2005-07-06 12:08 .gaim/
drwx------   3 mingdao users  152 2005-03-31 04:00 .gftp/
drwxr-xr-x  21 mingdao users  920 2005-07-05 10:42 .gimp-2.2/
drwxr-xr-x   5 mingdao users  216 2005-04-03 13:29 .gkrellm2/
drwxr-xr-x   3 mingdao users   72 2005-04-09 11:15 .gnome/
drwxr-xr-x   3 mingdao users   72 2005-04-09 11:15 .gnome2/
drwx------   2 mingdao users  232 2005-07-06 11:26 .gnupg/
drwx------   2 mingdao users   48 2005-04-01 10:36 .irssi/
drwxr-xr-x   3 mingdao users   80 2005-06-18 11:08 .java/
drwx------   3 mingdao users  168 2005-04-06 17:14 .kde/
drwxr-xr-x   3 mingdao users   72 2005-05-04 21:15 .local/
-rw-r--r--   1 mingdao users 2.5K 2005-04-09 11:15 .mailcap
drwxr-xr-x   3 mingdao users  168 2005-07-03 08:15 .mc/
drwxr-xr-x   3 mingdao users  112 2005-05-03 22:19 .mcop/
-rw-------   1 mingdao users   31 2005-07-05 15:52 .mcoprc
-rw-r--r--   1 mingdao users  635 2005-04-09 11:15 .mime.types
drwx------   5 mingdao users  208 2005-06-14 07:59 .mozilla/
drwxr-xr-x   2 mingdao users  128 2005-03-31 04:01 .ncftp/
-rw-r--r--   1 mingdao users 1.3K 2005-05-30 19:28 .nvidia-settings-rc
-rw-r--r--   1 mingdao users  174 2005-04-10 09:06 .padminrc
drwxr-xr-x   2 mingdao users  240 2005-07-06 09:23 .qt/
-rw-------   1 mingdao users  13K 2005-07-05 10:42 .recently-used
-rw-r--r--   1 mingdao users 3.7K 2005-03-30 18:47 .screenrc
drwxr-xr-x   2 mingdao users  264 2005-05-20 15:22 .scribus/
drwx------   2 mingdao users   80 2005-03-30 18:53 .ssh/
-rw-r--r--   1 mingdao users   80 2005-04-09 11:15 .sversionrc
drwx------   4 mingdao users   96 2005-05-07 14:30 .thumbnails/
drwxr-xr-x   3 mingdao users  168 2005-03-30 20:00 .thunderbird/
drwx------   4 mingdao users  400 2005-07-04 05:01 .xchat2/
drwxr-xr-x   2 mingdao users  200 2005-06-21 21:44 .xine/
-rw-r--r--   1 mingdao users  560 2005-07-02 19:00 .xinitrc
-rw-r--r--   1 mingdao users  560 2005-06-06 00:25 .xinitrc-backup
drwxr-xr-x   4 mingdao users  200 2005-04-07 19:32 .xmms/
drwx------   2 mingdao users   48 2005-07-02 19:00 .xwmconfig/
Debian wouldn't be able to read them, either. Linux can read and
write to a FAT filesystem, but I don't think it can run on it.

I would gladly stand corrected, though.

Just make you a directory, say /home/shared
and mount it on the FAT32 partition, and save everything there.
 
Old 07-06-2005, 12:37 AM   #5
camlinux
Member
 
Registered: Feb 2003
Location: north dakota
Distribution: Gentoo, Debian
Posts: 90

Rep: Reputation: 15
I'm still trying to figure out why linux would have problems running off of a FAT partition. It can read and write to FAT the same as ext3 or reiserfs. The main shortcoming of FAT is it's lack of permissions. Which is a major shortcoming, yet I can't see why you could not have a fat partition as your home partition. Linux is going to be able to read all of those files just fine Chinaman.
 
Old 07-06-2005, 12:45 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
I don't know why, but I'm almost sure you can't use a FAT fs for
those files. Here, you read whilst I get a kip
http://tldp.org/HOWTO/Filesystems-HOWTO-3.html#fat
 
Old 07-06-2005, 01:35 AM   #7
Oh Cisco
Member
 
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95

Original Poster
Rep: Reputation: 15
I forgot about all the files that need to run in the home directory. I just wanted to be able to share data and files between the two OS, because I have some programs that I need to use for my business that I don't think will run on Linux at this point, i.e. FedEx ship manager, DVD copier and Singer Embroidery software. I just wanted to be able to check e-mails and surf the net in either OS and also share photos and movie files (we raise horses).

So if I understand this, I need to add a line in the fstab to mount the FAT32 partition and then make a link in the home directory ( like I did for mounting my floppy and cdrom) that will get me access to that partition and then I should be able to use it read and write to it from both OS's.
 
Old 07-06-2005, 04:03 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
This is the one that I use:
Code:
/dev/hda3        /DATA            vfat        user,umask=1000,rw,auto  1   0
For my Windoze dual boot, I have three separate partitions. One for the OS, one for the programs, and one for data. The first two are NTFS because it's journalized, similar to ext3 and ReiserFS in *nix. The data is FAT32 so that it can be read and written to by Slackware and Windoze.

In my example, only the user that mounted a filesystem can unmount it again. If any user should be able to unmount, then use users instead of user in the fstab line. There are many options, and some guys will disagree with the way mine is setup.

Read "man fstab" and "man mount" for the options available.
 
Old 07-06-2005, 06:54 PM   #9
Oh Cisco
Member
 
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95

Original Poster
Rep: Reputation: 15
Another question, do I use windoze to setup the shared fat32 partition, since it gets installed first or do I use Linux to setup the shared partition?
 
Old 07-06-2005, 07:09 PM   #10
camlinux
Member
 
Registered: Feb 2003
Location: north dakota
Distribution: Gentoo, Debian
Posts: 90

Rep: Reputation: 15
You can do it however you wish. I prefer to use Linux, but only becuase I'm more comfortable using it's tools.
 
Old 07-07-2005, 03:22 AM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Quote:
Originally posted by Oh Cisco
Another question, do I use windoze to setup the shared fat32 partition, since it gets installed first or do I use Linux to setup the shared partition?
My opinion is to use Windoze tools for Windoze; and Linux tools for Linux.

I would insert the W2K disc and create that 5G partition for the OS, and the 10G shared. Install W2K and format the W2K OS as NTFS, since it's journalized. Once you have W2K installed you can format the 10G partition as FAT32 and name it from My Computer.

Then install Debian, and use either LiLO or GrUB to boot both OSes.
 
Old 07-07-2005, 03:13 PM   #12
Oh Cisco
Member
 
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95

Original Poster
Rep: Reputation: 15
Thanks for the help, I won't be able to do the installs, I'm leaving on a business trip tonight, until I get back in 2 weeks. I will find this thread and let everyone know how well it went. Again thanks.
 
Old 07-21-2005, 11:32 AM   #13
Oh Cisco
Member
 
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95

Original Poster
Rep: Reputation: 15
I'm back, thank goodness

I installed windows 2000, created a fat32 partition (with windows) and then installed debian on the remaining space left. I am able to boot into both OS's without a problem, so I added the line,
/dev/hda2 /media/dual vfat users,umask=000 0 0
to my /etc/fstab file. I rebooted and the fat32 partition was automatically mounted. I have not tried to do anything with the dual partition yet, but I do have a question. Do I need to add "rw" to the users, umask=000 line so that I can read and write to that partition?
 
Old 07-21-2005, 12:06 PM   #14
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
I believe that umask=000 takes care of that. Try it, and if not, add the rw, but I don't think it's needed.
 
Old 07-21-2005, 03:00 PM   #15
Oh Cisco
Member
 
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95

Original Poster
Rep: Reputation: 15
Everything works perfectly, I have complete read and write access to the fat32 partition from both OS's.

Thanks for the help!
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual-Boot: Shared Drive Access Problem TotalNoob Linux - General 3 01-18-2007 01:11 PM
dual-boot WinXP-RH9 shared Internet access via DSL provri Linux - Wireless Networking 0 07-26-2005 01:41 AM
how to create an XP dual boot after linux has been installed izquierdista Linux - Software 4 07-08-2005 02:01 PM
shared Internet access, same box, dual boot, win xp and rh9 provri Red Hat 2 06-21-2005 12:36 AM
How to create dual boot in two harddisk tkt Linux - Newbie 5 05-16-2005 01:46 AM


All times are GMT -5. The time now is 10:59 AM.

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