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 11-30-2018, 03:45 PM   #1
Old_Git
LQ Newbie
 
Registered: Nov 2018
Location: Clacton, Essex, UK
Distribution: Zorin Ultimate 64
Posts: 8

Rep: Reputation: Disabled
Question How to change HD partition sizes in Zorin os 12 ultimate 64 bit


I have a 240gb SSD with Win7, also 1tb HD with 80gb partition holding Win XP, 800gb partition (that was intended for Linux) and 30gb partition (now holding Linux).
Being a newbie I had partitioned the 1tb HD in Windows assuming that I would be able to direct the Zorin install program to use the 800gb partition but this didn't happen and Zorin used the unformatted 30gb partition. So How do I shrink the 800gb partition and expand the 30gb partition (without messing the triple system boot).
 
Old 11-30-2018, 04:17 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
you're dealing with a mixed system, yes? Ntfs windows, and linux, and during install zoriony didn't give you the options to select your partitions for it, or you just missed that part?

Anyways, for windows side you're better off using windows partition manager to do move and re partitioning, for Linux side I find gparted does just fine for moving and partitioning, even ntfs, I just do not use that for windows system side ntfs.

without any lsblk or others to show what you're really working with, that's as specific as I can get.

Last edited by BW-userx; 11-30-2018 at 04:19 PM.
 
Old 11-30-2018, 04:28 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
From a terminal run this, post the output - use [code] tags to retain the layout; Clicked the "Advanced button, then "#". It will list all your partitions/filesystems compactly.
Code:
lsblk -f -o +size
 
Old 11-30-2018, 05:02 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,572

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
If you created your 800GB partition in windows it would undoubtedly have a windows filesystem and neither Zorin nor any Linux system will install to it. YOu should use unallocated space. If you post the output of the command suggested someone should be able to advise on your next step. You could also post the output of the fdisk -l command which will show sectors and which partitions are contiguous.
 
Old 12-01-2018, 06:20 AM   #5
Old_Git
LQ Newbie
 
Registered: Nov 2018
Location: Clacton, Essex, UK
Distribution: Zorin Ultimate 64
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for the help - esp syg00 for the reminder about backups
So before I go any further: In my Windows system I use Macrium "Reflect" to backup both disks to my WD/Home Cloud storage which sits on my Home Network and holds all my device(desktop, tablets and laptop) backups, TV video's, Photo's etc. Does anyone know if this will backup and restore the Linux system files etc if not any pointers for software that will backup to said network storage
 
Old 12-01-2018, 07:20 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Thoughts on Backing up, it looks like the install did not turn out the way you wanted, so now you're trying to move everything around, which is going to take loads of time, if you you have lots of data to move over, including the OS'es.

Now you are backing up everything onto one or two HDD that have to be as big or larger then the ones holding the data being backed, up.

saving time, just swap out the Hdd's, set them up exactly how you want them to be, install your Systems, then rsync or cp the personal data over and maybe the configs from your system too, depending on how complected that may be.

though this all depends on the feelings you have for the HDDs already installed in the box. If you like them better and want to keep them in there and use them, that is understandable.

too one could back up all of the personal data, then just wipe the drives and go back to step one, set the partitioning up exactly how you want them, then install again.

this is only being said due to the time it can take, but not necessarily too long, (time is is relative) to move everything over to resize a drive.

I guess it all depends on how long one is willing to wait until they can play with their toys again.
 
Old 12-04-2018, 10:01 AM   #7
Old_Git
LQ Newbie
 
Registered: Nov 2018
Location: Clacton, Essex, UK
Distribution: Zorin Ultimate 64
Posts: 8

Original Poster
Rep: Reputation: Disabled
Unhappy Confusion on cloning

Before messing around with the Linux partition sizes etc I thought that cloning the Zorin system would be adequate.
In preparation in Windows I reduced the 800gb partition to about 250gb which left 500gb + 30gb in unallocated partitions.
Dowloaded Clonezilla Live (iso) and used Rufus to create a bootable USB drive. Re-Booted PC and Clonezilla started up, selected 'Partition' clone then selected the Zorin partition as source. When presenting me with the destination partition, Clonezilla only offered me the 250gb partion that was type "HPFS/NTFS", I assumed that Clonezilla would format this as required so said 'ok'. Cloning seemed to work ok and processed finished. Booted up as normal and all seemed ok but checking with fdisk and Disks it would appear that the the 250gb partition is now /dev/sdb2 but still type HPFS/NTFS.
Looking at the Grub file it shows the top line as "Zorin" then advanced settings etc etc then Windows boot but at the end it now has a line "Zorin OS 12.4 (12) (on /dev/sdb5) but this is not visible on boot up. So whats going on, am I running on the original install sdb5 or a clone on sdb2, How do I tell?????

#Disk /dev/sdb: 931.5 GiB, 1000200658432 bytes, 1953516911 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xe797e1e9
Device Boot Start End Sectors Size Id Type
/dev/sdb1 63 156344579 156344517 74.6G 7 HPFS/NTFS/exFAT
/dev/sdb2 * 225282048 724713471 499431424 238.2G 7 HPFS/NTFS/exFAT
/dev/sdb3 156346366 225282047 68935682 32.9G 5 Extended
/dev/sdb5 156346368 223279103 66932736 31.9G 83 Linux
/dev/sdb6 223281152 225282047 2000896 977M 82 Linux swap / Solaris

Partition 1 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition table entries are not in disk order.
#
 
Old 12-05-2018, 04:34 AM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,878
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Quote:
Originally Posted by Old_Git View Post
Code:
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1              63 156344579 156344517  74.6G  7 HPFS/NTFS/exFAT
/dev/sdb3       156346366 225282047  68935682  32.9G  5 Extended
/dev/sdb5       156346368 223279103  66932736  31.9G 83 Linux
/dev/sdb6       223281152 225282047   2000896   977M 82 Linux swap / Solaris
/dev/sdb2  *    225282048 724713471 499431424 238.2G  7 HPFS/NTFS/exFAT

Partition 1 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition table entries are not in disk order.
Because of what has been done, which left inadequate free space adjacent to sdb5 to materially increase its size, what needs to be done is to:
1-move sdb2 to the end of the disk as sdb4
2-move the swap partition to the end of free space (butt it up against sdb4)
3-enlarge sdb5 to whatever size you please and convert it to a primary partition (as sdb2) with boot flag moved to it
4-reinstall Linux bootloader onto sdb2 (not onto MBR)

Windows will probably need to be repaired before it will boot. That would most likely result in a need to reinstall the Linux bootloader again, but possibly only move the boot flag back from the Windows partition to the Zorin / partition.
 
Old 12-05-2018, 07:11 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,572

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
You can tell by booting Zorin and opening a terminal and running the command below. The line with the root symbol ( / ) will tell you which partition you are booted to. Since you didn't update Grub on the system (??) it would seem obvious you are booting to the original install.

Quote:
df -h
 
1 members found this post helpful.
Old 12-15-2018, 08:23 AM   #10
Old_Git
LQ Newbie
 
Registered: Nov 2018
Location: Clacton, Essex, UK
Distribution: Zorin Ultimate 64
Posts: 8

Original Poster
Rep: Reputation: Disabled
Cloned Partition

Thanks yancek, the mystery deepens. According to df -h ......as I suspected I'm booting from the newly cloned partition /dev/sdb2. I can only assume that CloneZilla edited Grub. What I don't understand is that fdisk shows /sdb2 format as HPFS/NTFS/exFat while Gpart shows it as ext4. I also assume that as there is only 1 swap file (/sdb6) the cloned system (/sdb2) is using this?
Code:
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           798M  9.7M  788M   2% /run
/dev/sdb2       235G   14G  210G   6% /
tmpfs           3.9G   35M  3.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/loop0      5.0M  5.0M     0 100% /snap/gedit/66
/dev/loop1      141M  141M     0 100% /snap/gnome-3-26-1604/74
/dev/loop2      203M  203M     0 100% /snap/firefox/152
/dev/loop3       89M   89M     0 100% /snap/core/5897
/dev/loop4       35M   35M     0 100% /snap/gtk-common-themes/818
tmpfs           798M   48K  798M   1% /run/user/1000
/dev/loop5       90M   90M     0 100% /snap/core/6034
/dev/loop6      207M  207M     0 100% /snap/firefox/159
 
Old 12-15-2018, 04:43 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,572

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
In post 7, you indicated that when you used clonezilla you selected partition which would only clone the partition on which you originally had your Zorin install to another partition which was selected in clonezilla. This should not have affected the original bootloader. I think the best thing to do to clarify things is to get the boot repair software from the link below and run it. Use the 2nd option to download from the ppa and run it according to the instructions on the site but only select the opton to Create BootInfo Summary and NOT make any repairs. When it finishes, it will give you a link which you can post here and the link will have more detailed information on your system.

https://help.ubuntu.com/community/Boot-Repair
 
1 members found this post helpful.
Old 12-17-2018, 05:46 AM   #12
Old_Git
LQ Newbie
 
Registered: Nov 2018
Location: Clacton, Essex, UK
Distribution: Zorin Ultimate 64
Posts: 8

Original Poster
Rep: Reputation: Disabled
Boot Repair summary

Thanks yancek.
From what I can see it would appear that Clonezilla has cloned the original Zorin install on (sdb5) to sdb2 as selected. There are 2 problems (1) the apparent (to me) difference in partition type as shown by 'Disks' (HPFS/NTFS) and 'Gparted' (ext4). (2) the Grub file to my newbie eye seems to be an amalgamation of the original plus the cloned Grub files. I've also noticed that Zorin occasionally boots into different screens (after selecting the 'Zorin' option) i.e. sometimes displays "Zorin OS 12" with 4 dots below, other times displays the 'Zorin' logo.
Have downloaded and run the "Boot-Repair" prog, see output Summary: http://paste.ubuntu.com/p/ZsFmrwNxM6/
 
Old 12-17-2018, 07:28 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,572

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
I don't know why that partition shows as ntfs and ext4 depending on the software used, weird?? You have Grub code in the MBR of sda, the smaller windows drive and tha is what is being used to boot Grub from Zorin. Your second drive which has both windows and Zorin has windows code in the MBR. Is that what you intended? If you wanted to keep the operating systems separate, you would need to repair the windows code in the MBR of the smaller windows drive which would require windows software, an install DVD of whatever OS is on it or by downloading some repair software for the specific version of windows from microsoft or another reputable windows site.

If you look at the blkid output you can see that both sdb2 and sdb5 have the same UUID. You can get the correct UUID for sdb2 by running: sudo blkid from a terminal in Zorin. You can then put the correct UUID in the grub.cfg file as well as /etc/fstab.

One way to check which partition you are booting is when you see the boot menu on startup, hit the e key on the keyboard on your Zorin entry (you can do this with/on any menuentry in the menu) and you will see the menuentry from grub.cfg. Go down to the line which beings with set root= and this will tell the drive and partition, example on your grub.cfg is set root="hd1,msdos2" which would tell you that it is booting from your second drive (the 1TB) and the second partition on that drive.

Your boot repair shows the output from both sdb2 and sdb5 and another way you can tell which you are booting is to use the arrow keys to move down the graphical boot menu. After the original Zorin entries you will have your windows entries and after that, you will see the additional Zorin entries for the original Zorin on sdb5. If you don't see the second instance of Zorin after the windows entries, that means you are using the original Zorin on sdb5 obviously because sdb2 Zorin did not exist when the original grub on that partition was installed.

You can see this in thee boot repair output which shows the grub.cfg file from sdb2 which has both Zorin entries on both partitions and the grub.cfg file from sdb5 which only has its Zorin entries. If you want to boot/use the original on sdb5, you need to go to the bottom entry of the boot menu and boot that instance of Zorin and verify that you are on sdb5 with the df -h or other command and then re-install grub to the MBR.

If you cloned sdb5 as a backup, I think you would have been better off cloning it to another hard drive or flash drive to avoid all this confusion.
 
1 members found this post helpful.
Old 12-20-2018, 07:48 AM   #14
Old_Git
LQ Newbie
 
Registered: Nov 2018
Location: Clacton, Essex, UK
Distribution: Zorin Ultimate 64
Posts: 8

Original Poster
Rep: Reputation: Disabled
Zorin Install

Thanks all for your help but my antics with installing and cloning have left me thoroughly confused
As I don't have any data in the Linux installation I've deleted all Linux partitions and started again - still didn't get the disk allocation to Linux correct but so what - I'm retired so I'll just try keep on trying
 
  


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
[SOLVED] How to install Java-11.0.1 in Zorin 12 Ultimate 64 bit Old_Git Linux - Newbie 4 11-29-2018 11:56 AM
[SOLVED] I am unable to boot or install Zorin 7 ultimate, 64-bit after downloading it. freedmn Linux - Newbie 6 08-21-2013 03:57 PM
LXer: Ultimate Edition 3.4 has been released with ultimate Features LXer Syndicated Linux News 0 07-03-2012 07:10 AM
LXer: Ultimate Edition: Not so ultimate LXer Syndicated Linux News 0 06-06-2008 04:41 PM
define different physical sizes on Multiple Monitors of different sizes MasterC Linux - Desktop 2 03-18-2008 04:24 PM

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

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