Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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:
Quote:
Originally Posted by yegnal
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.