partition merging

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
tenzan
Level 1
Level 1
Posts: 42
Joined: Thu Nov 16, 2017 7:03 pm

partition merging

Post by tenzan » Sat Dec 09, 2017 7:40 am

Hello,
When I installed Mint I was given the option of keeping my WinXP installation, and I kept it as I had lots of disk space to spare (turned out it was a good idea, as I wanted a BIOS update afterwards which was much easier to do under Windows). Now that I have less and less need for the Windows partition I would like to delete it and merge with my main Linux partition. Question: do I have to wipe the HD to do that or can Linux also convert and merge the NTFS partition into my main partition?

Tenzan

mr_raider
Level 6
Level 6
Posts: 1317
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: partition merging

Post by mr_raider » Sat Dec 09, 2017 9:58 am

Partitions can't be merged. You can delete the partitions that are no longer needed, then expand the existing partitions over them to reclaim the space.

However it depends on your current layout. The best info for us would be start gparted take screenshot of your disk layout and post it here.

Or post the output of

sudo parted -l
Image

tenzan
Level 1
Level 1
Posts: 42
Joined: Thu Nov 16, 2017 7:03 pm

Re: partition merging

Post by tenzan » Sat Dec 09, 2017 2:44 pm

Thanks, I meant that I wanted to delete the NTFS partition and absorb the free space. My output from parted is

Model: ATA ST3250820AS (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 32.3kB 60.0GB 60.0GB primary ntfs boot
2 60.0GB 250GB 190GB extended
5 60.0GB 246GB 186GB logical ext4
6 246GB 250GB 4216MB logical linux-swap(v1)

No complications from deleting the primary boot partition I hope?

Thanks,
Tenzan

User avatar
Flemur
Level 16
Level 16
Posts: 6278
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: partition merging

Post by Flemur » Sat Dec 09, 2017 3:25 pm

tenzan wrote:

Code: Select all

Number  Start   End     Size    Type      File system     Flags
 1      32.3kB  60.0GB  60.0GB  primary   ntfs            boot
 2      60.0GB  250GB   190GB   extended
 5      60.0GB  246GB   186GB   logical   ext4
 6      246GB   250GB   4216MB  logical   linux-swap(v1)
No complications from deleting the primary boot partition I hope?
My "boot" partition is sda2, which doesn't boot anything - I'm not sure "boot" means anything in linux.

Anyway -
- BACK-UP YOUR STUFF. Not necessarily the OS itself, but your data (music, etc) and probably your $HOME.

- you'll have to reinstall grub after extending sda5 because you'll be moving the partition with the /boot directory.
(AFAIK grub keeps a hard pointer to either the /boot directory or the start of the partition /boot is on).

- sda5=linux is inside an extended partition, which might make things interesting.
-- delete sda1, then
-- move sda2 to the start of the disk and have the other two partitions inside it, or move them outside the extended part?
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

tenzan
Level 1
Level 1
Posts: 42
Joined: Thu Nov 16, 2017 7:03 pm

Re: partition merging

Post by tenzan » Sat Dec 09, 2017 5:58 pm

Thanks, I'd actually backed up most my stuff already as I had thought I'd have to erase the NTFS partition. I will follow your instructions.

Tenzan

Post Reply

Return to “Newbie Questions”