EzDevInfo.com

gparted interview questions

Top gparted frequently asked interview questions

MBR equals msdos for gparted?

I want to create a MBR partition table with GParted. In the confirmation window I can choose between various types of partition table. Default is msdos. Is it the same as MBR partition table?

I'm running GParted off Ubuntu LiveCD.


Source: (StackOverflow)

Using GParted to convert GPT to MBR without access to an OS

I wiped my Windows 8 thinking I could install Windows 7 x86 but I can't because the disk is GPT. I need to convert to MBR.

I'm trying to use GParted to convert to MBR but it seems GParted can only do the opposite. Can GParted be made to convert to MBR?


Source: (StackOverflow)

Advertisements

Install GParted on a mac with Homebrew or Macports?

I'd like to install Gparted on my mac, and I thought I could use Homebrew or Macports to help with that, but I can't seem to figure it out. I tried using Homebrew because I haven't really heard good things about Macports.


Source: (StackOverflow)

How can I resize an NTFS partition when there are bad sectors?

I want to extend a partition, but in between the partition and the un-allocated space, there is a large NTFS partition in which Windows is installed.

When I use GParted to try and move the NTFS partition to the end, it gives me an error saying that I have bad sectors and encourages me to run chkdsk. I did this, but the bad sectors remain.

It tells me to retry the resize with some sort of --badsectors flag, but I have no idea how to do it exactly.

What/where do I use that flag and how can I move re-size the partition if there are bad sectors?


Source: (StackOverflow)

How to move a partition to the end in gparted?

I can't find a way to move the partition /dev/sdb2 to the end, where 12GB are free.

enter image description here

I can resize (expand) the partition, but not create (insert) any free space in front of it.

How to do the trick?

(There are 2 small black arrows on the top of the popup window in the screenshot at the side of the blue box that represents the 400 GB sdb2 - I can only move the right arrow to the right, which extends the size, but I cannot move the left arrow. When I enter something in the free space preceding box it is always reset to zero by the programm immediateley)

I hope I explained this well enough, please feel free to ask for details.

This is serious for me as I am expanding a live image.

Maybe there is another solution with linux commandline tools ?


Source: (StackOverflow)

Resize partition of Windows 7 running on VirtualBox with dynamically allocated storage

I run Windows 7 inside VirtualBox.

I resized the disk of Windows 7 from 25 GB to 50 GB:

VBoxManage modifyhd Windows\ 7\ Pro.vdi --resize 50000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

VirtualBox size

PROBLEM: I can' grow the partition, neither with Windows 7 itself nor with GParted:

Disk management

GParted

It looks like VirtualBox does not tell the client OS about the new size.
What additional step is necessary?


Source: (StackOverflow)

Gparted cannot resize extended or LVM partition

I created a VM using VirtualBox and realized it was small. So, i managed (after some time) to create a new, bigger HD.

Live GParted CD image (v.022):

GParted screencshot

Now I need to integrate the unallocated space to the /dev/sda5 partition.
- Right clicking on sda5 shows the option to resize but I dont get any free space before or after.
- I though that maybe I need to extend the sda2 partition first but right clicking on sda2 does not allow me to resize.

Do you have any useful advice? Thanks in advance.

*In case the image disappears at some point here is a textual representation of the GParted GUI info:
/dev/sda1 ext2 /dev/sda2 extended /dev/sda5 lvm2 pv unallocated


Source: (StackOverflow)

How to hide a partition?

I bought a small 32 GB SSD to store the operating system (Windows 7) and my applications.

I'll copy the existing boot partition (30 GB) from my harddisk (WD Velociraptor) to the SSD using GParted but I'd like to keep the existing partition intact (keeping all data on it) so I can go back to it if there is a problem with the SSD.

How can I hide the partition so it is not visible anymore to Windows? What should I change with GParted?

Second question: how can I keep the harddisk partition synced with the SSD so I have a backup? I'm looking for a near real-time solution (not something like Acronis Drive Image).


Source: (StackOverflow)

How to extend the primary partition for Ubuntu Server running in VMWare Player

I ran out of space on a VM I use at home. It runs Ubuntu server and the existing space was 20G. I decided to increase it to 100G to ensure I have plenty of breathing room.

So I followed the instructions here : http://www.rootusers.com/use-gparted-to-increase-disk-size-of-a-linux-native-partition/

And everything went well until the final step. Attempting to grow the /dev/sda1/ partition size to 99G fails on the 3rd step: 'Check filesytem on /dev/sda1 for errors and (if possible) fix them.'

It looks like this step trys to run : e2fsck -f -y -v /dev/sda1

This throws an an error saying 'The superblock could not be read or does not describe a correct ext2 filesytem.' The partition in question is an ext3 partition but I'm not sure whether that matters.

The primary partition is still ok and Ubuntu still boots, so I think it's ok. Any ideas on what I need to do to make it bigger?

EDIT : Output from fdisk -l when booted from gparted live disk.

Disk /dev/sda: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16064 * 512 = 9225280 bytes

    Device Boot     Start       End      Blocks    Id  System
/dev/sda1    *          1      2481    19921920    83  Linux
/dev/sda2           12924     13054     1052275+    5 Extended
/dev/sda5           12925     13054     1044225    82 Linux swap / Solaris

EDIT 2 : fdisk -l when booted in ubuntu server

Interestingly, the output is different when I run after booting the VM normally.

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders, total 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00044fd6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    39845887    19921920   83  Linux
/dev/sda2       207607995   209712509     1052257+   5  Extended
/dev/sda5       207624060   209712509     1044225   82  Linux swap / Solaris

EDIT 3: Output for mount | grep " / "

/dev/sda1 on / type ext4 (rw,errors=remount-ro)

Source: (StackOverflow)

How to merge unallocated partition to linux partition

I have a windows partition which was 500gb, then i installed ubuntu with a 40gb partition, now i am short of space, so i booted my ubuntu14 live cd and shrunk my windows paritition and got 88gb free unallocated space.

Now i want to merge this 88gb unallocated space to my linux parition.

What have I tried :- I tried to Move/resize this unallocated space from live cd, but it is greyed out.

What I want :- How to merge this unallocated space to my linux partition such that my 40gb linux becomes (40+88) 128gb single partition. enter image description here enter image description here enter image description here

UPDATE:- I needed the 88 gb so i reshrunk it to 44 gb and gave it back to windows, now the unallocated space is 44gb, and all the screenshots are taken from Gparted by live boot. So you can see the options provided.

UPDATE 2:- I was not able to re-allocate because of the swap on, thanks to harrymc, I got the idea what Daniel was trying to say.


Source: (StackOverflow)

Add unallocated space to lvm

I shrunk my windows partition and now have 10 GB of unallocated space that I now want to use to grow my / partition which is an ext4 in an lvm. I'm running Fedora 12.

I ran system-config-lvm but the "Initialize Entry" button is greyed out.

The unallocated space is not adjacent to the lvm but I cannot move the partitions in GParted like I was able to with ext3 in the past. I cannot create a new partition either as it says it cannot have more than 4 primary partitions. I don't see any option to create an extended partition.

So my question is, how do I add that unallocated space to the lvm so I can grow the size of the / partition?

I don't want to reinstall Fedora.


Source: (StackOverflow)

How long should it take for gparted to shrink a 44 GB partition down to 10 GB

I've had gparted running to shrink a Backtrack partition down to 10 GB from 44 GB. I was wondering how long that should take and wether or not it's jammed. It's been on "shrink file system" for well over an hour now.


Source: (StackOverflow)

How did I end up with a partition inside a partition?

I used to have Vista installed, but wanted to upgrade to 7. I partitioned my drive, installed 7 on the new partition then copied all my data over from the Vista partition. Then, I went to remove the Vista partition, but now my system won't boot. I used Gparted but it seems like I somehow have a partition inside a partition. I see I have /dev/sda2, then I can flip the triangle open and inside is my Windows 7 partition /dev/sda5. How can I get my Windows 7 partition out of there?

Thanks in advance!


Source: (StackOverflow)

Moving a LVM/LUKS encrypted partition to the end of a harddrive?

I need to move a LUKS encrypted partition to the end of a harddrive to expand another partition.
Does anyone know how to do this?

Is it possible to do this with other partition editing programs?

Gparted doesnt support LUKS/LVM enter image description here

EDIT:
I wrote up a quick tutorial on how I fixed this: http://matthiaslee.com/?q=node/33


Source: (StackOverflow)

Partition Not Showing up in /dev

I recently unmounted a 4TB hard drive from one computer in order to access the files directly from another computer. It seemed like there were no problems with the unmounting process. When connecting the hard drive to the other computer, the hard drive is recognized in "/dev" as sdb, but the partition "sdb1" is not appearing, therefore I cannot mount it. If I run

fdisk -l /dev/sdb


WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 4000.8 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders, total 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot          Start     End      Blocks      Id  System
/dev/sdb1               1  4294967295  2147483647+  ee  GPT

The sdb1 partition shows up. Since this is a 4TB partition, I also ran the command

parted /dev/sdb

GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Model: ASMT 2105 (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

Then typed "print". In this case, the sdb1 partition does NOT show up.

Why is there a mismatch of information here? Does this mean that the partition has been deleted? Is there any way to possibly recover this partition and mount it?

Thank you very much in advance


Source: (StackOverflow)