Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Destroyed partition table & MBR - dual boot system help


  • Please log in to reply
6 replies to this topic

#1 spj323

spj323

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:11:55 AM

Posted 08 September 2013 - 06:04 PM

I was running a dual boot system with a single hard drive.  One partition had Win7, the other Fedora 19.  This was working well and I was using GRUB 2.  Somehow after resizing partitions and moving data from one drive to another (new drive), I completely lost everything important to Win7 booting up other than the data itself.  I'm not too experienced with partition tables / MBR / and other important HDD concepts, but I can work my way around a computer for the most part.

 

Anywho, I'm stuck here with 3 drives, one of which is working as it should.  I have a 128GB SSD running Fedora 19 - this is what I'm currently using and able to boot to.  The other is a 256 GB SSD which is completely empty.  Lastly, I have a 3 TB HDD which is holding the Win7 partition.  What I want is the 128GB drive to hold Fedora, the 256GB drive to hold Windows 7, and the 3 TB drive as storage for media.  I want to keep using GRUB 2.

 

Currently the bootloader doesn't see Windows at all.  I've run TestDisk on the 3TB drive in an attempt to restore what I destroyed, but I really don't think I fixed anything.  I've included screenshots of what GParted shows me.

Attached Files


Edited by hamluis, 10 September 2013 - 11:34 AM.
Moved from Win 7 to Linux - Hamluis.


BC AdBot (Login to Remove)

 


#2 spj323

spj323
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:11:55 AM

Posted 09 September 2013 - 07:34 AM

Bump with some addition info.  This is the output of fdisk -l from Fedora.

 

sdb is the drive with Fedora, sda is the empty drive, sdc is the Windows drive. 

 

[root]# fdisk -l

Disk /dev/sdb: 120.0 GB, 120034123776 bytes, 234441648 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 label type: dos
Disk identifier: 0x00014f5f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048     1026047      512000   83  Linux
/dev/sdb2         1026048   234440703   116707328   8e  Linux LVM

Disk /dev/sda: 256.1 GB, 256060514304 bytes, 500118192 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 label type: dos
Disk identifier: 0xf43bd943

   Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0xcf05c011

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            4095   234452609   117224257+   f  W95 Ext'd (LBA)
Partition 1 does not start on physical sector boundary.
/dev/sdc5            4096   234441640   117218772+   7  HPFS/NTFS/exFAT

Disk /dev/mapper/fedora-swap: 8472 MB, 8472494080 bytes, 16547840 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 /dev/mapper/fedora-root: 53.7 GB, 53687091200 bytes, 104857600 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 /dev/mapper/fedora-home: 57.3 GB, 57344524288 bytes, 112001024 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

 

 

Thanks for looking!


Edited by spj323, 09 September 2013 - 07:35 AM.


#3 spj323

spj323
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:11:55 AM

Posted 09 September 2013 - 05:39 PM

bump



#4 technonymous

technonymous

  • Members
  • 2,480 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:08:55 AM

Posted 10 September 2013 - 05:36 PM

Grub works cause both OS's you had before was on the same drive paritioned, so when the system boots you get a nice little selection menu either from Fedora or from Windows boot manager, which ever OS is installed on the first partition runs the boot loader. So now it seems you want to have 2 master drives One with Fedora the other with Windows 7, & the other drive as just storage. Typically in newer machines the bios has a boot manger built in. Every system is different but it's ike the F11 or F12 keys it will usually say as it boots up in the POST. Once you tap this key you then get a list of which hardware devices you want to boot into. Just install windows on the secondary hd as you normally would. The bios will boot into the first device on the boot list. However, to access Windows you use the boot manager F11 or F12 key which ever it is to get to the boot loader. You do this also to boot into live cd's or USB sticks. Hope that helps. Oh if your bios has no boot loader then you need to load a boot loader onto a floppy disk. Older systems have to do it this way.


Edited by technonymous, 10 September 2013 - 05:41 PM.


#5 spj323

spj323
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Local time:11:55 AM

Posted 10 September 2013 - 07:01 PM

GRUB 2 can handle booting from multiple discs.  My question is more along the lines of what I need to do to get the Windows drive set up to do so from it's current (somewhat disabled) situation.


Edited by spj323, 10 September 2013 - 07:02 PM.


#6 Zen Seeker

Zen Seeker

  • Members
  • 695 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:10:55 AM

Posted 11 September 2013 - 01:10 AM

I have the same setup you do on all my systems, minus the empty SSD. The last time I migrated disks was when I installed SSD on two systems in 2011.

 

As you noted GRUB2 is fine. It sits above the partitions. I have Windows on my first partition and Linux on my second partition. I don't bother with the BIOS boot loader as hitting F keys to make a choise is a pain with my Asus systems...due to the BIOS password protection I have to enter a passowrd before I can select a boot option. But if I just let it boot to GRUB I can select what I want without needing a PW.

 

Anyway, the reason that windows is on the first partition is because that's where windows expects to be. (BIOS BL will get around this but still a pain for me.) Linux doesn't care where it is as long as you point the boot loader, GRUB, to the right spot.

 

When Linux breaks on the rare occation I use my live CD to boot and re-attach the OS to the loader. The help section under GRUB is fantastic for this. However for Windows it's more of a pain. I've had to re-install via DVD and when that's done it breaks GRUB by over writing the MBR. Then I have to do the above trick to fix/re-apply GRUB.

 

As I always have to look this up on search engines, I have no idea what I do with the bookmarks I save after each time, I'm not able to point you in the right direction at the moment.

 

My first question would be; Do you think that everything is fine and all you need to do is get GRUB2 to "see" the Windows partition? If that's the case you should be able to use which ever tool you use to install programs to re-install GRUB. That would be the fastest way and it should search and find everything automatically.

 

If Windows is damaged you're going to have to repair or re-install and then use a/your Linux live CD to repair GRUB due to Windows breaking it.

 

As it's late, or early in the morning, I might not be as clear in my discriptions as I think I am so let me know if you follow what I'm trying to discribe.

 

In this link follow the additional links to fix Windows and/or re-install GRUB. I haven't checked them all but it's a popular issue with only a few solutions.

Link - http://askubuntu.com/questions/228080/dual-boot-ubuntu-and-windows-7-bootmgr-is-missing-when-i-tried-to-boot-in-windo

 

Fixing a failed/bad GRUB re-install; http://askubuntu.com/questions/136390/windows-7-windows-8-entries-missing-after-reinstalling-grub

 

 

If you need the steps of how to re-attach the Linux OS to GRUB after fixing Windows let me know and I'll get the link from my Live CD to the help pages. It's easy to follow and only takes a little while.

 

 

Regards,

Zen



#7 technonymous

technonymous

  • Members
  • 2,480 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:08:55 AM

Posted 11 September 2013 - 06:29 AM

It's pretty darn easy to trash the MBR doing this stuff. Some helpful links here to help restore the MBR and a link to Ubuntu Wiki on how they solved the problem of getting Ubuntu and Windows to live happy together.

 

bootsect commands.

http://technet.microsoft.com/en-us/library/cc749177%28v=ws.10%29.aspx

 

Ubuntu wiki on bootsector fix.

https://help.ubuntu.com/community/BootSectorFix






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users