Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 5080  / 2 Years ago, thu, december 30, 2021, 1:56:44

I've got a MacBook Pro (late 2011). I just bought a 1TB HDD to replace the original 500GB. My plan was to partition the 1TB in half and let one side be Ubuntu and the other OS X (until I can reasonable get rid of OS X. I need it for work).



Right now I have Ubuntu 12.10 installed on the 1TB and it's fine, but it's taking up all of the drive. It automatically set the partition that way. I made sure to check the LVM box. Easy to resize, they said. Right. Here's what I've got right now, as seen from booting up on a live CD or USB:



enter image description here



The partition is locked. It's not mounted though. Yet for the life of me I can't figure out how to resize it. It makes me wonder why I bothered with the LVM in the first place instead of just installing on FAT32. In fact the real reason it's this way is that I just let it do the auto install, and was never given an option for other partition setups. I did this because I wanted to make sure the EFI partition was set up right. I've had problems with that on past computers.



I have a few questions, but only a few need to be answered to solve this for me. I'm less concerned with the intellectual pursuit at this point than I am in just getting it working.



Why can't I resize this? Why is it locked? More importantly, how do I fix this? Google returns answers that don't work for one reason or another.



Should I go back and reinstall but do it all manually and set it up as 2 partitions? If so, do I need to create a EFI and swap partition in the process, or is EFI taken care of automatically?



I'm coming back to linux after years away, so I'm quite rusty. Any help will be greatly appreciated.



edit: the following is from the terminal



ubuntu@ubuntu:~$ sudo e2fsck -f /dev/sda3
e2fsck 1.42.5 (29-Jul-2012)
/dev/sda3 is in use.
e2fsck: Cannot continue, aborting.

ubuntu@ubuntu:~$ umount /dev/sda3
umount: /dev/sda3 is not mounted (according to mtab)


So it's in use but yet it's not mounted?


More From » 12.10

 Answers
0

If you have lvm, you need to use lvm tools to manage the Logical Volumes and Volume Groups. Your /dev/sda3 is not mounted but is probably defined as a Physical Volume in your VG. This is why it is in use.



Try using sudo pvs command to see your physical volumes, sudo vgs for volume groups and lvs for logical volumes. (pvdisplay, vgdisplay and lvdisplay also give other details about the volumes).



From the LV list, you need to select the LV you want to resize and resize it using the LV name not the /dev/sda3 physical partition.



Obs: as this is probably the LV with the / filesystem, you will need to resize it booting from a live cd (it's the same as without lvm, you can't unmount the volumes in use).



OBS: from your screenshot, you are using gparted and gparted is not able to work with LVM partitions at least until 12.04 (edit: but on your screenshot of 12.10 it appears to be working...). You need to use fdisk (seems that parted works too but I never used it...)


[#33752] Friday, December 31, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
motivengry

Total Points: 459
Total Questions: 112
Total Answers: 108

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
motivengry questions
Tue, Oct 4, 22, 10:02, 2 Years ago
Wed, May 31, 23, 14:33, 12 Months ago
;