LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial 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 02-17-2002, 09:08 PM   #1
desbyleo
Member
 
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 81

Rep: Reputation: 15
Mounting mounting extended partition and its Logical drives


I have installed linux in dual boot box (win98) in its own hard disk (40GB). I initially partitioned 5GB for Linux and 130MB for swap when I installed Linux.

Now, I have created an extended partition for the remaining space and created 3 logical partition in it (each about 5GB each). I am studying Oracle and I want to simulate having multiple disk controllers/mount points (just in case you were wondering why I want to do this).

I have tried mounting the new partition using:
mount -t ext2 /dev/hdc3 /u01

But i get this:
mount: wrong fs type, bad option, bad superblock on /dev/hdc3,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)

The last line makes sence to me, but I don't know how to mount an extended partition and its logical partition.

FYI: hdc1 would be my root partition (where Linux is installed), and hdc2 would be my linux swap, although I can't really confirm this since I don't know how to display a partition table yet.

Could someone help. I've searched the forum for anything related to "extended partition" and got nothing related to mounting them. Non of my books even cover extended partition in linux.
 
Old 02-17-2002, 09:29 PM   #2
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Have you created a file system on the partitions? If not use "mkfs -f ext2 /dev/hdxx" to create it. This is the counterpart of a dos format x:.
 
Old 02-17-2002, 09:33 PM   #3
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Also, if /dev/hdc3 is the extended partition, you should not mount it directly. The logical partitions inside the exetended partition are the ones you should be mounting.
 
Old 02-17-2002, 09:48 PM   #4
desbyleo
Member
 
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 81

Original Poster
Rep: Reputation: 15
Yes, the logical partition are formatted (ext2).

Quote:
Originally posted by Malicious
Also, if /dev/hdc3 is the extended partition, you should not mount it directly. The logical partitions inside the exetended partition are the ones you should be mounting.
I was already wondering about that when I frst thought I have to mount the extended partition.

So having said that, whats the mount command to mount logical partition (of type ext2)?

I noticed that hdc1 is the root partition (primary); hdc2 is the swap (primary); and NOW, hdc3 is the extended....

If the extended is known as hdc3, what do I refer to the first logical partition in the extended partition?
 
Old 02-17-2002, 10:05 PM   #5
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Do "fdisk /dev/hdc".

This will list all of the partitions on hdc. You should be able to determine the logical partitions that are inside the exended partion by looking at the begin/end addresses, if I remember correctly. I don't have any system handy that has exetended partitions and I can't remember exacly how the fdisk display looks. For each of the logical partitions, you must do a mkfs and then you can mount each one. Oracle will love it.
 
Old 02-17-2002, 10:08 PM   #6
desbyleo
Member
 
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 81

Original Poster
Rep: Reputation: 15
malacious...
Got IT! Thanks for the effort. Turns out this was really a silly question. I run into some info regarding fdisk in Linux. So I ran that so that I could finally see how things were being situated in the hard disk. Well turns out hdc3 is the extended partition...which we knew, but the logical partition continued at hdc5. I guess it just keeps going with the hdc scheme (I thougt may be since its logical partitions it would have a different label, I guess not). But it does skips hdc4 (may be you could tell me why, or may be thats just how it deals with separating the extended partition from the actual logical partition, could you confirm that).

Anyhow, I guess the mount command is the same for logical partition as it is for primary partition: mount -t ext2 /dev/hdcx /mnt_point

I just needed to figure out the right device.

Thanks again, if you have anything you thhink I need to keep in mind, please...I'm all ears....
 
Old 02-17-2002, 10:10 PM   #7
desbyleo
Member
 
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 81

Original Poster
Rep: Reputation: 15
We must have been writing our replies almost simutaniously. Fdisk is exactly what I did before reading your reply and that helped me figured out what device my logical partition were exactly.

Thanks! Wish me luck in Oracle!
 
Old 02-17-2002, 10:17 PM   #8
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
I did a lot of work on Oracle 8i (8.1.5)on Linux. Ellison may be a dip, but he does put out some good product.

Good luck..
 
Old 02-18-2002, 12:01 AM   #9
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
The partition numbers 1-4 are used to designate either primary or extended partitions. The numbers 5 and up designate logical partitions. That's why 4 was not used for a logical partition.
 
Old 02-18-2002, 02:29 PM   #10
desbyleo
Member
 
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 81

Original Poster
Rep: Reputation: 15
That makes sense...

Because hard disk can only have up to 4 primary partition, it only make sence that logical partition start with 5. I hope my logic is right on that one....
 
Old 02-18-2002, 03:13 PM   #11
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Absolutely correct. That little tidbit slipped my mind; senior moment, senility, whatever. I mostly use smaller sized disks (lucked into a closeout on 4G and 10G drives and have a closet full) and don't usually have extended partitions or dual boots.
 
  


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
Mounting Extended Partition damica Linux - Hardware 2 01-15-2004 09:02 AM
Mounting extended windows partition silkmaze Linux - Newbie 5 08-20-2003 06:18 AM
Mounting Extended XP Partition silkmaze Linux - General 4 08-20-2003 06:03 AM
Mounting a logical partition... J_Bone Linux - Newbie 11 08-17-2003 07:35 PM
mounting a extended partition ntfs CleonII Linux - General 3 05-17-2003 10:02 PM


All times are GMT -5. The time now is 11:38 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