LinuxQuestions.org
Review your favorite Linux distribution.
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 03-10-2013, 11:48 AM   #1
n0rd1c
LQ Newbie
 
Registered: Mar 2013
Location: Chattanooga, TN
Distribution: backtrack, backbox, fedora
Posts: 3

Rep: Reputation: 0
How to manage partitions and mount points?


i think i have this same class in this semester as the OP. i have however tried and seem to be stuck. i am thinking this so far

/dev/sda1 - has the 90gb ext4 on it
/dev/sda2 - has the 4gb swap
/dev/sda3 - has the 200gb database on it
/dev/sda4 - has the 500gb user files in home dir with ext4

i am unsure as to where to mount them. is there a specific spot after the / dir that i should mount these? this is the 5th chapter in the book so we haven't gone that deep yet. i am guessing the etc/fstab for startup would look something like this...

/dev/sda1 / ext4 default 1 1
/dev/sda2 swap swap default 1 1
/dev/sda3 /database reiserfs default 1 1
/dev/sda4 /home ext4 default 1 1

is there some cli cmd that i can use to mount all the users at once or does the /home mount cmd in fstab do that for me?
 
Old 03-10-2013, 12:16 PM   #2
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 592

Rep: Reputation: 140Reputation: 140
Quote:
Is there some cli cmd that i can use to mount all the users at once or does the /home mount cmd in fstab do that for me?
The home directories of the users are on the home partition so adding home in fstab is enough.
To limit the users to 5GB you have to use a form of quota.
And to prevent downtime as a result of a harddisk failure you might use some form of raid.
So first determine which form of raid do you want.
Then determine space needed and quota's and partitions.
Then determine commands to accomplish this.
 
Old 03-10-2013, 01:00 PM   #3
n0rd1c
LQ Newbie
 
Registered: Mar 2013
Location: Chattanooga, TN
Distribution: backtrack, backbox, fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by whizje View Post
The home directories of the users are on the home partition so adding home in fstab is enough.
To limit the users to 5GB you have to use a form of quota.
And to prevent downtime as a result of a harddisk failure you might use some form of raid.
So first determine which form of raid do you want.
Then determine space needed and quota's and partitions.
Then determine commands to accomplish this.

we arent allowed to use raid config b/c we dont learn about that till next chapter. sorry..i should have addressed the quota thing but i know how to do that but should have stated. sorry again.

i know i need 794 GB of HD space. i would add the aquota.user and aquota.group and then type edquota and use vi to edit the file so the hard limit for each user to 5GB. as far as the entry into etc/fstab would it just be:

/dev/sda4 /home ext4 defaults usrquota, grpquota 1 1 ??
 
Old 03-10-2013, 07:16 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,371

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
For swap the last 2 nums should be '0 0'; you don't fsck or dump a swap partition.
The boot process will (attempt to ) mount all entries in fstab; no need to code that yourself.
Couple of useful cmds
Code:
fdisk -l   # lowercase L

df -hT
Also, tell us what distro this is for
Code:
uname -a

cat /etc/*release*
Useful link
http://rute.2038bug.com/index.html.gz
 
Old 03-11-2013, 03:28 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,697

Rep: Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261
Quote:
Originally Posted by n0rd1c View Post
we arent allowed to use raid config b/c we dont learn about that till next chapter. sorry..i should have addressed the quota thing but i know how to do that but should have stated. sorry again.

i know i need 794 GB of HD space. i would add the aquota.user and aquota.group and then type edquota and use vi to edit the file so the hard limit for each user to 5GB. as far as the entry into etc/fstab would it just be:

/dev/sda4 /home ext4 defaults usrquota, grpquota 1 1 ??
typo in that fstab entry. there are only six fields, but with the spaces you have there are 8.

The option field should be "defaults,usrquota,grpquota"
 
Old 03-13-2013, 09:22 PM   #6
n0rd1c
LQ Newbie
 
Registered: Mar 2013
Location: Chattanooga, TN
Distribution: backtrack, backbox, fedora
Posts: 3

Original Poster
Rep: Reputation: 0
chris....this is for a linux intro class and we are using fedora 15.

jpollard....thanks but i was typing it like that so it could be easily read. i will shore it up before i turn it in to the professor. thanks in advance.. glad to know i am making strides into the world of linux.
 
Old 03-14-2013, 02:53 AM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,553
Blog Entries: 10

Rep: Reputation: Disabled
Quote:
is there a specific spot after the / dir that i should mount these?
At the end of the partition.

Learned this the hard way and had to install Debian twice because by mounting at the 'beginning' the distro only gave me grub rescue mode.
 
Old 03-14-2013, 07:23 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,371

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
Just be aware that Fedora is on v18, with 19 due out in a few mths: https://en.wikipedia.org/wiki/Fedora...ting_system%29 .
Be careful if you try to update it...
 
Old 03-14-2013, 10:55 AM   #9
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,440

Rep: Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508
Quote:
Originally Posted by jpollard View Post
The option field should be "defaults,usrquota,grpquota"
Minor note: "defaults" is just a syntactic placeholder that's needed when you have no other options you want to specify in field 4. Its presence in combination with other options is harmless, but does nothing.
 
Old 03-14-2013, 08:15 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,553
Blog Entries: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Just be aware that Fedora is on v18, with 19 due out in a few mths: https://en.wikipedia.org/wiki/Fedora...ting_system%29 .
Be careful if you try to update it...
Thanks Chris

Going to install FC 18 in a few days.
I wait a while to allow the Developers to get the bugs out-
 
Old 03-14-2013, 08:27 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,285
Blog Entries: 16

Rep: Reputation: 3132Reputation: 3132Reputation: 3132Reputation: 3132Reputation: 3132Reputation: 3132Reputation: 3132Reputation: 3132Reputation: 3132Reputation: 3132Reputation: 3132
This is one of the best written fstab tutorials I have found. I keep returning to it when I have fstab questions. Maybe it will help:

http://www.tuxfiles.org/linuxhelp/fstab.html
 
Old 03-15-2013, 01:35 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,371

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
Quote:
I wait a while to allow the Developers to get the bugs out-
If you're in a class & they are using Fedora, you don't really have a choice I suppose, BUT you should know that Fedora is effectively RedHat's R&D distro and not prod stable (which is why they don't support it).
Not a biggie, but just FYI ...
For a real prod system I'd either pay for RHEL (inc support), or get the Centos equiv (a free RHEL rebuild; no paid support).
See the wikipedia articles on those 3 ...
 
Old 03-15-2013, 05:20 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,553
Blog Entries: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
If you're in a class & they are using Fedora, you don't really have a choice I suppose, BUT you should know that Fedora is effectively RedHat's R&D distro and not prod stable (which is why they don't support it).
Not a biggie, but just FYI ...
For a real prod system I'd either pay for RHEL (inc support), or get the Centos equiv (a free RHEL rebuild; no paid support).
See the wikipedia articles on those 3 ...
No, not in a class. If I were; your right on the no choice:-
Being that Fedora is indeed R&D for Red Hat this is going to be the last time I'm installing Fedora.
I already burned the ISO to DVD/CD so I might as well enjoy it-
I am looking at Centos and Slackware trying to decide what distro I permanently want for a while-
Thanks and have a good weekend!
 
  


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
[SOLVED] NTFS partitions multiple mount points? arashi256 Linux - Newbie 4 06-25-2012 03:56 AM
Sequence of partitions / mount points Swift100 Linux - Newbie 10 03-01-2011 05:04 PM
mount points for partitions cch2cch Linux - Newbie 1 08-03-2005 12:55 PM
mount points, /home partitions, /etc/fstab's and booting bigjohn Linux - Newbie 4 11-16-2004 10:14 AM
Mount points - Partitions - etc... Vaugerant Linux - Newbie 7 02-06-2001 02:44 AM


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