LinuxQuestions.org
Visit Jeremy's Blog.
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-11-2013, 02:39 PM   #1
n612ua
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
Mount Partitions


Hello, I am new to Linux. I am taking a intro to Linux class and have a few problems. I am using Fedora 17 virtually using vMWare 9. I have to do everything in the command lines.

First part I had to create two partitions sdb1 and sdb2. I created those and formatted them using mkfs.ext4. The screenshot bellow shows the partitions.

http://i950.photobucket.com/albums/a...ps5f9ad826.png

I think I did that right. The next part is mounting.

This is where I am stuck.

2. To make the partitions available, they must each be mounted on a directory in the filesystem. Create two directories in the /mnt directory, one called drv1, the other drv2.
3. Mount /dev/sdb1 to the drv1 directory.
4. Mount /dev/sdb2 to the drv2 directory.

I did make the two directories drv1 and drv2. I changed directories to mount and typed mkdir drv1 then typed mkdir drv2. After I did that I typed ls and they showed up. The actual mounting of sdb1 to the drv1 directory and sdb2 to the drv2 is where I'm having problems.

Any help with this would be great.

Thanks Mike
 
Old 10-12-2013, 03:45 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
The order in which you do things seems to be correct:

1 - create partition(s),
2 - create a file-system on partition(s),
3 - create mount point(s),
4 - mount partition(s),
5 - (possibly) automate the mount action using /etc/fstab.

All the above actions should be done by a privileged user (root).

You don't mention what you have tried and what did not work when trying to mount the partitions. Step 4 uses the mount command, which in general uses the following form:
Code:
mount <type> <device_name> <mount_point>
In most cases mount can "guess" the type and you don't have to use it. Do have a look at the mount manual page.

The above looks a bit like homework so I'm going to let you have another go at it yourself. If you run into anything specific that doesn't seem to work we'll be willing to help.
 
Old 10-12-2013, 01:27 PM   #3
n612ua
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you druuna. You are correct it is homework. That one problem had me stuck most of yesterday. I did figure out what I did wrong. I missed a space between mount /dev and the mnt before drv1. So mount /dev /mnt/drv1
 
Old 10-12-2013, 01:49 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Also be aware .

Fedora 17 is a DEAD and UNSUPPORTED version .
there are and NEVER will be any updates,security fixes, no nothing .
it is past it's End Of Life .

fedora is currently only supporting Fedora 18 and 19
with support for 18 ending SOON
30 days after fedora 20 is released
 
Old 10-12-2013, 08:58 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,152
Blog Entries: 14

Rep: Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081Reputation: 3081
I think you will find this tutorial on fstab helpful.

http://www.tuxfiles.org/linuxhelp/fstab.html
 
  


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
Mount hangs while trying to mount luks partitions after upgrade to 12.2 MeatPuppet Slackware 5 03-08-2009 07:57 AM
how to mount all the partitions decodedthought Fedora 14 01-21-2009 08:44 AM
Can't mount partitions from HDA, But will mount partitions from HDB Colonel-1990 Linux - Hardware 13 08-09-2008 09:59 AM
mount directories of partitions, not partitions possible? kpachopoulos Linux - General 9 09-02-2007 07:25 PM
How to mount partitions s26c.sayan Zenwalk 3 04-12-2007 09:54 PM


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

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