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.
|
|
|
01-30-2005, 11:54 PM
|
#1
|
Member
Registered: Jan 2005
Location: philippines
Distribution: rh 9
Posts: 71
Rep:
|
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!!
|
|
|
01-31-2005, 12:28 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524
Rep:
|
> 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
|
|
|
01-31-2005, 12:46 AM
|
#3
|
Member
Registered: Jan 2005
Location: Russia, Kazan
Distribution: Mandrake 10.2, RedHat sometimes..
Posts: 110
Rep:
|
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.
|
|
|
01-31-2005, 01:27 AM
|
#4
|
Member
Registered: Jan 2005
Location: philippines
Distribution: rh 9
Posts: 71
Original Poster
Rep:
|
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???
|
|
|
01-31-2005, 01:38 AM
|
#5
|
Member
Registered: Jan 2005
Location: Russia, Kazan
Distribution: Mandrake 10.2, RedHat sometimes..
Posts: 110
Rep:
|
See my previous message and also I want to see what shows to you command fdisk -l.
|
|
|
01-31-2005, 02:03 AM
|
#6
|
Member
Registered: Jan 2005
Location: philippines
Distribution: rh 9
Posts: 71
Original Poster
Rep:
|
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
|
|
|
01-31-2005, 02:05 AM
|
#7
|
Member
Registered: Jan 2005
Location: philippines
Distribution: rh 9
Posts: 71
Original Poster
Rep:
|
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
|
|
|
01-31-2005, 02:23 AM
|
#8
|
Member
Registered: Jan 2005
Location: Ha Noi, Viet Nam
Distribution: Fedora Core
Posts: 61
Rep:
|
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
Last edited by lomnhom; 01-31-2005 at 02:56 AM.
|
|
|
01-31-2005, 02:52 AM
|
#9
|
Member
Registered: Jan 2005
Location: Russia, Kazan
Distribution: Mandrake 10.2, RedHat sometimes..
Posts: 110
Rep:
|
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
Last edited by RomanG; 01-31-2005 at 03:03 AM.
|
|
|
01-31-2005, 03:23 AM
|
#10
|
Member
Registered: Jan 2005
Location: philippines
Distribution: rh 9
Posts: 71
Original Poster
Rep:
|
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)
|
|
|
01-31-2005, 03:30 AM
|
#11
|
Member
Registered: Jan 2005
Location: Russia, Kazan
Distribution: Mandrake 10.2, RedHat sometimes..
Posts: 110
Rep:
|
Step by step, what did you do?
|
|
|
01-31-2005, 04:02 AM
|
#12
|
Member
Registered: Jan 2005
Location: philippines
Distribution: rh 9
Posts: 71
Original Poster
Rep:
|
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
|
|
|
01-31-2005, 04:06 AM
|
#13
|
Member
Registered: Jan 2005
Location: philippines
Distribution: rh 9
Posts: 71
Original Poster
Rep:
|
how do i create the directories??? where??
|
|
|
01-31-2005, 04:20 AM
|
#14
|
Member
Registered: Jan 2005
Location: Russia, Kazan
Distribution: Mandrake 10.2, RedHat sometimes..
Posts: 110
Rep:
|
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.
|
|
|
01-31-2005, 05:37 AM
|
#15
|
Member
Registered: Jan 2005
Location: Russia, Kazan
Distribution: Mandrake 10.2, RedHat sometimes..
Posts: 110
Rep:
|
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 02:14 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
|
|