Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2291  / 3 Years ago, sun, october 3, 2021, 11:24:29

I have an issue, not necessarily a problem. I have a disk, which had Ubuntu 11.04, a swap, a big NTFS and some free space. When 11.10 came out, I did a fresh install and recently I've deleted the 11.04 partition since I didn't needed it anymore. I've noticed that my partition table is a little bit messy. Especially that I seem to have 2 primary empty partitions at the beginning and end of the partition table and my swap /dev/sdb5 seems to reside in an extended container /dev/sdb2 (probably old swap from 11.04).



Here is a screenshot from GParted:
enter image description here



Any way I could make some order in here?


More From » 11.10

 Answers
0

First I advise you manage your partitions from a live CD.



Second, before you start, check fstab and make sure all your partition enteries are by UUID



UUID=dccc7153-df39-4b3c-b707-b42f2e3a5421  /  ext4   errors=remount-ro  0  1


FSTAB will also tell you what partitions are in use. If you need a list of partitions by uuid use



sudo blkid


1) Boot the desktop CD and unmount all your hard drive partitions and swap (you can do this in gparted).



2) Delete any unwanted partitions -> apply changes.



3) Resize your partitions one at at time.



4) Fix your partition table (order) with fdisk



sudo fdisk /dev/sda


At the fdisk prompt type the following commands



# Extra functionality
x

# Fix partition order
f

# Write changes to disk
w

# Quit fdisk
q


Reboot and your partitions should look much better.



Note - You really do not need to "fix" this "problem" , but it will not hurt to fix either.


[#41435] Monday, October 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oatglori

Total Points: 313
Total Questions: 102
Total Answers: 111

Location: Guam
Member since Thu, May 18, 2023
1 Year ago
oatglori questions
;