LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2007, 10:31 AM   #1
gjhxyz
LQ Newbie
 
Registered: Aug 2007
Location: France
Distribution: Fedora
Posts: 23

Rep: Reputation: 0
how to share partitions between windows and linux debian


Following advice from an article written in 02/2005 I have reformated my newsecond hard drive to type fat32 because both linux and windows support this file type. However I am having trouble understanding linux jargon to get linux to make the HD accessible and therefore share acccess between both OS. I have managed to create a new directory under linux but the references to use the mount command and edit the etc/fstab file are beyond me. Is there an idiots guide available somewhere to clearly show how to do this? If there is a better way to share files I would appreciate help.
 
Old 08-18-2007, 10:52 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
man fstab will help and go a long way. you can also google for automount fat32 fstab and that should give you more information.

in short you have to tell the fstab that your fat32 partition is there and then set permissions to it for root and users.

this is and example of an fstab

Code:
cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/sda3       /                       ext3    defaults        1 1
/dev/sda1       /boot                   ext3    defaults        1 2
/dev/sdb1       /b                      ext3    defaults        1 2
none            /dev/pts                devpts  gid=5,mode=620  0 0
none            /dev/shm                tmpfs   defaults        0 0
none            /proc                   proc    defaults        0 0
none            /sys                    sysfs   defaults        0 0
/dev/sda2       swap                    swap    defaults        0 0
none            /var/qmail/scan/tmp     tmpfs   defaults,noatime 0 0
/dev/hdc                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
that tells you how many drives there are, what type they are, etc... no fat32 on that comp as it is a server so no need to have windows formats on it.
 
Old 08-18-2007, 11:20 AM   #3
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Rep: Reputation: 30
You might have a bit of trouble even reading the manual page for fstab (i.e. not knowing which of /dev/* to mount, etc.). Give us the output of:

Code:
fdisk -l
 
Old 08-18-2007, 07:06 PM   #4
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Rep: Reputation: 15
fstab

as you see i am newbie as well

here comes a link to a fstab guide to get you started real quick:

http://www.tuxfiles.org/linuxhelp/fstab.html
 
Old 08-19-2007, 09:17 AM   #5
gjhxyz
LQ Newbie
 
Registered: Aug 2007
Location: France
Distribution: Fedora
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reverse View Post
You might have a bit of trouble even reading the manual page for fstab (i.e. not knowing which of /dev/* to mount, etc.). Give us the output of:

Code:
fdisk -l
Had trouble getting this command to work, tried i, 1, caps l but eventually it worked, this is for other beginners that have trouble, don't give up!

The output for the new hard disk is :

Disk /dev/sdb: 300.0 GB, 300090728448 bytes
255 heads, 63 sectors /track, 36483 cylinders
Units = cylinders of 16085 * 512 = 8225280 bytes
device Boot Start End Blocks Id System
/dev/sdb1 1 36483 2930496666 b W95 FAT32


Already this clarifies some of the things I have seen in the documnetation with the help of other replies received (thks) If I was not clear in my objective, I want to be able to see files in the HD either on windows or on linux, I know I can do what I want with them in windows, eg: look at a film or listen to MP3, will I be able to do this on linux? possibly dragging and dropping or just being able to access the file, the inmportant thing is to not have to continually reboot. There is no data of any consequence on this disk. Thank you for your comment about the manual it reassured me! Is there a way to copy output and put it into the forum? The initial output containing the boot HD0 I am assuming you do not need. OK? thks
 
Old 08-19-2007, 10:16 AM   #6
gjhxyz
LQ Newbie
 
Registered: Aug 2007
Location: France
Distribution: Fedora
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Michaelx View Post
as you see i am newbie as well

here comes a link to a fstab guide to get you started real quick:

http://www.tuxfiles.org/linuxhelp/fstab.html
Thank you Michael, this is very helpful for this and other things, appreciate it. rgds
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 08:31 AM
windows 2003 and debian share nadirm Linux - Networking 3 01-25-2005 04:58 PM
windows 2003 and debian share nadirm Linux - Networking 1 01-24-2005 06:55 AM
share printer (windows-debian) psa Linux - Newbie 11 08-30-2004 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:16 PM.

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