LinuxQuestions.org
Help answer threads with 0 replies.
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 10-12-2004, 09:08 AM   #1
nodnarb
LQ Newbie
 
Registered: Jul 2004
Location: TN, USA
Distribution: Mandrake
Posts: 23

Rep: Reputation: 15
Mounting Partition


I have a 30 gb hard drive with two linux partitions on it. Anyway, I'm already using one partition for Mandrake 10.0, and the other one is empty. Everytime I try to mount the empty partition (even as the root) it says "Permission Denied". Anyone know how to fix this?
 
Old 10-12-2004, 09:10 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Could you post your /etc/fstab file?
 
Old 10-12-2004, 09:13 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Most typical default installs create more then one partition. To see how the drive is partitioned.
(log in as root via su)

fdisk -l /dev/hda (that is a small L, Replace hda with the actual device of the drive)

Post the results. Which partition are you trying to mount?
 
Old 10-12-2004, 09:25 AM   #4
nodnarb
LQ Newbie
 
Registered: Jul 2004
Location: TN, USA
Distribution: Mandrake
Posts: 23

Original Poster
Rep: Reputation: 15
Here's what's in my /etc/fstab:

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdd /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hdb1 /mnt/windows vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
none /proc proc defaults 0 0
none /mnt/hd supermount dev=/dev/ide/host0/bus0/target1/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0

It's a EXT2 patition.

When I tried fdisk -l /dev/hda2/ in the terminal, it just started a new line.
 
Old 10-12-2004, 09:35 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Do not specify the partition ID.
fdisk -l /dev/hda
 
Old 10-12-2004, 09:42 AM   #6
nodnarb
LQ Newbie
 
Registered: Jul 2004
Location: TN, USA
Distribution: Mandrake
Posts: 23

Original Poster
Rep: Reputation: 15
Here it is:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 20310 10236208+ 83 Linux
/dev/hda2 20311 50822 15378048 5 Extended
/dev/hda5 20311 50822 15378016+ 83 Linux
 
Old 10-12-2004, 10:03 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Quote:
Originally posted by nodnarb
Here it is:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 20310 10236208+ 83 Linux
/dev/hda2 20311 50822 15378048 5 Extended
/dev/hda5 20311 50822 15378016+ 83 Linux
hda2 is an extended partition and can not be mounted. In a nut shell it is a container for logical partitions. Any partition >=5 is a logical. In the beginning of drive history one could only create 4 partitions. Since only 4 partitions wasn't enough the extended / logical scheme was developed. The original partitions are now known as primary and have an ID of 1-4.

What you are trying to mount is /dev/hda5.

mount -t ext2 /dev/hda5 /mnt/<where_ever>

You will need to create a directory using the mkdir command prior to mounting the partition.

Last edited by michaelk; 10-12-2004 at 10:04 AM.
 
  


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 Partition DDRfreak2 Mandriva 8 09-10-2005 01:33 PM
Mounting a partition 1veedo Linux - Hardware 6 12-19-2004 07:40 PM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 11:59 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 04:13 PM
Partition mounting Rex_chaos Linux - General 11 09-24-2001 06:35 AM


All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration