LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-06-2005, 01:12 PM   #1
pgsmith
LQ Newbie
 
Registered: Sep 2005
Posts: 12

Rep: Reputation: 0
creating a directory in unmounted partition


I am trying to mount a partition and I now understant that there needs to be a directory in that partition to mount to I have the partition formatted to ext3 and am now trying to figure out how to put a mount directory on it

thanks in advance for your help
 
Old 09-06-2005, 01:21 PM   #2
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
mkdir /mnt/whatever should do the job then make and entry in your fstab. plenty of fstab examples on the net
 
Old 09-06-2005, 01:23 PM   #3
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
ehm...

first of, you don't need a directory in a newly created partition to mount it.
you can mount devices too.

e.g. mount /dev/hdc1 /newdrivemap
(/dev/hdc1 is the new partition, wich will be aviable as /newdrivemap on the system)

so to mount your partition on the system, you could initialize the mount command with the correct parameters.
(also you could enter the partition into the fstab, so it will be mounted on boot time.)


cheers,


 
Old 09-06-2005, 02:03 PM   #4
pgsmith
LQ Newbie
 
Registered: Sep 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Dosent work for me all I get is

mount: mount point /hdb5 does not exist
The command Iam using is

mount /dev/hdb5

and when I do a fdisk -l I get this

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4677 37567971 83 Linux
/dev/hda2 4678 4865 1510110 5 Extended
/dev/hda5 4678 4865 1510078+ 82 Linux swap / Solaris

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 2 9729 78140160 f W95 Ext'd (LBA)
/dev/hdb5 2 4866 39078081 83 Linux
/dev/hdb6 4867 9729 39062016 83 Linux

Disk /dev/sda: 517 MB, 517521408 bytes
128 heads, 32 sectors/track, 246 cylinders
Units = cylinders of 4096 * 512 = 2097152 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 247 505375+ 4 FAT16 <32M
Partition 1 has different physical/logical endings:
phys=(249, 127, 32) logical=(246, 98, 31)
 
Old 09-06-2005, 02:15 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Re: creating a directory in unmounted partition

Quote:
Originally posted by pgsmith
I have the partition formatted to ext3 and am now trying to figure out how to put a mount directory on it
You don't "put a mount directory" on a partition you want to mount. What you mean is you want to create a mount point for that partition. That's what teebones meant when he said you don't need a directory on the partition to mount it, because, well.. you don't!

Use the mkdir command to create a mount point, as Boow suggested. So, if you wanted to mount /dev/hdb5 on /hdb5, you'd just do

# mkdir /hdb5
# mount -t ext3 /dev/hdb5 /hdb5
 
Old 09-06-2005, 02:41 PM   #6
pgsmith
LQ Newbie
 
Registered: Sep 2005
Posts: 12

Original Poster
Rep: Reputation: 0
got it thank you
 
Old 09-07-2005, 08:31 PM   #7
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
Re: Re: creating a directory in unmounted partition

Quote:
Originally posted by Nylex
# mkdir /hdb5
# mount -t ext3 /dev/hdb5 /hdb5 [/B]

Seems to me this is simply making another entrypoint for the drive making the partition look like a folder?
 
  


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
Advice on creating new directory satimis Linux From Scratch 4 06-27-2005 09:34 PM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 11:59 AM
Creating a login for a directory Renaxgade Linux - Software 2 10-18-2003 01:16 AM
creating new partition before boot partition?? rose_bud4201 Linux - General 17 02-07-2003 01:25 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM


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