partition merging

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
tenzan
Level 2
Level 2
Posts: 67
Joined: Thu Nov 16, 2017 7:03 pm

partition merging

Post by tenzan »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mr_raider
Level 7
Level 7
Posts: 1897
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: partition merging

Post by mr_raider »

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 2
Level 2
Posts: 67
Joined: Thu Nov 16, 2017 7:03 pm

Re: partition merging

Post by tenzan »

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 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: partition merging

Post by Flemur »

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?
tenzan
Level 2
Level 2
Posts: 67
Joined: Thu Nov 16, 2017 7:03 pm

Re: partition merging

Post by tenzan »

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
Locked

Return to “Beginner Questions”