The tag has no usage guidance.

learn more… | top users | synonyms

29
votes
5answers
32k views

GPT or MBR: How do I know?

How can I tell whether my harddrive is laid out using an MBR or GPT format?
22
votes
2answers
83k views

Remove GPT - Default back to MBR

I keep receiving this error: Warning!! Unsupported GPT (GUID Partition Table) detected. Use GNU Parted I want to go back to the normal MBR. I found some advice here and did: parted /dev/sda ...
7
votes
1answer
2k views

How to boot FreeBSD system with broken bootcode?

I have an HDD (or SSD, or flash drive) with FreeBSD installed on it, and somehow I broke the bootcode (first 446 bytes of MBR). How could I boot into this FreeBSD?
7
votes
3answers
15k views

Moving /boot and MBR to a new drive

I have a CentOS 6 server with two hard drives in it. My old 3TB drive has been giving me some issues so I'm moving things over to a new drive. Because my / and /home partition are managed by a LVM ...
7
votes
2answers
827 views

Determine what program is in my MBR code

I've done a lot of partitioning / dual booting on my Macbook Pro. Right now I have Mac OS X installed along with Ubuntu 12.04, with Grub installed on the Ubuntu partition. I am wondering - what is ...
6
votes
3answers
2k views

Linux/GParted can see partition table but dd bs=512 count=1 can't

I have an MBR formatted sd card and when connect to a Linux machine (xubuntu 12.04) it can mount a partition and parse the file system (as can GParted). However, when I try to read the MBR from the ...
5
votes
1answer
2k views

Overwritten MBR: Is partial/complete recovery possible?

I have a Sony VIAO laptop setup as dual boot (Ubuntu 12.10/Windows 7). Since I wanted to try Archlinux, I installed VirtualBox in Ubuntu. To create a bootable USB stick (from the ISO image on my hard ...
4
votes
1answer
97 views

How to understand partition table on hybrid ISO image?

If I inspect an hybrid ISO with tools like fdisk and gdisk, then looks like hybrid ISO has both the MBR and GPT in order to support both the BIOS and UEFI: # gdisk -l /dev/sdb GPT fdisk (gdisk) ...
4
votes
2answers
606 views

How to create MBR partition /dev/ nodes FreeBSD for mounting

I currently have FreeBSD version FreeBSD 10.0-RELEASE. Installed using a ZFS root. I'm attempting to mount a MBR partitioned drive but I can't get the partition nodes, /dev/ada4p1, etc. The partitions ...
4
votes
2answers
6k views

Copy MBR and boot partition to a smaller disk

I'm using a 32GB SD card for my raspberry pi. I have successfully transferred the operating system (Archlinux ARM) to a usb harddrive. Which means that I only need the boot partition on the SD card. ...
3
votes
2answers
839 views

Where to find the VBR on the /dev/sda1 partition?

I have one built-in hard disk /dev/sda which looks like this: Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors Units = sectors of 1 * ...
3
votes
2answers
392 views

How to construct a GPT-only partition table on Linux?

All of the tools I've tried until now were only capable to create a dual (GPT & MBR) partition table, where the first 4 of the GPT partitions were mirrored to a compatible MBR partition. This is ...
3
votes
2answers
2k views

area on disk after the MBR and before the partition start-point

If I use a MBR partitioning scheme and create a primary or extended partition with fdisk(version 2.20.1), then it starts on sector 2048. If I remember correctly, then older versions of fdisk started ...
3
votes
2answers
2k views

Transforming a disk from MBR to GPT

I have a disk with classic MBR and want to transform it to use GPT without data loss. I have seen several more or less useful tutorials, but most of them are dealing with the specific problems related ...
3
votes
1answer
28 views

Partition table consuming 32K of data?

I create a file of 100MB size, and using losetup assign it to /dev/loop0. Consequently I use fdisk to create an empty DOS partition table, and a new partition that spans the entire disk. One thing ...
3
votes
2answers
159 views

Lost everything after using install-mbr

I was dual booting Windows 8 and BackTrack5 but I erased the MBR while using easyBCD. So I tried this… sudo install-mbr -i n -p D -t 0 /dev/sda1 /dev/sda1 was the primary partition in my ...
3
votes
1answer
3k views

How to dual boot PC-BSD 10.3 (with zfs file system) and debian 7 (crunchbang) using grub2 boot loader in MBR?

I want to dual boot PC-BSD 10.3 with ZFS as the root file system (the only file system) with Debian 7 (crunchbang linux) with ext4 using grub2 boot loader installed in MBR and grub is managed by the ...
3
votes
2answers
479 views

Copying OS from one drive to another migrating from MBR to GPT - what to watch out for?

I'm looking at replacing my current MBR-partitioned 2 TB system drive with quite possibly a 3 TB drive. Copying the files should not pose a problem, but are there any gotchas to watch out for, ...
3
votes
2answers
4k views

How to restore GRUB after windows XP installation?

After I've installed windows xp for dual booting, I need to restore grub of my archlinux installation. I did it a lot of times with windows 7, but this time heavens decided to torture me. I have ...
3
votes
1answer
351 views

Can't format HDDs and install linux to Dell hybrid ultrabook

I've tried installing OpenSUSE 13.2, Debian 8/8.1 and Ubuntu 15.04 (all them amd64). Debian/Ubuntu won't show disks and OpenSUSE can't format the partitions created on them. During the install, ...
3
votes
1answer
11k views

Creating EFI bootable GPT partition with gdisk on previous MBR, GPT Damaged

So this is a sister question to my previous one about partitioning for a UEFI boot loader. Parititioning for a UEFI boot loader, can LVM be used? Disclaimer: I don't give a flip about the data on it....
3
votes
1answer
962 views

fdisk, dd, and the Rapsberry pi

I was trying to wipe my 4GB SD card which acts as the hard drive for the Raspberry Pi, so I went into Mac OS X Disk Utility* and Erased the entire disk, and specified that the whole disk be one big ...
3
votes
1answer
292 views

How to detect if the FreeBSD disklabel is on the first sector of the disk?

I have attached a FreeBSD disk to my Linux machine. How to detect if the disklabel(aka bsdlabel) is on the first sector of the disk or the PC MBR is on the first sector of the disk and disklabel is ...
2
votes
2answers
148 views

Advantage of GPT over MBR partition table [closed]

What is the advantage GPT partitioned hard drives on older BIOS system ? when boot drive is bellow 2TB on a BIOS system or UEFI boot disabled grub on BIOS system with GPT partitioned needs an ...
2
votes
2answers
234 views

How does system know where the first logical disk starts?

I'm trying to understand the ms-dos partition table, and there's the following diagram: It comes from this site. Almost everything is pretty clear to me, but there's one thing I don't get. As you ...
2
votes
2answers
130 views

Can I safely resize my partition from its beginning?

Currently dual booting Windows 8 and Linux Mint 14, sooner or later I will give more space to my Linux system. Is resizing my Linux partition from the beginning a safe operation ? If yes, could you ...
2
votes
1answer
36 views

LUKS on an internal hard drive

I have a hard drive which is encrypted using LUKS. It was originally an external hard drive. Recently I removed the casing and connected it directly (via SATA). However, when I connect it directly, I'...
2
votes
4answers
7k views

Unable to boot the operating system

I installed Lubuntu 11.10 and it run without problems. I decided to install Ubuntu 11.10 mini instead of Lubuntu 11.10. After the installation the operating system didn't boot. I only saw the black ...
2
votes
0answers
52 views

backup and restore whole disk

I am using iMac, with GPT and Hybrid MBR partition table. the GPT layout is: EFI partition.(FAT32) Windows 7 partition.(NTFS) MacOS partition.(HFS+) Linux.(ext4) data.(exfat) the hybrid MBR is ...
2
votes
1answer
133 views

How to reduce ext4 rootlv on centos 6

Is there a way to perform a safe reduce in rootlv at rescue mode? Most of the internet's explanations tells, basically, that it can be done using the following steps sequence: vgchange; fsck; ...
2
votes
0answers
161 views

Accidentally installed BIOS/MBR on GPT/UEFI

Quite some time ago, I installed a Linux system on my moms laptop. And just recently I noticed I have installed and partitioned (with fdisk) a BIOS/MBR on a system, that already has UEFI. The machine ...
2
votes
1answer
3k views

How to move GRUB installation to a different partition?

I have a laptop for work. I originally had Windows 7 on it then I installed Linux Mint 17 to dual boot. During my installation of Mint 17 I accidentally installed GRUB on the wrong partition (sda2). ...
1
vote
2answers
56 views

alignment of extended partitions

I read an article on aligning file-systems on partitions and this said that: When manipulating MBR disks, be aware that the alignment of extended partitions is unimportant. These partitions hold ...
1
vote
1answer
109 views

Using dd in order to save and restore a boot sector?

Through some legacy code I'm using dd to save and restore (parts) of a bootsector after unzipping the .iso of the system onto the hard drive (from a live cd). I use the following command to save the ...
1
vote
2answers
48 views

MBR and data on pendrive

I have a pendrive (/dev/sdd). I ran fdisk -l and that shows me the drive and its partitions. After that I did: dd if=/dev/zero of=/dev/sdd bs=512 count=1 I deleted the MBR (so the partitions table)...
1
vote
1answer
2k views

How to install after windows 8.1 with MBR partition

I have a laptop, which has a 500GB hard disk and with MBR partition, and I install my windows8.1 on it, but I left ~75G unused which I would like to use it for OpenSuse13.1. Now I have 2 USB, one is ...
1
vote
1answer
609 views

How to change the disk signature of a raw image?

I am talking about disk signatures in context of the MBR. The area from 440 to 444 bytes. Let's say I got a bootable raw image (bootable in a virtual machine). How can I set the disk signature to a ...
1
vote
1answer
99 views

Location on disk to write a byte-flag?

I am writing an update utility for an embedded Linux device for which I am responsible. I'm creating a basic side-by-side setup, where updates are applied to a staging partition and then the ...
1
vote
1answer
38 views

GRUB rescue mode - where does it live?

My understanding is that when I install GRUB, a primary OS loader gets written to the MBR and a secondary OS loader (the bulk of GRUB) gets written to some other partition. In normal operation, the ...
1
vote
1answer
85 views

Dual booting Ubuntu and windows 7

I am trying to dual boot Windows and Linux on a machine at work. While I haven't used windows in a while, It is a process that used to work most of the time. But I haven't been as lucky with this ...
1
vote
1answer
1k views

Remove all traces of GPT disk label

I've got an USB pen drive and I'd like to turn it into a bootable MBR device. However, at some point in its history, that device had a GPT on it, and I can't seem to get rid of that. Even after I ran ...
1
vote
1answer
202 views

hexedit: change number of columns (bytes per line)

I am using hexedit to show/edit disk MBR (512 Bytes, copied with dd). When I open the file, hexedit displays the file as 9 columns, 4 bytes per column (36 bytes per line). That is very unfortunate. I ...
1
vote
1answer
2k views

Understanding syslinux and partitioning

I am trying to learn and especially understand how partitionning and boot-loaders work. The problem is that I got it all twisted in my mind. In the end I don't understand anything anymore. I know ...
1
vote
2answers
3k views

Installing GRUB in a dual-boot

I've just installed my OSes on a new HDD: Windows 7 and Debian 7. As usual I first installed Windows, then Debian. At the first attempt, GRUB seems to not have been installed properly, because my ...
1
vote
2answers
397 views

What information is stored on the gap before the first partition?

Partitioning tools(for example fdisk) tend to leave a 2047 sector(LBA 1-2047, 1048064 bytes) between the MBR and first partition. On LBA 0 there is a MBR and from LBA 2048 starts the first partition. ...
1
vote
2answers
944 views

Fdisk partition alignment, NAND, not showing specified heads

I ran fdisk with these options, fdisk -H 32 -S 32 /dev/sdc Then I made a new label, and created an aligned first partition. Disk /dev/sdc: 7743 MB, 7743995904 bytes 32 heads, 32 sectors/track, ...
1
vote
1answer
47 views

gpart finds partitions but puts zeroes on all their specs

So this isn't my hard drive I'm working on so I'm not too sure how it got into this state. My friend had Windows XP on it and wasn't using it much then suddenly it wouldn't boot anymore. He just wants ...
1
vote
0answers
65 views

Repair File System After changing the partition structure

I have dual booted linux centOs with windows. Now I changed the partition structure of linux with a partedMagic live CD. Since I have used the EasyBcd to make the boot menu on windows, I can still ...
1
vote
0answers
885 views

Kali Linux doesn't detect my hard drive partitions

I wanted to install Kali Linux on my computer that is currently running windows 7 64bits, so I created a 200Gb free partition, made an installation USB key, and everything was running perfectly during ...
1
vote
1answer
105 views

OSX: MBP: How does system detect sd card inserted?

I have a MacBookPro running Mavericks. I can insert one sd card into the slot and it mounts just fine. Another sd card I slip in and nothing happens. It does not appear in disk utility. It does ...