LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 08-18-2020, 08:28 AM   #1
mq15
Member
 
Registered: Apr 2009
Location: Pakistan
Distribution: Linux Mint Cinnamon
Posts: 224

Rep: Reputation: 31
Partitioning the disk after installing mint cinnamon


Hello there,
I installed Linux Mint Cinnamon 20 as a single OS for my laptop, erasing Windows 7. But I forgot to partition the disk. Now I want to keep the OS data and user data on different partitions. What may be done now? May I partition now without disturbance to OS files? How? Or I have to go through re-installation?

Please help me.

Regards
 
Old 08-18-2020, 09:54 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,876

Rep: Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315
you need to boot another OS (from pendrive?) shrink partition, add new partition and reconfigure your system.
Probably faster to reinstall with different partitioning, if there was no any [important] data stored on that disk. Anyway, better to save your files before start.
 
2 members found this post helpful.
Old 08-18-2020, 02:44 PM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Years ago, I did this (moving /home to a separate partition) -it can be done fairly easily, but rather nerve-wracking for a newbie!

Unlike Windows, configuration files do not refer to files by a disk identifier, so you will not get any problems because /home is mounted as a different partition.
 
2 members found this post helpful.
Old 08-18-2020, 10:41 PM   #4
mq15
Member
 
Registered: Apr 2009
Location: Pakistan
Distribution: Linux Mint Cinnamon
Posts: 224

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by JeremyBoden View Post
Years ago, I did this (moving /home to a separate partition) -it can be done fairly easily, but rather nerve-wracking for a newbie!

Unlike Windows, configuration files do not refer to files by a disk identifier, so you will not get any problems because /home is mounted as a different partition.
Yes, you are right. It is very confusing for me at the time. Actually I can't figure out what is mounting in Linux terminology? what is mounting a directory? Like when you say;
Quote:
/home is mounting as a different partition
 
Old 08-18-2020, 11:25 PM   #5
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
To linux everything is one big file system (tree). The OS presents everything to the user as part of that tree. So to access the data on a device, for example a file partition, it has to be attached to, i.e. mounted on, that tree. The mount point is an existing directory. If you look at the /dev directory you will see lots of devices, some of which don't exist but that is another story. But the ones you will be working with will be sda1, sda2 or something like that. sda is the first hard disk, sda1 is the first partition on the first hard disk. I'm not sure what an sdd is listed as but the nomenclature will follow a similar pattern. You may also see usb1, etc., i.e. usb devices. So you mount devices with the mount command, e.g.
Code:
mount -t ext4 /dev/sdb2 /home/user/tmp
That means attach device sdb2, the second partition on the second hard drive, at the directory /home/user/tmp. From then on you don't worry about the device, just use the directory.

Now directly to your problem. You can not make changes to a mounted device, in your case partition. Since you only have one partition, the running system, you cannot change it while it is running. You can reinstall setting up the partitions as you want them, or you can change things. To change them you cannot unmount your system or it will freeze, no system to run. So what you do is run another system, for example the system on an installation disk, and repartition your drive.

I would recomment using gparted. It should be available, perhaps as an icon or in the menu or else from the terminal with
Code:
sudo gparted
Reduce the size of your single partition and create a new partition in the now unallocated space. DO NOT MOVE THE EXISTING PARTITION, just shrink it or GRUB won't be able to find it and you can't boot. Then you will have to reinstall unless you know how to install GRUB. But now you have the second partition you wanted, so you can reboot, manually mount that second partition, and off you go. Of course you will probably want to set it up for automatic mounting in /etc/fstab but that is another story. See
Code:
man fstab
for example.

By the way, your home directory should /home/<username>. That is where you will mount the new partition. Be aware that you will probablywant to mount it elsewhere first, copy the existing home directory to the new one, and then mount the new one at /home/<username>.

Last edited by agillator; 08-18-2020 at 11:29 PM.
 
2 members found this post helpful.
Old 08-19-2020, 06:43 AM   #6
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
If you don't mind losing any data, a custom reinstall is quicker/safer.
 
Old 08-19-2020, 07:00 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by JeremyBoden View Post
If you don't mind losing any data, a custom reinstall is quicker/safer.
Of course, as long as yo have backups you can retain backed up data.
Also, if you attempt an in-place modification and it goes bad, a full reinstall with partitioning during the install is still a fallback option.

Let fear make you take precautions, do research and hesitate long enough to consider the risk: never let it stop you.
 
1 members found this post helpful.
Old 08-20-2020, 04:19 AM   #8
mq15
Member
 
Registered: Apr 2009
Location: Pakistan
Distribution: Linux Mint Cinnamon
Posts: 224

Original Poster
Rep: Reputation: 31
Thank you very much all.

Thank you @agillator for your brief on
Quote:
what Mounting means in Linux.
I have, however, opted a re-installation.
 
Old 08-20-2020, 05:02 AM   #9
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
I'm not surprised. In most cases that is the easiest and safest option. At least you know you have options, now, and hopefully understand the filesystem a little better. Glad I could help.
 
  


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
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 09:21 AM
Why Go Debian-Ubuntu-Mint-Cinnamon, When You Can Go Debian-Cinnamon? happydog500 Debian 17 10-10-2017 08:37 AM
LXer: Linux Mint 17.3 "Rosa" Cinnamon Edition Beta Officially Released with Cinnamon 2.8 LXer Syndicated Linux News 0 11-18-2015 11:29 PM
[SOLVED] Linux Mint 17 (Cinnamon) versus Linux Mint 17-1 (Cinnamon) Tikiman Linux - General 2 05-15-2015 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

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