LinuxQuestions.org
Register a domain and help support LQ
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 04-05-2007, 09:54 AM   #1
stillkid
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
Fat dsik formate on redhat linux 9.0


while installing redhat it asked me about my file system and i was unable to install it on fat. my drive is 10gb. so i reformatted it to ext2. now that partition is not showning it in windows and my other windows partitions are not showing in linux. what should i do?

all of my partitions are in fat format and under XP. i am just keeping redhat for my php projects. and i hardly know nix systems. so please explain your answers like you do for a newbie. i need to know this to transfer my data easily between both os's. and also my modem is not showing up in the list. will it creat problem when connecting to internet under linux.
 
Old 04-05-2007, 10:15 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
FAT format is crude and primitive. You shouldn't use it. Use NTFS for windows and use ext2, ext3, or reiserfs for Linux.

To be able to access your ext2/ext3 Linux partition from Windows, install the ext2 filesystem into Windows.
http://www.fs-driver.org/download.html
 
Old 04-05-2007, 10:23 AM   #3
stillkid
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
how to do the other thing that is reading/writing fat using linux
 
Old 04-05-2007, 10:53 AM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Red Hat 9 is a very old and unsupported Linux distribution. Why don't you use a modern distro?
 
Old 04-05-2007, 10:58 AM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
TO read/write FAT from Linux, just mount the FAT partition using the usual Linux mount techniques. You need an entry in /etc/fstab and a mountpoint. A more modern distro would automatically configure this for you but for RH9 you'll have to make the entry (I think).

A typical fstab entry to read/write a FAT partition looks like this:

/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-1,codepage=850 0 0

You have to change the partition identifier to match your actual partition.
 
Old 04-07-2007, 10:59 AM   #6
stillkid
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
well searching the net for this probelm i did came across a line like this to be added /etc/fstab and a tutorial on how to munt a driver

Quote:
To access a FAT partition from Linux you need to make sure DOS/VFAT/NTFS is included as module with your kernel then load up vfat with
#sudo modprobe vfat
Create a directory to mount the partition in
#sudo mkdir /mnt/fat
And mount the partition
#sudo mount -t vfat /dev/hdX /mnt/fat
(replacing /dev/hdX with your disk)

If everything works ok you'll probably want to add a line to /etc/fstab like
/dev/hdX /mnt/fat vfat defaults 0 0
but that didn't work.

and the question why i didn't downloaded any new distro. well i have a 56k connection so downloading is out of question and in local cd market i was unable to find any *nix distro. so i asked some one going to a bigger city to bring me a linux and after very hard search he only managed to find RH9 which he got for me.
 
Old 04-07-2007, 11:25 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,949

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Redhat 9 does not automatically setup windows partitions. So as you have discovered you need to create a directory and mount the filesystems. RH includes FAT32 support so "that didn't work" is not enough information to help. What were the error messages. Also post the output of the command
fdisk -l (that is a small L and you must be root)

This will show how the drive is partitioned and what device to use i.e. /dev/hdx.
 
Old 04-07-2007, 12:23 PM   #8
stillkid
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
well there was no error message and nothing worked either.
i entered the command and it was entered ok with no error (it gives bad command error when wrong command is given). and i was unable to find my drive anywhere in the system.
i had just found out about fdisk -l. and as i am using windows right now and working on net so i can not switch to linux and test it right away. after my work is done i will turn linux on try

/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-1,codepage=850 0 0

instead of

/dev/hdX /mnt/fat vfat defaults 0 0

and then i will post here again what happened.
 
Old 04-07-2007, 07:36 PM   #9
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
After doing your mount, did you try to cd into /mnt/fat ? You really should try that; if mount did not return any message at all then most probably it DID work.

The variant that I gave you is merely a bit more specific in terms of what it expects to see in the FAT partition; if the command you entered didn't work, the one I gave you won't work either.
 
Old 04-08-2007, 07:35 AM   #10
stillkid
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
i changed the properties of dev folder to read/write/execute and it worked.

now i have couple of problems.

most of my multimedia is in .avi (divx) how to access that and also .3gp

and where can i get mysql.so file i have sql running and php running but php cannot connect to sql.
 
Old 04-08-2007, 10:36 AM   #11
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Ah! Yes, /dev has to be writeable. Mplayer with codecs and all frontends that use mplayer can play avi files. You have to get the codecs separately though due to copyright issues. Visit the mplayer homepage to download the codecs. I don't know about 3gp; most likely the same answer applies.

What do you mean that php cannot connect with mysql? Do you mean the mysql commands that are built into php aren't working?
 
Old 04-09-2007, 06:57 AM   #12
stillkid
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
thanks i am going to download Mplayer

and i was looking for the php extension file called mysql.so which connects php to mysql and i found it as i am able to connect to mysql database. but now another problem has happened.

my user "root" doesn't have permissions to create new database. i only have the dfault sql and test in the database. i am currently using phpmyadmin to connect to database. and how to give it permissions to create new database nad/or new user with these permission.
 
  


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
How to acess NTFS/FAT files from Linux Redhat 9? ptht84 Linux - General 5 05-18-2004 01:39 AM
ide hard dsik controller suggestion elbe3321 Linux - Hardware 2 07-28-2003 07:37 AM
formating floppy with fat file system in redhat linux 7.3 !!! hitesh_linux Linux - General 1 06-17-2003 11:30 AM
How to mount a FAT partition on RedHat LinWinUser Linux - General 9 06-02-2002 01:30 AM
Linux supports fat or fat 32? dark_light Linux - General 3 04-25-2002 02:06 AM


All times are GMT -5. The time now is 12:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration