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 09-26-2013, 04:08 AM   #1
shubhamuddu
LQ Newbie
 
Registered: Jun 2012
Posts: 24

Rep: Reputation: Disabled
Mount Partitions Created in linux


Hi

I have installed Linux software to install database software.
When i issue df -h command can only see 4 file systems say
/dev/mapper/vg_cluster_lv_root mounted on / has more space
tmpfs is on /dev/sdb
/dev/sda1 on /boot
/dev/mapper/vg_cluster_lv_home on /home

So created partitions of /dev/mapper/vg_cluster_lv_root using fdisk as
/dev/mapper/vg_cluster_lv_rootp1
/dev/mapper/vg_cluster_lv_rootp2
/dev/mapper/vg_cluster_lv_rootp3

is the partition table and will not be shown in df -h.

Please tell us how to mount them to install database software.

Thanks
 
Old 09-26-2013, 06:02 AM   #2
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Rep: Reputation: 49
Mounting these partitions is a two step process:

First step is making sure that they have a filesystem on them. I am not sure what filesystem you are wishing to use (ext3, ext4, zfs, etc). This really depend on your needs and the database software vendor (if there is one) will be able to tell you exactly what filesystem type you should use.

To create an ext3 filesystem which will likely be your best bet you would run the following command as root

mkfs -t ext3 /dev/mapper/vg_cluster_lv_rootp1

You will want to run this for each new partition that you created and this will put the ext3 filesystem on these partitions.

Next you will want to create the directory where you plan to mount these:

mkdir /data
mkdir /data1
mkdir /data2

These are just examples -- choose whereever you want to mount these and obviously skip this step if you already know where you want these new partitions mounted.

Now you will mount using the mount command, again as root.

mount [your-partition] [mount-point]

example:

mount /dev/mapper/vg_cluster_lv_rootp1 /date

To ensure that these auto-mount when you restart your system you need to add these mount points to your /etc/fstab file. Again open this file as root using your favorite text editor

Add lines for ach of your new mount points

Example:

/dev/mapper/vg_cluster_lv_rootp1 /data ext3 defaults 0 0

This should get your going, the filesystem or fstab options may vary based on your needs.
 
  


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
created 2 partitions in 1TB extrnal hdd. mazhar07 Linux - Newbie 3 04-01-2011 02:35 AM
Can't mount partitions from HDA, But will mount partitions from HDB Colonel-1990 Linux - Hardware 13 08-09-2008 09:59 AM
Mandriva One installation failed but created new partitions. kottke_fan Mandriva 3 09-27-2006 02:02 AM
mount freeBSD partitions under linux cccc Linux - General 1 08-07-2005 03:47 PM
Accessing newly created partitions cragwolf Slackware 5 09-13-2004 08:19 PM


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