LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-16-2009, 07:23 AM   #1
yegnal
LQ Newbie
 
Registered: May 2007
Posts: 10

Rep: Reputation: 0
Mount Point


My distribution creates two partitions..

Root and another which I'm not sure how to set the mount point.

by default the install suggests /var as the secound mount point.

Does the setting of this mount point change which partition my home directory which contains all my documents and such are stored?
 
Old 05-16-2009, 07:26 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I'm not sure I understand what's going on. Are you sure the second partition isn't a swap partition? If it is, it doesn't need to be mounted anywhere and the correct fstab entry for it should be made automatically.

If it isn't a swap partition, then, well, what do you want to use it for?

Edit: it'd help if you included which distribution you're using, as well as what tool you're using to create the partitions.
 
Old 05-16-2009, 08:14 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
yegnal:

It is really vague what you mean in your post. It is better if you rephrase your question, setting out your problem one by one.

Also, please post here what returns from these commands:

$ fdisk -l
$ cat /etc/fstab

you will need to be root to get answers of these commands.

Also post here what is your distro.

Hope it helps.
 
Old 05-16-2009, 08:46 AM   #4
yegnal
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
I'm using Mandriva and when the distro is installed, it creates two partitions plus one swap. Mount point for ROOT is /. It then asks for the mount point of the other partition, default is /usr (my mistake thinking it was /var by default in earlier post).

My concern is that when later versions are released, I install but don't want to loose my documents and such. So when the option during the install comes up of which partitions to format, I can uncheck sda7, and only format sda5.

So I guess I'm just confused as to what effect choosing the mount point effects what directories are written to which partitions.

Example: If I choose the default mount point of /usr for the sda7 partition, are my documents and pictures being written to sda7. Or maybe I need change the mount point during a fresh install to /home to ensure this is the case.



[root@localhost yegnal]# fdisk -l

Disk /dev/sda: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x386bfe1d

Device Boot Start End Blocks Id System
/dev/sda1 1 10199 81923436 7 HPFS/NTFS
/dev/sda2 * 10200 19457 74364885 5 Extended
/dev/sda5 * 10200 15355 41415538+ 83 Linux
/dev/sda6 15356 15864 4088511 82 Linux swap / Solaris
/dev/sda7 15865 19457 28860741 83 Linux




[root@localhost yegnal]# cat /etc/fstab
# Entry for /dev/sdb5 :
UUID=b12f00e8-e667-4e4e-99e5-b0cf0438eaec / ext3 defaults 1 1
/dev/sr1 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/sr0 /media/cdrom2 auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
# Entry for /dev/sdb7 :
UUID=173a63b7-84e4-4bea-b67a-5f069b5825a1 /usr ext3 defaults 1 2
# Entry for /dev/sdb6 :
UUID=65e95828-b7a2-4809-8cd6-5fcc7e3d4e62 swap swap defaults 0 0
 
Old 05-16-2009, 09:48 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
I'm not using Mandriva so I don't know what its default install is. Generally speaking, during an install, most people (new users) just use one partition, root so you should be able to use sda5 for that. Many people create a root and /home partition and put their data on the /home partition so that when they upgrade their system it changes the root partition without affecting their /home partition.
 
Old 05-16-2009, 10:56 AM   #6
yegnal
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Thanka, it cofirms what I suspected. I'll change the mount point and keep my files on sda7

But is that to say only /home files and directories will be on sda7 ?

I'm guessing yes

Thanks
 
Old 05-16-2009, 01:12 PM   #7
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by yegnal View Post
Thanka, it cofirms what I suspected. I'll change the mount point and keep my files on sda7

But is that to say only /home files and directories will be on sda7 ?

I'm guessing yes

Thanks
If you make a separate partition for /home all youŕe personal files and settings are stored on that partition.
But still when youŕe installing a newer version of youŕe distro ,you have to remember not to format /home
So it is always a good practice to backup /home before installing a newer
version.
 
Old 05-16-2009, 02:48 PM   #8
prik420
LQ Newbie
 
Registered: Jun 2008
Posts: 18

Rep: Reputation: 0
no it does not
 
Old 05-17-2009, 01:53 AM   #9
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by prik420 View Post
no it does not
Meaning ?
 
Old 05-17-2009, 11:45 AM   #10
prik420
LQ Newbie
 
Registered: Jun 2008
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by yegnal View Post
My distribution creates two partitions..

Root and another which I'm not sure how to set the mount point.

by default the install suggests /var as the secound mount point.

Does the setting of this mount point change which partition my home directory which contains all my documents and such are stored?
no it does not. simple answer to a simple question.
 
Old 05-17-2009, 12:12 PM   #11
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Quote:
Originally Posted by prik420 View Post
no it does not. simple answer to a simple question.
Helpful?
 
Old 05-17-2009, 02:51 PM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I believe the OP Mandriva has

sda5 is a /boot,
sda6 a swap
sda7 being the /.

Thus /home is a subdirectory of /.
 
  


Reply



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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Make removable USB hdd mount at fixed mount point ctkroeker Linux - General 13 08-11-2009 08:49 AM
puppy+grub saves ram installed mount point as HD install mount point agualust Linux - Newbie 0 04-10-2009 11:23 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 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
Open Source Consulting | Domain Registration