Mounting filesystems

Asked by Jon Charge on 2009-02-15

I have created a few partitions with the ext3 filesystems. I want to use one to store system logs. Is this possible? Would I need it mounted very first thing during boot? Also how would I accomplish the mounting as early as possible?

Thank you in advance for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
juancarlospaco
Solved:
2009-02-15
Last query:
2009-02-15
Last reply:
2009-02-15

((I want to use one to store system logs. Is this possible?))
Is posible, not for begginers but possible.

((Would I need it mounted very first thing during boot?))
Mount it normally

((Also how would I accomplish the mounting as early as possible?))
Simple put it on the FSTAB

sudo cp --verbose /etc/fstab /etc/fstab.backup ; sudo gedit /etc/fstab

Jim Hutchinson (jphutch) said : #2

Basically, you will want to edit /etc/fstab.

https://help.ubuntu.com/community/Fstab

Jon Charge (seropith) said : #3

Ok... in the fstab I'll place the mounting instructions. If I want it to map to /logs I'll need to manually create that first. When I place it in fstab it will mount automatically on boot. Do I have that correct, and thank you for your time.

The fstab entry will look like
/dev/sda6 /logs ext3 defaults 0 2
?

Thank you again for your help and time.

Jim Hutchinson (jphutch) said : #4

You will probably mount logs to

/media/logs

or

/mnt/logs

but that is basically correct. You will have to make the dirs first though

sudo mkdir /media/logs

for example.

Jon Charge (seropith) said : #5

Thanks juancarlospaco, that solved my question.

Jon Charge (seropith) said : #6

And Jim