Hot answers tagged

26

I enabled EFI for my VM while using gparted-live-0.22.0-2-i586 and it started working. I also noticed that the disk needed to be added to a SATA controller. It appears that older versions of gParted required EFI to be disabled.


23

You're not going to be able to use GParted because the filesystem is on LVM and GParted does not support that. First, TAKE A BACKUP OF THE VM. Then perform the following as "root" from a command line. It looks like you've already rebooted but just in case, ensure the kernel recognizes the larger disk echo 1 > /sys/class/scsi_disk/0:0:0:0/device/rescan ...


7

I had the same problem and checked the "Enable EFI (special OSes only)" extended feature and it started working.


6

There is a possibility to recover the partition table, but it requires 2 conditions be met: You have not rebooted your machine. The drive was in use at the time the table was changed. How this works is that the kernel keeps the partition layout in memory. If a partition is in use, it needs to know where the partition starts, so it will refuse to reload ...


6

Short answer: You can use the same swap partition as the data in swap is not preserved from one boot to the next. It is totally normal to have multiple linux installations on a disk with a single swap. There is one exception/caveat I know of, however: if you use hibernate (aka, 'suspend to disk'), hibernate uses your swap space for storage. If you then ...


4

Your drive is a LVM physical volume. Your free space is being managed by lvm. Look at vgdisplay to find free space in your volume group and lvcreate to create a new partition from that space. To grow a partition you will first lvextend the logical volume then (if ext2/3/4) resize2fs to size the filesystem to the new volume size.


4

It appears that the device file does not exist. You can verify this by doing ls /dev/sdb6. Try running the command partprobe, or sudo partprobe as user. This should detect the devices and create the according device files. This may return the error Error informing the kernel about modifications to partition /dev/sdb5 -- Device or resource busy If it ...


4

You have copy & pasted a lot of unnecessary transcripts but your first paragraph pretty much says it all: When I run sudo gparted on a live ubuntu USB, I get Input/output error during read on /dev/sdc. So you have a defective disk. The error comes directly on /dev/sdc (not /dev/sdc1 or /dev/sda2, etc...) so it applies to the whole disk. Therefore ...


4

It's perfectly safe to convert your unallocated space to a partition while your system is running. The only practical danger is in human error (i.e., yours) or a power loss while the partition table is being written. These just as likely to happen while booted normally as they are booted from a Live CD.


4

You might try using testdisk to recover the partition table. Testdisk will read the surface of the disk and attempt to determine where partitions start and end.


3

The filesystem is 20G on a partition that has 40G. You need to resize the filesystem! growfs is the correct tool.


3

Assuming you're talking about merging 3 partitions into 1 with all the original data intact I do not believe you'll be able to merge these partitions, as they are. There is not enough unused space on any of the partitions that can contain the other partitions' used space. You could shuffle them around and maximize the free space so that it's on 1 of the 3 ...


3

You split your disk into (at least) two partitions - one for your home directories (/home) and another for everything else (/). It looks like you only allocated about 10GB for /, which is now full. The partition mounted as your /home directory is ~621GB, with plenty of free space, but that's not where most system files go. That's the danger of allocating ...


3

It defines the partition id as linux swap. The entry of the partition in the master boot record of the device contains the hex value of that partition type. In that case it would be 0x82. The problem is every operating system interprets them different. It is theoretically possible that if you use two operating systems with the same harddisk, the same code ...


3

As the volume/partition that you wish to modify is mounted, you should not modify it. In fact, GParted will not let you modify mounted partitions: Why are some menu items disabled? The partition is mounted and modifying a mounted partition is DANGEROUS. Just unmount the partition… To use GParted on the boot volume, you'll need to stop/finish ...


3

Your partition table looks OK, but it's a bit odd. In particular, most partitioning tools put a data structure known as an Extended Boot Record (EBR) in the sector immediately preceding the logical partition it describes. In your case, though, there's no gap between your logical partitions 5 and 6, so your partition 6's EBR must be located somewhere else. ...


3

The process appears to be: create a new partition in your newly available free space; your choice of filesystem doesn't much matter, as we will change it later reboot into the system use cfdisk to flag the new partition as Linux LVM instead of whatever you chose above use pvcreate to flag your new partition as a physical volume for LVM use vgextend to add ...


3

The below steps extended my partition from 12G to 26GB on a VMWare EXSi 5.5 running Centos 6 EXT4 VPS. 1) Identify the device name, which is by default /dev/sda, and confirm the new size by running the command: # fdisk -l 2) Get list of partitions for /dev/sda device: # ls -al /dev/sda* brw-rw---- 1 root disk 8, 0 Dec 29 15:32 /dev/sda brw-rw---- 1 ...


3

You appear to have both a dos and mac partition table on the disk, and parted is recognizing the mac one. You should be able to zap the mac partition table with: sudo dd if=/dev/zero count=1 bs=2 of=/dev/sda


3

do I need to have a swap partition for each distro or can LFS use the swap partition I already have? As goldilock says, unless you are hibernating (suspend to disk), yes. Otherwise no, because you could overwrite swap of a hibernated system - either it's saved state or the part that was used as regular swap at suspend time. If so, would the swap ...


3

You need to associate a loopback device with the file: sudo losetup /dev/loop0 /home/user/harddriveimg Then run gparted on that.


3

You may have it corrupted. With luck it is not definitively damaged. The better way to deal with it is "zeroing it" and defining everything anew. For that we zero it with dd: sudo dd if=/dev/zero of=/dev/mmcblk0 bs=512 count=2 where /dev/mmcblk0 is the device where it is normally mounted. (/dev/mmcblk0p1 is actually the partition) After the dd you can ...


2

Try this: Move /dev/sda2 to the beginning of the unallocated space. optionally shrink /dev/sda2 at the same time. then move /dev/sda3 to immediately after /dev/sda2 extend /dev/sda3 to take up the unallocated space then move /dev/sda6 to the end of the extended partition (/dev/sda3) and finally extend /dev/sda5.


2

If you have LVM on it, the easy way out is to make a new partition of the free space, set it up as physical volume in LVM and add that physical volume to your volume group. You're probably right that gparted won't touch the partition as it is in use.


2

If you are using mkfs.ext4, you have to pass -E root_owner=your_uid:your_gid, this is usually passed in an 'extra options' textbox in gui partition tools. If you dont do this (< mkfs 1.42) then the person running the gui tool will get the permissions. Nowdays, for security, it assigns them to root:root (0:0). If you ever go back to fat32 or ntfs, you ...


2

Can't have overlapping partitions The root cause is that the partition table contains at least one occurrence where the end of one partition overlaps the start of another partition. Source: How-to Fix Invalid MSDOS Partition Tables There is also a guide on how to fix it: How-to Fix Overlapping Partitions


2

You can definitely expand an ntfs partition with gparted. Ensure you have ntfsprogs installed (yum/dnf/apt-get install) first. You can right click /dev/sda2 in that list and click rezize/move and go from there. Move the slider as needed to fill in the space. You might be able to grab up the first 200MB of the drive too with that option, but I've never had ...


2

It appears that Disk 1 is Dynamic which is Proprietary to Microsoft. In order to properly share the disk with other non-MS operating systems the disk must be converted to Basic as can be seen with Disk 0.


2

Select the second partition, Partition menu->revize/move, and drag it to the end of the free space. Then, for the first partition, Partition menu->resize/move, and drag the right-hand side to the end of the free space. Both partitions will need to be unmounted - if you cannot unmount one of them (e.g: because it is your root partition), use a Live CD with ...


2

gparted can do this easily. BTW, in case you don't know, you have to reboot to a Live CD / USB because gparted can not safely move or resize filesystems that are mounted RW and in active use. It can not move or resize the partition it is running from. http://gparted.org/ has downloadable ISO images for CDs and USB sticks. anyway, here's the procedure: ...



Only top voted, non community-wiki answers of a minimum length are eligible