LinuxQuestions.org
Review your favorite Linux distribution.
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 09-01-2014, 09:19 AM   #31
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0

Thank you yancek,

Quote:
Originally Posted by yancek View Post
You "should" be able to install the new system to a / (root) partition and not affect your home.
Oh, that's great then.

Quote:
Originally Posted by yancek View Post
What I meant is that "not formatting" the partition is not the default. . . . . . You "should" be able to install the new system to a / (root) partition and not affect your home. Just make sure you do NOT select to format the partition on which you currently have /home.
How can I achieve this?

I suppose I can set it in the option provided in the live USB installer. By clicking on the '+ Change' a 'Create partition' dialogue box appears where, in the 'use as' menu there is the option 'do not use the partition'. I need to select that if I want to keep my files in the previous/old '/home' parttion, intact. By doing that; the previous/old '/home' parttion will not be formatted. Am I right? Or is there any other method?

Will this keep the previous/old '/home' partition intact? If so, that's great then. One major issue is resolved.

Quote:
Originally Posted by yancek View Post
. . . I personally do not use a separate /home partition. . . .
You mean you do not create the '/home' partition at all? So do you keep all your files in a seperate partition like the one 'store' we discussed above? That's a nice idea.

Quote:
Originally Posted by yancek View Post
There is obviously no guarantee and I would definitely back up any important data before changing partitions, formatting or installing/reinstalling.
But why? What can happen? Of course uncertainties are always there, and I too would do a backup. However keeping that aside, principally speaking, if the 'do not use the partition' option is selected the installer wouldn't touch it. Right? Or are there any hidden issues here?

Quote:
Originally Posted by yancek View Post
If you have or want a separate partition on which to keep personal documents, pictures, video, or anything important to you it is a lot simpler to create a separate data partition either during or after the install.

You should be able to put an entry in the /etc/fstab file to give users access including write permissions after you have completed the install to your separate "Store" partitions.
Oh that's nice then. Could you please kindly give a step by step procedure guidance in creating a separate data partition and give standard-users access including write permissions, on LM 17 Qiana Cinnamon? I would greatly appreciate the help. I have tried to do it in many ways but haven't been able to accomplish that till now.

Thanking you

Regards

Anil
 
Old 09-01-2014, 10:32 AM   #32
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JeremyBoden View Post
You can install without creating a swap partition.
If you are constricted by memory (depending on what programs get run), you can create a swap partition later.
Alternatively, you can create a swap file which is almost as good as a swap partition.
Is that so?

That's nice then.

I just went through what the swap file & swap partition are, on the web.

How can we create a swap file on LM 17 Qiana Cinnamon after installation?

Thank you for the information, JeremyBoden.

Regards

Anil
 
Old 09-01-2014, 12:43 PM   #33
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Note that I said "should" be able to install the system to whichever partition you currently have Mint on. I would definitely back up data that is important to you to a separate drive. There are just too many things outside your control that can go wrong when installing/partitioning. From your earlier post with the parted command, this looks to be sda3 but that is just a guess as you have four other Linux (ext4) partitions. Simplest way to find out with certainty is to boot Mint, open a terminal and run the command: df -h That should give you output similar to below:

Code:
 df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda8        39G   27G   11G  73% /
In the output above from my computer, it shows the root filesystem is installed on partition sda8 and that is determined by seeing the root symbol / under the Mounted on column. Check to see if it actually on sda3 or one of the other partitions.

Quote:
I suppose I can set it in the option provided in the live USB installer. By clicking on the '+ Change' a 'Create partition' dialogue box appears where, in the 'use as' menu there is the option 'do not use the partition'. I need to select that if I want to keep my files in the previous/old '/home' parttion, intact. By doing that; the previous/old '/home' parttion will not be formatted. Am I right? Or is there any other method?
I hesitate to advise on this as I've never used a separate home partition. If I were to try it, that sounds reasonable but you might wait for someone who has actually had experience using a separate home partition. I would probably just install everything to the one / partition and a /home directory would be created there and you should then be able to mount your old home partition with a proper entry in the /etc/fstab file.

Quote:
You mean you do not create the '/home' partition at all? So do you keep all your files in a seperate partition like the one 'store' we discussed above? That's a nice idea.
I do it that way yes, a separate data partition (actually multiple partitions for different types of data) since I then don't have to deal with overwriting the separate /home partition.

Quote:
But why? What can happen? Of course uncertainties are always there, and I too would do a backup. However keeping that aside, principally speaking, if the 'do not use the partition' option is selected the installer wouldn't touch it. Right? Or are there any hidden issues here?
I would think that not doing anything with the /home partition or selecting the option not to format would work, either one. As I said, I've never used a separate /home partition so don't have any personal experience to base that on. With separate data partitions, I can select a different partition on which to install the system and my data partitions have always been intact so I would expect it to work. Problems I was thinking of include power outages, accidents including user error (distractions, not understanding), small children, cats, dogs, etc. Most of those can be avoided.

Granting users permissions on a Linux filesystem partition is a pretty simple process. It gets complicated when you are trying to grant permissions on an ntfs (windows) filesystem from Linux. After you get things setup, you might post back. I think that umask option in the fstab file are a good way to go. Should be able to get a response to that.

Just to answer your question about a swap partition, in your situation do not bother with it during the install as you already have a swap partition on partition 9. You only need one. I usually have 10-12 operating systems on this computer and one swap.
 
Old 09-02-2014, 06:25 AM   #34
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
A good how-to on all things swap can be found https://www.linux.com/news/software/...nux-swap-space
 
Old 09-02-2014, 08:02 AM   #35
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Thank you yancek,

The df -h command gave the following outout;

Filesystem Size Used Avail Use% Mounted on
/dev/sda8 30G 4.1G 24G 15% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.4G 4.0K 1.4G 1% /dev
tmpfs 290M 1.3M 288M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.5G 748K 1.5G 1% /run/shm
none 100M 12K 100M 1% /run/user
/dev/sda3 20G 81M 19G 1% /home
/dev/sda6 9.8G 23M 9.2G 1% /home/cr
/dev/sda7 20G 44M 19G 1% /home/ak
/dev/sda5 9.8G 23M 9.2G 1% /home/od


From this it shows the root filesystem is installed on partition sda8. It is so because; I created the Unallocated space first, then one '/home/od' for one standard user, then one '/home/cr' for another standard user, then one '/home/ak' for the admin [this was not necessary I suppose, since I had kept the large ntfs partition for myself. I can now delete it and add it to the unallocated space.], and then I created the '/' partition, and at the last I created the swap partition. I kept the '/' and the swap at the end because their size cannot be altered or moved. I could alter and/or move, the sizes of the rest of the partitions as and when the need arises, by giving-to or taking-from the Unallocated pool space, easily, as they are in the middle.


Quote:
Originally Posted by yancek View Post
I would probably just install everything to the one / partition and a /home directory would be created there and you should then be able to mount your old home partition with a proper entry in the /etc/fstab file.
Oh this is how its done. A 'store-partition' is to be created and the OS is to instructed that this is the '/home partition'.

Quote:
Originally Posted by yancek View Post
I do it that way yes, a separate data partition (actually multiple partitions for different types of data) since I then don't have to deal with overwriting the separate /home partition.
When the seperate 'store' partition is created, what is the mountpoint(?) given to it; just '/data' or '/data partition' or any random personalised name can be given? Are there any specific guidelines for that? Am I right in calling it the 'mountpoint'?

Quote:
Originally Posted by yancek View Post
I would think that not doing anything with the /home partition or selecting the option not to format would work, either one.
I thought that they are one and the same. Is a distinct option not to format, also available? Where would I find it?

I have a few more querries;

* After installation, can the '/ partition' be resized and/or moved without any bad effects on the system?

* After installation, can the 'Swap partition' be resized and/or moved without any bad effects on the system?

Thank you, yancek

Regards

Anil
 
Old 09-02-2014, 10:40 AM   #36
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Different users are not (normally!) given their own partitions.
Assuming cr, ak & od are different users, sub-directories are created in /home when the users are created (automatically).
So you get /home/cr, /home/ak & /home/od

In short, you don't need or want
/dev/sda6
/dev/sda7
/dev/sda5

This means that you can have hundreds of users if you want to.

Last edited by JeremyBoden; 09-02-2014 at 10:43 AM.
 
Old 09-02-2014, 03:29 PM   #37
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Your df output is a little unusual as generally one partition is created for /home, under that each user would have his/her directory and the folders/files there could only be modified by that user. No other user other than the admin/root user could modify files/folders in another user directory but could read them. Your output shows a separate /home directory as well as separate /home/user directories for three users. As indicated above by JeremyBoden, you could put all of those separate /home/user directories under /home. That is usually the way it is done. If any of the users partitions have data, you would first need to copy it to the /home partition.

Quote:
Oh this is how its done. A 'store-partition' is to be created and the OS is to instructed that this is the '/home partition'.
No. See above explanation..

Quote:
When the seperate 'store' partition is created, what is the mountpoint(?) given to it; just '/data' or '/data partition' or any random personalised name can be given? Are there any specific guidelines for that? Am I right in calling it the 'mountpoint'?
Yes, you can call it whatever you want. You would be best off creating it under the /mnt directory as that is its purpose rather than /data which would put it in the root of the filesystem. During the installation, if you select a partition to use you will get the Edit partition window and to the right of Mount point, you click the down arrow and you will have some options. You should also have a blank line where you can enter the name of the mount point: /mnt/data, would be an example.

Quote:
I thought that they are one and the same. Is a distinct option not to format, also available? Where would I find it?
No, there is a check box in the installer window and if you leave it blank, it should not format. I believe you mentioned that in an earlier post.

Quote:
* After installation, can the '/ partition' be resized and/or moved without any bad effects on the system?
Yes, BUT only if there is contiguous free space. Same with swap.

Last edited by yancek; 09-02-2014 at 03:41 PM.
 
1 members found this post helpful.
Old 09-02-2014, 04:11 PM   #38
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
An example:-
Code:
jeremy@hector ~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        39G  9.2G   28G  26% /
udev             10M     0   10M   0% /dev
tmpfs           202M  952K  201M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           403M  804K  402M   1% /run/shm
/dev/sda2        96G  9.6G   82G  11% /home
/dev/sda3       481G  234G  223G  52% /mnt/video
/dev/sdb2        39G   21G   16G  57% /mnt/backup
/dev/sdb3       190G   83G   98G  47% /mnt/filestore
none            4.0K     0  4.0K   0% /sys/fs/cgroup
Note that I have 5 users in /home...
I also have 3 partitions for which I have created directories in /mnt,
so that I can access video, backups and miscellaneous files.

When a user signs on, any reference to the home directory will actually be to /home/username.
For example, try the pwd (print working directory) command from a terminal screen.
 
1 members found this post helpful.
Old 09-02-2014, 05:28 PM   #39
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
But if you are creating mnt points for individual users then the data isn't shared, it's just additional space that would be there in users directories.
I can understand having an additio.al drive & having read/write permissions, but it appears that the data is no different than an extension of /home/videos or pics.
 
Old 09-02-2014, 06:19 PM   #40
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
The setup the OP posted is a bit unusual with a separate partition for each /home/user and I wonder what would be in the actual separate /home partition. Would it contain duplicate /home/user directories or not much of anything and just be wasted space?
 
1 members found this post helpful.
Old 09-02-2014, 06:42 PM   #41
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
That's my thinking. But it was a post further up, now I see the OP change the partitioning scheme. On the /mnt/videos is that doable by creating a link in users directory?
 
Old 09-02-2014, 07:19 PM   #42
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
In the example I gave,
Provided a directory named /mnt/video exists, and provided my /etc/fstab file contains a line
something like:-
Code:
/dev/sda3   /mnt/video   ext4   rw,errors=remount-ro   0 2
then we get a /mnt/video directory which is accessible to all users.

Works for me anyway...
 
Old 09-02-2014, 07:37 PM   #43
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JeremyBoden View Post
Different users are not (normally!) given their own partitions.
Assuming cr, ak & od are different users, sub-directories are created in /home when the users are created (automatically).
So you get /home/cr, /home/ak & /home/od

In short, you don't need or want
/dev/sda6
/dev/sda7
/dev/sda5

This means that you can have hundreds of users if you want to.
Thank you JeremyBoden,

The reason I did that was partly because of my not knowing that the '/home' can be kept intact even during a re-installation. The other reason is, [EDDY1 mentioned it] I supposed , that the '/home/cr, /home/ak & /home/od' partitions are shared i.e. they can be read by other users [yancek mentioned it] and I wanted to keep them unaccessible to other users except the admin.

[QUOTE=JeremyBoden;5231398]An example:-
Code:
jeremy@hector ~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        39G  9.2G   28G  26% /
udev             10M     0   10M   0% /dev
tmpfs           202M  952K  201M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           403M  804K  402M   1% /run/shm
/dev/sda2        96G  9.6G   82G  11% /home
/dev/sda3       481G  234G  223G  52% /mnt/video
/dev/sdb2        39G   21G   16G  57% /mnt/backup
/dev/sdb3       190G   83G   98G  47% /mnt/filestore
none            4.0K     0  4.0K   0% /sys/fs/cgroup
Oh that was nice of you to give that example JeremyBoden. It was informative.

So now can I say that;

'/home' - is a partition that is by default a partition given into the hands of the OS to create user accounts and store all their files.

'mnt/<username> or <type name>' - creates a partition that can be only accessed by that user.

I wonder why do we have seperate '/mnt/video' & '/mnt/filestore' partitions? A store-partition like the '/mnt/filestore' could contain all types of files. Or is it that a '/mnt/video' can only accept video files?

Thank you JeremyBoden,

Regards

Anil
 
Old 09-02-2014, 08:16 PM   #44
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You can mount anything anywhere if you have write permissions.
 
Old 09-02-2014, 08:46 PM   #45
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Thank you yancek,

Quote:
Originally Posted by yancek View Post
Your output shows a separate /home directory as well as separate /home/user directories for three users.
Quote:
Originally Posted by yancek View Post
The setup the OP posted is a bit unusual with a separate partition for each /home/user and I wonder what would be in the actual separate /home partition. Would it contain duplicate /home/user directories or not much of anything and just be wasted space?
That was a mistake due to my lack of knowledge. After all these discussions now I can see that, the separate /home directory would be wasted. However one issue remains in my mind here. If I choose to have a separate /home/user directories for different users, and decide to remove the /home directory altogether, can the OS function properly? Where will it keep the sub-directories of the user-accounts created later after installation? Can the OS be instructed to keep them in their respective separate /home/user directories? Actually what I had supposed was that, the OS would by default, place them in the default /home partition, and the user has to move them manually to his/her separate /home/user directory to keep them safe and private [I didn't know then, that the /home partition can be kept intact in case of a re-installation]

Quote:
Originally Posted by yancek View Post
You would be best off creating it under the /mnt directory as that is its purpose
That sounds nice. I will now delete & change the /home/od, /home/cr partitions to '/mnt/od' and '/mnt/cr'. But how can I make the OS to recognize for example '/mnt/user1' partition as the default partition of that user and automatically mount it at startup and make it available for use to the user and at the same not to make available the '/mnt/user2' even for reading to 'user1'?

Quote:
Originally Posted by yancek View Post
. . . rather than /data which would put it in the root of the filesystem. During the installation, if you select a partition to use you will get the Edit partition window and to the right of Mount point, you click the down arrow and you will have some options. You should also have a blank line where you can enter the name of the mount point: /mnt/data, would be an example.
I am curious what the purpose of the /data parttion is? If it would be put in the root of the filesystem, I suppose it's contents would surely get deleted in case of a re-installation. If so why create the /data partition?

Quote:
Originally Posted by yancek View Post
No, there is a check box in the installer window and if you leave it blank, it should not format. I believe you mentioned that in an earlier post.
Yes there is one. I started the live USB installer and checked it.

Quote:
Originally Posted by yancek View Post
Yes, BUT only if there is contiguous free space. Same with swap.
Oh that's great then. That gives me a lot of feedom to manage my available disk space very nicely.

Thank you yancek. You guys are just great, with so much patience and putting efforts.

Regards

Anil

Last edited by Anil Kagi; 09-02-2014 at 09:30 PM.
 
  


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
Grub & partitioning Necromuru Linux - Software 1 12-22-2007 01:10 PM
Help on Installation / Partitioning grandmarkai Linux - Newbie 2 02-19-2006 08:33 PM
Partitioning for installation trotsky Linux - Newbie 6 12-24-2004 04:54 AM
Partitioning after installation stingerbee Linux - Software 10 08-04-2004 06:55 PM
Partitioning & Type of FS waynevnc Debian 3 06-20-2004 05:34 PM

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

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