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 02-10-2011, 10:04 PM   #1
stealth13
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Rep: Reputation: 0
Creating mounts and having them stay on boot up


how would i use LVM to add these mounts for example?

/users 250mb --ext4
/apps 400mb -xfs
/games 500mb -ext2

thanks
 
Old 02-10-2011, 10:14 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz!

To create the filesystems....
Code:
lvcreate --size 250m --name /users /dev/vg# && mkfs.ext4 -m0 -L users /dev/vg#/users
To mount it up
Code:
mkdir /users && mount /dev/vg#/users /mnt/users
To make it mount-up upon boot-up
Code:
printf "/dev/vg#/users  /mnt/scr1  ext4  defaults  1 2
Note: This assumes you're running Linux, and you will have to substitute "vg#" with the name of your volume group.

If this post (or any other) is helpful, click "Yes" on the bottom right-corner of this post. If this post (or any other) also solves your problem, click "Thread Tools" at the top of the page and mark this as "[SOLVED]".
 
Old 02-10-2011, 10:24 PM   #3
stealth13
LQ Newbie
 
Registered: Feb 2011
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by xeleema View Post
Greetingz!

To create the filesystems....
Code:
lvcreate --size 250m --name /users /dev/vg# && mkfs.ext4 -m0 -L users /dev/vg#/users
To mount it up
Code:
mkdir /users && mount /dev/vg#/users /mnt/users
To make it mount-up upon boot-up
Code:
printf "/dev/vg#/users  /mnt/scr1  ext4  defaults  1 2
Note: This assumes you're running Linux, and you will have to substitute "vg#" with the name of your volume group.

If this post (or any other) is helpful, click "Yes" on the bottom right-corner of this post. If this post (or any other) also solves your problem, click "Thread Tools" at the top of the page and mark this as "[SOLVED]".
It is saying volume group not found, how do i create a volume group?
 
Old 02-10-2011, 11:01 PM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Ah, you need to start from the beginning.


1) Create a Physical Volume from either a whole hard drive, a partition, or a metadevice.
pvcreate --uuid 000000-0000-0000-0000-0000-0000-000000 --verbose /dev/sd##
2) Create a Volume Group that contains the Physical Volume(s).
vgcreate --physicalextentsize 32M --verbose vgname /dev/sd##
3) Then create the logical volumes as I outlined earier.

Read my blog post here, because it sounds like you have much googling to do.
(If this is the first time you've done something like this, then it would be a really good idea for you to read-up on LVM & RAID in Linux)


If this post (or any other) is helpful, click "Yes" on the bottom right-corner of this post. If this post (or any other) also solves your problem, click "Thread Tools" at the top of the page and mark this as "[SOLVED]".
 
  


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
Why are all my fstab mounts not mounting on boot? lhughes08 Linux - Newbie 1 04-07-2008 10:26 AM
Create NFS Mounts at boot time rwalkerphl Linux - Newbie 1 11-17-2004 02:59 AM
fstab to define mounts on boot PhiMati Fedora 1 06-18-2004 05:29 PM
The mounts don't stay! ch4s3r Linux - Software 25 05-21-2004 09:07 AM
RH9 /proc/mounts boot failure!! calabash Linux - Newbie 6 02-17-2004 06:42 PM


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