Reclaim unpartitioned free space on dual boot [SOLVED]

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Reclaim unpartitioned free space on dual boot [SOLVED]

Postby archie.bald » 2017-11-06 11:51

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.
archie.bald
 
Posts: 16
Joined: 2017-10-15 06:04

Re: Reclaim unpartitioned free space on dual boot

Postby p.H » 2017-11-06 13:45

Can you show the current partition table ?
p.H
 
Posts: 178
Joined: 2017-09-17 07:12

Re: Reclaim unpartitioned free space on dual boot

Postby archie.bald » 2017-11-10 09:21

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.
archie.bald
 
Posts: 16
Joined: 2017-10-15 06:04

Re: Reclaim unpartitioned free space on dual boot

Postby srq2625 » 2017-11-10 13:12

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.
srq2625
 
Posts: 41
Joined: 2016-02-26 11:01

Re: Reclaim unpartitioned free space on dual boot

Postby archie.bald » 2017-11-10 13:24

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

Postby archie.bald » 2017-11-10 13:36

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

Postby archie.bald » 2017-11-12 00:37

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.
archie.bald
 
Posts: 16
Joined: 2017-10-15 06:04

Re: Reclaim unpartitioned free space on dual boot

Postby GarryRicketson » 2017-11-12 02:11

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/library/l-resizing-partitions-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.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4466
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Reclaim unpartitioned free space on dual boot

Postby archie.bald » 2017-11-29 12:13

@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.
archie.bald
 
Posts: 16
Joined: 2017-10-15 06:04


Return to Hardware

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable