LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-06-2018, 05:52 AM   #1
avex
LQ Newbie
 
Registered: Jan 2018
Posts: 11

Rep: Reputation: Disabled
How to change disk dividing error in GParted?


Hi!
I made mistake and now one of my logical disk with personal datas (/dev/sdb5 - ntfs - on the picture) is within extended disc (/dev/sdb4). I must move /dev/sdb5 upper and rename it to /dev/sdb4. And other space 39.35 Gib will be unallocated to install LinuxMint and swap area.
Please help to fix my mistake. Sorry for my English.

https://postimg.org/image/7udky0qid/

Last edited by avex; 01-06-2018 at 06:35 AM.
 
Old 01-06-2018, 06:33 AM   #2
sidzen
Member
 
Registered: Feb 2014
Location: GMT-7
Distribution: Slackware64, xenialpup64, Slacko5.7
Posts: 204

Rep: Reputation: 36
Your submitted image is too small!
Suggest using cfdisk to set partitons up
 
Old 01-06-2018, 06:38 AM   #3
avex
LQ Newbie
 
Registered: Jan 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
I changed size of image. Can cfdisk do it?
 
Old 01-06-2018, 06:58 AM   #4
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Rep: Reputation: Disabled
This may be helpful.
https://www.howtoforge.com/partitioning_with_gparted
 
Old 01-06-2018, 07:07 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,144

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
if you can, I'd start over, make 3 of your partitions primary and #4 partition your extended then add to that one, it keeps your numbering in order.

If you delete in the middle then add again it messing up the sequencing of your numbering.
Code:
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048   1026047   1024000   500M  7 HPFS/NTFS/exFAT
/dev/sda2         1028160 204902463 203874304  97.2G  7 HPFS/NTFS/exFAT
/dev/sda3       204906496 205828095    921600   450M 27 Hidden NTFS WinRE
/dev/sda4       205828096 488397167 282569072 134.8G  5 Extended
/dev/sda5       205830144 258258943  52428800    25G 83 Linux
/dev/sda6       258260992 301230079  42969088  20.5G 83 Linux
/dev/sda7       301232128 488397167 187165040  89.3G 83 Linux
or no you're doing it ok.
Quote:
I must move /dev/sdb5 upper and rename it to /dev/sdb4. And other space 39.35 Gib will be unallocated to install LinuxMint and swap area.
Leave sda4 alone, delete your sda5 and just start over to get your sizes you want. which is the faster way if you do not have any data on them.


if you want to add more size your last NTFS then delete sda5 and sda4 then redo sda3 by giving it more room first by using that slide on the GUI to add more space to it, then add your extended to sda4 then go from there.

you will want to allocated your space you intend to use for a linux install, and format it too. just set your sizes (swap) root /home for your partitions then format then install your Linux OS onto them by setting your mount points in the partitions during your setup/install process.

if it ask to format your partitions during the install process it will not hurt to say yes if they are blank ( no data )

Last edited by BW-userx; 01-06-2018 at 07:20 AM.
 
Old 01-06-2018, 07:48 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,605

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
I don't know why you thing you need to change/rename partitions. What are your intentions? If it is simply to install Mint then use the unallocated space within the Extended partitions (sdb4) and do it. These partitions (the filesystem and swap) will be sdb6 and sdb7 and will appear before sdb5 but that should not create a problem. The only way to get sdb5 to be sdb4 on the older MBR systems is to make it a primary but not Extended partition and in that case, you will not have anywhere to install Mint. Might read up a little on Extended/Logical partitioning.
 
1 members found this post helpful.
Old 01-06-2018, 07:56 AM   #7
avex
LQ Newbie
 
Registered: Jan 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks for answer!

I have important datas in /dev/sdb5 (on the picture) and can not delete it.

Is there a way to resize /dev/sdb3 by adding space from unallocated area from extended disc?

Last edited by avex; 01-06-2018 at 07:58 AM.
 
Old 01-06-2018, 08:25 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,144

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
how did you get yourself into this predicament? If I remember correctly if you wipe out your extended partition sda4 you're going to lose everything.

extend your partition on the left side to take up that space, make that space ntfs add it to sda5,


then resize it on the right side to shrink it down to give yourself room to make partitions for your Linux then use that right side for the rest of your partitions for Linux.

with data on that partition it is going to take a bit, cross fingers, and hang tongue out on left side or mouth while doing this if you do not have it backed up.

Last edited by BW-userx; 01-06-2018 at 08:27 AM.
 
Old 01-06-2018, 08:26 AM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861
Quote:
Originally Posted by avex View Post
Thanks for answer!

I have important datas in /dev/sdb5 (on the picture) and can not delete it.

Is there a way to resize /dev/sdb3 by adding space from unallocated area from extended disc?
You could always try shrinking the extended partition inward from the left and then expanding /dev/sdb3 outwards from the right. However, you would run the risk of destroying the data in /dev/sdb5 if something goes wrong (although I assume and hope that you have all that important data backed up somewhere else anyway).

I agree with Yancek though. Why don't you just install Linux into the unallocated portion of the extended partition? What is it exactly that you have against this plan of attack?
 
Old 01-06-2018, 08:43 AM   #10
avex
LQ Newbie
 
Registered: Jan 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks, I will do, as you advised - just install Linux in an unallocated area. First, create a swap, then a partition for Linux, then a partition for the data.
 
Old 01-06-2018, 08:46 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,144

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
you got 39 gb to play with, you're going to prob end up having to move stuff around if you want more room for Linux. just saying....
 
1 members found this post helpful.
Old 01-06-2018, 08:50 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861
Quote:
Originally Posted by BW-userx View Post
you got 39 gb to play with, you're going to prob end up having to move stuff around if you want more room for Linux. just saying....
I would disagree with this. 39GB is more than adequate for Linux, especially if the OP already has a great deal of data already stored on the NTFS data partition which presumably they will mount in Linux and use there too).
 
Old 01-06-2018, 08:52 AM   #13
avex
LQ Newbie
 
Registered: Jan 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
you got 39 gb to play with, you're going to prob end up having to move stuff around if you want more room for Linux. just saying....
I did not quite understand. Will it be problematic then to increase the space for Linux?

(I'm currently writing from Google translator)
 
Old 01-06-2018, 08:53 AM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,144

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by hydrurga View Post
I would disagree with this. 39GB is more than adequate for Linux, especially if the OP already has a great deal of data already stored on the NTFS data partition which presumably they will mount in Linux and use there too).
not saying it is NOT enough room for linux, just saying if one wants MORE room for Linux. as in ext4 for data in /home etc... as ntfs too will still work... just something to keep in mind for the future use to try and elevate the headache of having to try and re-position partitions with data on them on a later date.

39GB

1GB swap 5 to 10 for / (root) the rest for /home.
or
1GB swap the rest for / (root w/ home added into root)
or
slice it dice it anyway one wants...

I keep my swap on a 16GB SD Card ( laptop) because I don't use swap, it is a just in case thing.

Last edited by BW-userx; 01-06-2018 at 08:57 AM.
 
Old 01-06-2018, 08:55 AM   #15
avex
LQ Newbie
 
Registered: Jan 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
I would disagree with this. 39GB is more than adequate for Linux, especially if the OP already has a great deal of data already stored on the NTFS data partition which presumably they will mount in Linux and use there too).
I plan to create a swap of 8 GB, 20 GB for Linux and the rest for the data. Part of the data can be stored in a disk with ntfs, right?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Unrecognised disk label - gparted Belikewater Linux - Newbie 10 10-23-2016 12:40 PM
Gparted and gnome-disk-utils discrepancy in disk size reported mazinoz Linux - Security 3 04-18-2015 07:53 PM
[SOLVED] Gparted -- Error: Can't have a partition outside the disk! 1veedo Linux - Hardware 2 12-23-2012 02:41 AM
Gparted - external hard disk partitioning error (ntfs) crashhh Linux - Newbie 3 09-26-2010 09:50 AM
Error With GParted : Cannot Create Disk Label adamnew123456 Linux - Hardware 3 10-31-2009 04:15 PM

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

All times are GMT -5. The time now is 02:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration