LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-29-2003, 11:52 PM   #1
ironz
Member
 
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84

Rep: Reputation: 15
mount a fat32 hdd..how?


hi , im totally n00b so i have try some article to mount a hdd on redhat linux but nothing works or the article is to old (ex:for redhat 7.2)!

i have a 30 gb hdd split in 3 partition (fat32 and 1 in EXT3)and a 500 mb hdd fat32.



(my partition is hde* (*=number) FDISK

Disk /dev/hde: 30.0 GB, 30060527616 bytes
255 heads, 63 sectors/track, 3654 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes

Périphérique Amorce Début Fin Blocs Id Système
/dev/hde1 * 1 637 5116671 b Win95 FAT32
/dev/hde2 638 3654 24234052+ f Win95 Etdue (LBA)
/dev/hde5 638 1184 4393746 83 Linux
/dev/hde6 1185 3654 19840243+ b Win95 FAT32

Fstab file:

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0


so... what i can do for fix this problem?

thx for help
 
Old 06-29-2003, 11:54 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
add the mount points to your fstab
heres an example of how i did it for one of my secondary drives which is fat32:
/dev/hdc1 /mnt/80gig vfat user,rw,exec,uid=500 0 0
so i make the mountpoint in my mount folder called 80gig, and then i define that in my fstab for it will initialize everytime i reboot....

Last edited by DrOzz; 06-29-2003 at 11:59 PM.
 
Old 06-30-2003, 12:27 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
I'd try mounting it first to help with defining possible errors:
mount -t vfat /dev/hdx /mnt/point -o user,rw,exec,uid=500
Where /dev/hdx is the actual device
and
/mnt/point
is a mount point of your choice, maybe:
/mnt/fat32

Make sure that directory exists first:
mkdir /mnt/fat32 (or whatever you choose)

If all mounts well, and acts as expected, then proceed to edit your fstab as shown above.

Cool
 
Old 06-30-2003, 12:43 AM   #4
ironz
Member
 
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84

Original Poster
Rep: Reputation: 15
nope , nothing work's

they gave me a fuk*** error:

(aren't you trying to mount an extended partition,
instead of some logical partition inside?)

AND THERE is another big problem , after the loading of redhat linux 9 , my hdd light IS ALWAYS ON!!!!!! but my hdd is not loading.
my hdd is not too old , samsung ata-100 30 gig (2002)

this problem only appear in red hat linux because i have windows xp on another partition and no problem the light is not always on and it flash when it have ide activity.
no bad cluster found

What's the problem?

Last edited by ironz; 06-30-2003 at 12:59 AM.
 
Old 06-30-2003, 12:56 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
The problem is the partition you are trying to mount. Post up your full syntax you used.

Here's what I'd try:
mount -t vfat /dev/hde6 /mnt/fat32 -o user,rw,exec,uid=500

Cool
 
Old 06-30-2003, 01:02 AM   #6
ironz
Member
 
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84

Original Poster
Rep: Reputation: 15
ooh!!! thx to u , it's work!!!!!!!!!!!

but the problem with the light is not fix.
 
Old 06-30-2003, 01:03 AM   #7
ironz
Member
 
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84

Original Poster
Rep: Reputation: 15
AND THERE is another big problem , after the loading of redhat linux 9 , my hdd light IS ALWAYS ON!!!!!! but my hdd is not loading.
my hdd is not too old , samsung ata-100 30 gig (2002)

this problem only appear in red hat linux because i have windows xp on another partition and no problem the light is not always on and it flash when it have ide activity.
no bad cluster found

What's the problem?
 
Old 06-30-2003, 01:08 AM   #8
ironz
Member
 
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84

Original Poster
Rep: Reputation: 15
so for the fstab

Correct me if this is bad..

/dev/hde6 /mnt/best vfat user,rw,exec,uid=500 0 0

best = my new dir for mount
 
Old 06-30-2003, 01:39 AM   #9
ironz
Member
 
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84

Original Poster
Rep: Reputation: 15
a little bug..


Disk /dev/hde6: 20.3 GB, 20316409344 bytes
247 heads, 54 sectors/track, 2974 cylinders
Units = cylindres of 13338 * 512 = 6829056 bytes

Périphérique Amorce Début Fin Blocs Id Système
/dev/hde6p1 ? 310645 299280 2071690107 f6 Inconnu
/dev/hde6p2 ? 310645 299280 2071690107 f6 Inconnu
/dev/hde6p3 ? 310645 299280 2071690107 f6 Inconnu
/dev/hde6p4 ? 310645 310650 31611 f6 Inconnu

Wow i have a 60 gig with a 30 gig hdd it's a miracle!!!lol?
and the disc format type are unknow!!!
 
Old 06-30-2003, 01:41 AM   #10
ironz
Member
 
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84

Original Poster
Rep: Reputation: 15
Disk /dev/hde6: 20.3 GB, 20316409344 bytes i lost 10 gig .. strange linux!!!!
 
Old 06-30-2003, 01:42 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
/mnt/best should only be used to mount your fat32 partition, otherwise you'll attempt to mount something else there when there is already your fat32 HD there.. FYI, however you can choose WHATEVER you'd like, and yes, that fstab entry should be sufficient.

I'd add:
/dev/hde6 /mnt/best vfat noexec,auto,user,rw,uid=500 0 0
Instead, since you don't/shouldn't need to be executing anything from your fat partition, just a small extra security measure.

As for the HD light, it appears to be some sort of bug, not sure what causes it. You might look into hdparm and see if you can play with some setting in there... ***NOTE: Messing with hdparm could render your drive useless, beware.

Cool
 
Old 06-30-2003, 01:52 AM   #12
ironz
Member
 
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84

Original Poster
Rep: Reputation: 15
thx, u are a master!
 
Old 06-30-2003, 01:55 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
You're welcome.

As for what fdisk -l reports, it will show different sizes due to extended vs logical setups. I prefer to mount my drive then use:
df -h
to report size and usage info, it's much more readable.



Cool
 
Old 06-30-2003, 10:43 AM   #14
linuus
LQ Newbie
 
Registered: Jun 2003
Distribution: Redhat 8 with kde 3.1.1
Posts: 4

Rep: Reputation: 0
I was wondering what the uid=500 does?
 
Old 06-30-2003, 11:47 AM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
It specifies that the drive is mounted as owner user, check your /etc/passwd file and see which user is uid500

Similar with gid in /etc/group

Cool
 
  


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 format to FAT32, and how to mount my FAT32 partition. bonniehandi Linux - Newbie 16 03-05-2006 08:54 PM
external corrupt hdd -> formating to fat32 bobbens Linux - Software 7 01-01-2005 08:50 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 02:50 PM
Problem formatting HDD with FAT32 rafi112 Linux - Newbie 5 02-19-2004 02:30 PM
Fat32 HDD mount problem. L3go1as Linux - Newbie 12 02-02-2004 01:57 PM

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

All times are GMT -5. The time now is 11:28 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