LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mounting fat32 partitions --- getting the device number ? (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-fat32-partitions-getting-the-device-number-89842/)

xconspirisist 09-06-2003 07:36 AM

mounting fat32 partitions --- getting the device number ?
 
I'm trying to mount a windows fat 32 partition into redhat 9.0 linux.

via terminal :

cd ..

cd ..

cd mnt

su

[ enter password ]

mkdir linwin

clear

chmod 777 linwin

mount /dev/hda3/ linwin -t vfat

then I get :

mount: wrong fs type, bad option, bad superblock on /dev/hda3,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)

I dont know if hda 3 is the right ' device name ', though. My file system goes like this :

hda
windows primary disk

extended

fat32 hdd - this is the hdd I want to share

/boot

/swap

ntfs - a windows hdd for storing media

/

as the fat32 hdd is the one I want to share, and its the 3rd in the list, I presume it is hda3 ? or am I wrong? Please help !!

questionasker 09-06-2003 08:49 AM

not always is it third in list.
when you say "fat32 hdd..." did you mean harddrive, or hard drive, partition d (4)?
dont quote me on this, but i dont think linux can read win fat32.
wait for more knowledgable replies.

Mathieu 09-06-2003 10:16 AM

Quote:

dont quote me on this, but i dont think linux can read win fat32.
questionasker, you have just been quoted. :D
Linux is able to read and write to a FAT32 partition.

technowax, you are most likely trying to mount the wrong partition.
To display the partition tables, type:
Code:

fdisk -l

bubble 09-06-2003 10:38 AM

mounting the parion
 
Well as Mathieu mention type fdisk -l and get down the partion list including the partion number. (Eg: hda3) then create a folder in the /mnt like winlin u mention. Next goto the terminal log in as root and type as follows assuming your windows partion is hda3,
mount /dev/hda3 /mnt/winlin

* Even though most mention to let know the partion type i didn't do it but redhat 9.0 doesn't care abt it it'll mount the drive.

In the mean time my biggest prob is how to edit the dstab file so i don't have to mount hte partion everytime when ever i need it. I heard if we modify that file those partion will be mounted automatically whenever the machine starts. If someone have an idea hwo to do this pls let me know.


**I hope technowax can some help from my above post.

Mathieu 09-06-2003 11:14 AM

bubble, you will need to modify /etc/fstab
There are many threads related to this subject, perform a search on LQ.
http://www.linuxquestions.org/questi...threadid=89196
http://www.linuxquestions.org/questi...threadid=87656

xconspirisist 09-07-2003 10:09 AM

lamo :

[root@localhost xconspirisist]# fdisk -l
bash: fdisk: command not found


any idea's ?

Mathieu 09-07-2003 11:19 AM

Since you are using the su command, type the following in order to get all available paths:
Code:

su -
However, you can always type the full path for fdisk
Code:

/sbin/fdisk -l


All times are GMT -5. The time now is 12:16 AM.