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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-29-2003, 10:52 PM
|
#1
|
Member
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84
Rep:
|
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
|
|
|
06-29-2003, 10:54 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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 10:59 PM.
|
|
|
06-29-2003, 11:27 PM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
06-29-2003, 11:43 PM
|
#4
|
Member
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84
Original Poster
Rep:
|
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-29-2003 at 11:59 PM.
|
|
|
06-29-2003, 11:56 PM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
06-30-2003, 12:02 AM
|
#6
|
Member
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84
Original Poster
Rep:
|
ooh!!! thx to u , it's work!!!!!!!!!!!
but the problem with the light is not fix.
|
|
|
06-30-2003, 12:03 AM
|
#7
|
Member
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84
Original Poster
Rep:
|
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?
|
|
|
06-30-2003, 12:08 AM
|
#8
|
Member
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84
Original Poster
Rep:
|
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
|
|
|
06-30-2003, 12:39 AM
|
#9
|
Member
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84
Original Poster
Rep:
|
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!!!
|
|
|
06-30-2003, 12:41 AM
|
#10
|
Member
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84
Original Poster
Rep:
|
Disk /dev/hde6: 20.3 GB, 20316409344 bytes i lost 10 gig .. strange linux!!!!
|
|
|
06-30-2003, 12:42 AM
|
#11
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
/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
|
|
|
06-30-2003, 12:52 AM
|
#12
|
Member
Registered: Jun 2003
Location: Montréal, Québec
Distribution: red hat 9
Posts: 84
Original Poster
Rep:
|
thx, u are a master!
|
|
|
06-30-2003, 12:55 AM
|
#13
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
 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
|
|
|
06-30-2003, 09:43 AM
|
#14
|
LQ Newbie
Registered: Jun 2003
Distribution: Redhat 8 with kde 3.1.1
Posts: 4
Rep:
|
I was wondering what the uid=500 does?
|
|
|
06-30-2003, 10:47 AM
|
#15
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 04:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|