LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 08-05-2001, 03:49 PM   #1
Aphrodisiac
LQ Newbie
 
Registered: Aug 2001
Posts: 11

Rep: Reputation: 0
howto mount extended fat32 parition


I'm having problems mounting an exteneded fat32 partition

I successfully mounted the logic (drive c with the following command

mount -l /dev/hda1 /opt

so then I thought ok, drive d,e, or f should work with

mount -l /dev/hda2 /opt
mount -l /dev/hda3 /opt
mount -l /dev/hda4 /opt

but they didn't I got an error message

so then I tried

mount -t ext2 /dev/hda2 /opt
mount -t msdos /dev/hda2 /opt

and to still no avail

so I reffered to the internal documentation

man mount

and read it. and I just dont understand (or rather decypher what I need from it)

If there is any other way (easier or whatnot) please point it out to me.

I also took a look at automounting, it looked intresting but I didn't understand it either

Thanks

-John-e
 
Old 08-05-2001, 03:56 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Code:
# mount -t vfat /dev/hda# /mnt/windows
Where the # after hda is the number of the you know.. hda2, hda3.. etc. The /mnt/windows is the directory you would need to mount it to for it to be able to read from. If you don't have that directory, just create it. Also you can edit your fstab so it automatically mounts these drives upon bootup.. so you don't have to do this every time.
 
Old 08-05-2001, 05:06 PM   #3
Aphrodisiac
LQ Newbie
 
Registered: Aug 2001
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks but I seem to have the same problem

the error:

# mount -t vfat /dev/hda2 /mnt/windows
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)

and yes I did create the directory "windows" in the dir /mnt

BTW, I'm using the terminal as root just to see if it works, I hope that doesn't affect me
 
Old 08-05-2001, 09:14 PM   #4
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mandriva 2010.2 x86_64
Posts: 186

Rep: Reputation: 33
I'm guessing....

that you can't mount an extended partition, like the error message says. If you do:

# fdisk -l /dev/hda

and you get something like:

Device Boot Start End Blocks Id System
/dev/hda1 * 1 319 2562336 b Win95 FAT32
/dev/hda2 336 1245 7309575 f Win95 Ext'd
(LBA)
/dev/hda3 320 335 128520 82 Linux swap
/dev/hda5 336 398 506016 83 Linux
/dev/hda6 734 1010 2224971 b Win95 FAT32
/dev/hda7 1011 1245 1887606 83 Linux
/dev/hda8 399 733 2690856 83 Linux

you can see that /dev/hda2 is an extended partition that encompasses hda5,6,7, and 8. You can mount /dev/hda5,6,7, or 8. Not hda2.
 
Old 08-05-2001, 10:24 PM   #5
Aphrodisiac
LQ Newbie
 
Registered: Aug 2001
Posts: 11

Original Poster
Rep: Reputation: 0
AW!! thats dirty!!!

heh

That really sucks if thats true

that would explain alot though...

Did you manage to get hda6 mounted? as you listed it was win95 fat32

because I can't get any of my extended partitions to mount

(my drive is one big 30 giger split 4 ways + linux partitions)
 
Old 08-05-2001, 10:48 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You can't mount extended partitions. Only primary and logical partitions. Primary and extended partitions are numbered 1-4. Logical partitions are numbered 5-15. An extended partition holds logical partitions. Think of it as a folder that holds the logical partitions.

Run the command fdisk -l /dev/hda like rolf suggested and post a copy of it.
 
Old 08-05-2001, 11:19 PM   #7
Aphrodisiac
LQ Newbie
 
Registered: Aug 2001
Posts: 11

Original Poster
Rep: Reputation: 0
Hrm well that solved the mystery thanks for everything

Device Boot Start End Blocks Id System
/dev/hda1 * 1 383 3076416 b Win95 FAT32
/dev/hda2 384 3739 26957070 f Win95 Ext'd (LBA)
/dev/hda5 384 766 3076416 b Win95 FAT32
/dev/hda6 1277 2485 9711261 b Win95 FAT32
/dev/hda7 2486 3739 10072723+ b Win95 FAT32
/dev/hda8 767 773 56196 83 Linux
/dev/hda9 774 1197 3405748+ 83 Linux
/dev/hda10 1198 1230 265041 82 Linux swap

Do wish I could mount that Ext'd(LBA)
oh well

Thanks again everyone
 
Old 08-06-2001, 10:06 PM   #8
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mandriva 2010.2 x86_64
Posts: 186

Rep: Reputation: 33
Thinking...

you didn't quite get the picture.

As linuxcool says, the extended partition is like a folder that holds logical partitions; it's a bookkeeping mechanism for the partition table. You only need to mount the logical partitions and primary partitions to access all your data.

To answer your question, yes, my hda6, a second windows 98 partition, is mounted on /mnt/win_d, as Mandrake set it up when I installed Mandrake 8 after Windows existed.

Here is my /etc/fstab:

/dev/hda5 / reiserfs notail 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda7 /home reiserfs defaults 1 2
/dev/hdb1 /mnt/7.2 ext2 defaults,noauto 1 2
/dev/hdb6 /mnt/7.2home ext2 defaults,noauto 1 2
/dev/hdb7 /mnt/7.2usr ext2 defaults,noauto 1 2
/dev/cdrom /mnt/cdrom iso9660 ro,nosuid,noauto,exec,user,nodev 0 0
/dev/cdrom2 /mnt/cdrom2 iso9660 ro,nosuid,noauto,exec,user,nodev 0 0
/dev/fd0 /mnt/floppy vfat sync,nosuid,noauto,user,nodev,unhide 0 0
/dev/hda1 /mnt/win_c vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0 0
/dev/hda6 /mnt/win_d vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0 0
none /proc proc defaults 0 0
/dev/hda8 /usr reiserfs defaults 1 2
/dev/hda3 swap swap defaults 0 0
/dev/hdb5 swap swap defaults 0 0

What I did, when I wanted to add entries, was to copy the form of the other entries that were already in there. See also man fstab, man mount, man * If you go to editting fstab, be careful, as doing it wrong can make it not boot. Take a look at this other thread where I went into it a little:

http://www.linuxquestions.org/questi...&threadid=5107

Good luck.
 
Old 08-07-2001, 04:35 PM   #9
Aphrodisiac
LQ Newbie
 
Registered: Aug 2001
Posts: 11

Original Poster
Rep: Reputation: 0
Yeah I did misunderstand I was relating back to my Fdisk expereiences and trying to remember what everything was. For some reason I always get confused about it all.

I keep thinking
Logical is the main one
extended are the partitions. And of course I was wrong. Now I understand the extended is like a folder metaphor

thanks again everyone
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to format to FAT32, and how to mount my FAT32 partition. bonniehandi Linux - Newbie 16 03-05-2006 07:54 PM
mount NTFS parition? leduytien Linux - Newbie 2 10-17-2004 09:18 PM
can REDHAT 9.0 mount NTFS parition real_shock Linux - Software 1 07-16-2004 06:09 PM
How to create an extended parition/logical drive the windows can use? uveraser General 7 06-29-2004 06:03 AM
error mounting fat32 parition under linux -- help! testsubject Linux - Hardware 3 03-05-2004 07:46 PM


All times are GMT -5. The time now is 02:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration