Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Reclaim unpartitioned free space on dual boot [SOLVED]

Need help with peripherals or devices?
Post Reply
Message
Author
archie.bald
Posts: 16
Joined: 2017-10-15 06:04

Reclaim unpartitioned free space on dual boot [SOLVED]

#1 Post by archie.bald »

Hello everyone,

I have recently installed Debian on a dual boot on a macbook pro. I am a beginner so I might have screwed up somewhere.
Anyway, I have left some space out of the partitionning thinking at the time that it could be interesting for another OS later on.

Now I am thinking that was a dumb idea and wish to give that unpartitionned space (80Go) back to me debian partition (I'm assuming that /home partition)
How can I do that?
Also, while I am at it, I allocated 8go for the swap, (8go RAM) on the mac, does that make any sense?

Thanks for your answers.

Cheers.
Last edited by archie.bald on 2017-11-29 12:14, edited 2 times in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Reclaim unpartitioned free space on dual boot

#2 Post by p.H »

Can you show the current partition table ?

archie.bald
Posts: 16
Joined: 2017-10-15 06:04

Re: Reclaim unpartitioned free space on dual boot

#3 Post by archie.bald »

HI thanks for the answer.
Hum ... sure, how?
It's a dual boot originating from the macos partition. I reduced the size of it, leaving 170Go for debian but then when I intalled debian, for some reason I left 70Go unused.
How can I show you the entire partition table.
I appreciate the help, but I am still a very new user of linux and debian.

thanks.

srq2625
Posts: 44
Joined: 2016-02-26 11:01

Re: Reclaim unpartitioned free space on dual boot

#4 Post by srq2625 »

archie.bald wrote:HI thanks for the answer.
Hum ... sure, how?
Return here the output of

Code: Select all

fdisk -l
This will need to be run using root privileges.

archie.bald
Posts: 16
Joined: 2017-10-15 06:04

Re: Reclaim unpartitioned free space on dual boot

#5 Post by archie.bald »

Haha,
I had just found out about that, doing my own homework too :-)

Code: Select all

Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 000016F8-6D01-0000-773D-0000D3110000

Device         Start       End   Sectors   Size Type
/dev/sda1         40    409639    409600   200M EFI System
/dev/sda2     409640 156659639 156250000  74.5G Apple HFS/HFS+
/dev/sda3  156659640 157929175   1269536 619.9M Apple boot
/dev/sda4  157929176 216522925  58593750    28G Microsoft basic data
/dev/sda5  216524800 314179583  97654784  46.6G Linux filesystem
/dev/sda6  314179584 337616895  23437312  11.2G Linux swap
there is about a lot of space in the wind, not allocated that I'd like to spread between the home and the / directories ...
And I have no idea what is this Microsoft basic data thing over there...

archie.bald
Posts: 16
Joined: 2017-10-15 06:04

Re: Reclaim unpartitioned free space on dual boot

#6 Post by archie.bald »

I just dabbled a little with fdisk, but since the partitions I wish to enlarge using the unallocated space are in the middle of the mess, I am not sure about the result

archie.bald
Posts: 16
Joined: 2017-10-15 06:04

Re: Reclaim unpartitioned free space on dual boot

#7 Post by archie.bald »

A little up on this post.
Is there anyone who could guide me to reclaim unpartitionned disk space without loosing data, considering that the partition I wish to expand are stuck between others?

Thanks a lot.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Reclaim unpartitioned free space on dual boot

#8 Post by GarryRicketson »

The only way to guarantee no data gets lost is if you make a good back up /copy of the data you are concerned about. Make sure the backup, is on a storage device, or medium , and it is not connected to drive you are going
to be working on the partitions on.
That is rule number 1. when working on the partitions, make a back up first.

If you use keywords :

Code: Select all

How to resize and move partitions on Debian  
Or replace Debian with Macbook , Osx, ( I think, OSx is what it uses),... you should see there are all sorts of tutorials. Do not use any that claim :
How to make changes to and resize hard drive partitions without breaking your system and losing all of your files

I don't care what method and partitioning tools you use, even with Gparted,
there all ways is a possibility that something will go wrong. Even more so when
the person does not know what they are doing. If the author of the tutorial does not tell you to make a back up first, then no point in even reading the rest
of it.
I did a little search for you and this one is OK, if you decide to use Gparted.
https://www.ibm.com/developerworks/libr ... titions-1/
If you are unable to read and follow it, there is no point in writing a very long
and detailed post explaining how to do this, because you would be unable to
follow it any way, as well.
Also, since I have 0 experience with Windows, and Microsoft, and you show:

Code: Select all

/dev/sda4  157929176 216522925  58593750    28G Microsoft basic data 

Yes , you claim you don't know how it got there, and neither do I, but when
microsoft and windows is involved, I can not help.
Also I don't know about these :

Code: Select all

/dev/sda2     409640 156659639 156250000  74.5G Apple HFS/HFS+
/dev/sda3  156659640 157929175   1269536 619.9M Apple boot 
But from what I read, you should be able to work on the Debian partition, using either Gparted Live, or any live medium that has gparted on it.

archie.bald
Posts: 16
Joined: 2017-10-15 06:04

Re: Reclaim unpartitioned free space on dual boot

#9 Post by archie.bald »

@GarryRicketson:
Hey man, thanks a lot for the detailed answer. and sorry for the very late reply to it.
So, to answer some of your wonderings, I am using a dual boot debian/macos (which are what the apple filesystem partitions are.
The Microsoft bit, I don't recall.
Anyway it's gone now. I took the long road, saved my stuff from my debian partition, and reinstalled debian after repartitionning the whole space.
Now it's all good.
Thanks to all, for the answers and support.

Post Reply