LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to mount my fat32 partition in rh9?? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-mount-my-fat32-partition-in-rh9-284332/)

linus johann 01-30-2005 11:54 PM

how to mount my fat32 partition in rh9??
 
hello there again... i wanna see my fat32 partitions when im using linux... what will i do with fstab??

according to my hardware browser, these are my partitions:

hda2--------extended
hda5--------fat32
hda1--------ntfs
hdb4--------extended
hdb5--------ext3
hdb1--------fat32
hdb2--------ext3
hdb3--------linux swap

tnx!!

jonaskoelker 01-31-2005 12:28 AM

> what will i do with fstab?
reading the manual ('man fstab') might help. So might searching the web. If not, come back and state clearly what you don't understand. Hope this helps,

Jonas

RomanG 01-31-2005 12:46 AM

Re: how to mount my fat32 partition in rh9??
 
Quote:

Originally posted by linus johann
hello there again... i wanna see my fat32 partitions when im using linux... what will i do with fstab??

according to my hardware browser, these are my partitions:

hda2--------extended
hda5--------fat32
hda1--------ntfs
hdb4--------extended
hdb5--------ext3
hdb1--------fat32
hdb2--------ext3
hdb3--------linux swap

tnx!!

It is not enough information we need to help you. You already have /etc/fstab file, post it's copy here.

linus johann 01-31-2005 01:27 AM

i wanna automount my fat32 partition everytime i boot to linux... i tried adding this line to fstab:

/dev/hda2 vfat defaults 1 1.... didnt work

tried: /dev/hda5 vfat defaults 1 1... also didnt work...

what seems to be wrong or missing here???

RomanG 01-31-2005 01:38 AM

See my previous message and also I want to see what shows to you command fdisk -l.

linus johann 01-31-2005 02:03 AM

here is my fstab file: (i added the bottom line there) dont know if thatś correct :)


LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb3 swap swap 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
/dev/hda5 vfat defaults 1 1

linus johann 01-31-2005 02:05 AM

hereś also the result of fdisk -l ::

Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 731 5871726 7 HPFS/NTFS
/dev/hda2 732 2434 13679347+ f Win95 Ext'd (LBA)
/dev/hda5 732 2434 13679316 b Win95 FAT32

Disk /dev/hdb: 10.2 GB, 10242892800 bytes
240 heads, 63 sectors/track, 1323 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 475 3590968+ b Win95 FAT32
/dev/hdb2 476 489 105840 83 Linux
/dev/hdb3 490 558 521640 82 Linux swap
/dev/hdb4 559 1323 5783400 f Win95 Ext'd (LBA)
/dev/hdb5 559 1323 5783368+ 83 Linux

lomnhom 01-31-2005 02:23 AM

First you have to create a directory for mounting your FAT32 (ex /mnt/dream)

Second you may try this command
mount -t vfat /dev/hda5 /mnt/dream

And if you like RH automount this for you, add this linre to /etc/fstab file

/dev/hda5 /mnt/dream vfat defaults 0 0

RomanG 01-31-2005 02:52 AM

Your fstab should be look like that:
Note that 1) all after '#' are comments for you and are not important;
2) 'umask=0' means that all files are not executable on this partition;
3) 'ro' parameter for NTFS means READ ONLY (it is really not good idea to write anything to NTFS
under Linux - support of this file system in Linux is still not good);
4) you need to create /mnt/win_c, /mnt/win_d, /mnt/win_e directories
Code:

#device                mountpoint        filesystemtype        options
#
LABEL=/                /                ext3                defaults                1        1
LABEL=/boot        /boot                ext3                defaults                1        2
none                /dev/pts        devpts                gid=5,mode=620                0        0
none                /proc                proc                defaults                0        0
none                /dev/shm        tmpfs                defaults                0        0
/dev/hdb3        swap                swap                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
#/dev/hda5        vfat                                defaults                1        1
/dev/hda5        /mnt/win_d        vfat                umask=0                        0        0
/dev/hda1        /mnt/win_c        ntfs                umask=0,ro                0        0
/dev/hdb1        /mnt/win_e        vfat                umask=0                        0        0


linus johann 01-31-2005 03:23 AM

yaikkss!! now im in trouble!! i couldnt boot to linux... how do i edit my fstab file in repair mode??? i tried it but it says that it's a read-only file... can't overwrite the fstab file using vi...

oh my!! after all the hard work of configuring my squid and samba, and installing the video driver....HUMMPPHH!!! ARRRGhh!!!

pls help !!! (im using windows XP right now as i type this)

RomanG 01-31-2005 03:30 AM

Step by step, what did you do?

linus johann 01-31-2005 04:02 AM

i used this (added the last line): then i rebooted my pc.... i think i even added a umask option

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb3 swap swap 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
/dev/hda5 /mnt / vfat defaults 0 0


how do i make the fstab file writable (not read-only)... so that i can restore the original config

linus johann 01-31-2005 04:06 AM

how do i create the directories??? where??

RomanG 01-31-2005 04:20 AM

Creating directories:
this command changes your current directory to that you want (/mnt)
cd /mnt
this one creates directory
mkdir win_d

There is a very good help for every command in linux, just type man yourcommand.
press space for continue and 'q' to exit.

RomanG 01-31-2005 05:37 AM

To make fstab writable run
chmod o+w /etc/fstab
this will make fstab writable for owner of this file, i.e. for root.
You must be root (superuser) to edit this file.


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