LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount a fat32 hdd..how? (https://www.linuxquestions.org/questions/linux-newbie-8/mount-a-fat32-hdd-how-68945/)

ironz 06-29-2003 10:52 PM

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

DrOzz 06-29-2003 10:54 PM

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....

MasterC 06-29-2003 11:27 PM

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

ironz 06-29-2003 11:43 PM

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?

MasterC 06-29-2003 11:56 PM

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

ironz 06-30-2003 12:02 AM

ooh!!! thx to u , it's work!!!!!!!!!!!

but the problem with the light is not fix.

ironz 06-30-2003 12:03 AM

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?

ironz 06-30-2003 12:08 AM

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

ironz 06-30-2003 12:39 AM

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!!!

ironz 06-30-2003 12:41 AM

Disk /dev/hde6: 20.3 GB, 20316409344 bytes i lost 10 gig .. strange linux!!!!

MasterC 06-30-2003 12:42 AM

/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

ironz 06-30-2003 12:52 AM

thx, u are a master!

MasterC 06-30-2003 12:55 AM

:) 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

linuus 06-30-2003 09:43 AM

I was wondering what the uid=500 does?

MasterC 06-30-2003 10:47 AM

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 05:07 AM.