Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 24 Apr 2019, 10:23
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to fix a Windows 7 MBR?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
Captanblue

Joined: 06 Oct 2010
Posts: 14

PostPosted: Mon 15 Apr 2019, 10:54    Post subject:  How to fix a Windows 7 MBR?
Subject description: From Xenialpup
 

Good morning everyone! I'm not sure how to describe my issue.

I have a windows machine that has a hadrive with a corrupted MBR. I'm using puppy linux (of course) and I was wondering if anyone had any tips for using what comes with puppy linux to fix an MBR issue.

I'm using xenialpup64 version 7.5 and trying to fix a windows 7 computer.
Back to top
View user's profile Send private message 
Galbi


Joined: 21 Sep 2011
Posts: 1077
Location: Bs.As. - Argentina.

PostPosted: Mon 15 Apr 2019, 11:55    Post subject:  

Check this (loooong) thread:
http://murga-linux.com/puppy/viewtopic.php?t=58305

_________________
Remember: "pecunia pecuniam parere non potest"
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12023
Location: S.C. USA

PostPosted: Mon 15 Apr 2019, 11:57    Post subject:  

Xenialpup64 7.5 will need to be booted from some other device.
The hard drive is not used or mounted.


Linux has ms-sys.

First type ms-sys in a console and see if it is already in Xenialpup64 7.5.
If ms-sys is already installed. Should get a help info output.
Example:
Quote:
root# ms-sys
Usage:
ms-sys [options] [device]
Options:
-1, --fat12 (Write a FAT12 floppy boot record to device)
-2, --fat32nt (Write a FAT32 partition NT boot record to device)
-e, --fat32pe (Write a FAT32 partition PE boot record to device)
-3, --fat32 (Write a FAT32 partition DOS boot record to device
-4, --fat32free (Write a FAT32 partition FreeDOS boot record to device
-5, --fat16free (Write a FAT16 partition FreeDOS boot record to device
-6, --fat16 (Write a FAT16 partition DOS boot record to device
-n, --ntfs (Write a NTFS partition Windows 7 boot record to device
-o, --fat16ros (Write a FAT16 partition ReactOS boot record to device
-c, --fat32ros (Write a FAT32 partition ReactOS boot record to device
-q, --fat32kos (Write a FAT32 partition KolibriOS boot record to device
-l, --wipelabel (Reset partition disk label in boot record
-p, --partition (Write partition info (hidden sectors, heads and drive id)
to boot record
-H, --heads <n> (Manually set number of heads if partition info is written
-B, --bps <n> (Manually set number of bytes per sector (default 512)
-O, --writeoem <s> (Write OEM ID string <s> to file system
-S, --writewds <x> (Write Windows Disk Signature hexadecimal <x> to MBR
-7, --mbr7 (Write a Windows 7 MBR to device
-i, --mbrvista (Write a Windows Vista MBR to device
-m, --mbr (Write a Windows 2000/XP/2003 MBR to device
-9, --mbr95b (Write a Windows 95B/98/98SE/ME MBR to device
-d, --mbrdos (Write a DOS/Windows NT MBR to device
-s, --mbrsyslinux (Write a Syslinux MBR to device
-t, --mbrgptsyslinux (Write a Syslinux GPT MBR to device
-a, --mbrreactos (Write a ReactOS MBR to device
-k, --mbrkolibrios (Write a KolibriOS MBR to device
-r, --mbrrufus (Write a Rufus MBR to device
-g, --mbrgrub4dos (Write a Grub4Dos MBR to device
-b, --mbrgrub2 (Write a Grub 2 MBR to device
-z, --mbrzero (Write an empty (zeroed) MBR to device
-f, --force (Force writing of boot record
-h, --help (Display this help and exit
-v, --version (Show program version
-w, --write (Write automatically selected boot record to device

Default Inspect current boot record

Warning: Writing the wrong kind of boot record to a device might
destroy partition information or file system!


root#


I have never used this so use with much caution


Looking at the options offered.
For Windows 7.
In a console.
If hard drive is /dev/sda
A mbr for drive sda.
Code:
ms-sys  -7 /dev/sda

or
Code:
ms-sys  --mbr7 /dev/sda

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
foxpup


Joined: 29 Jul 2016
Posts: 803
Location: europa near northsea

PostPosted: Mon 15 Apr 2019, 14:55    Post subject: why not grub4dos?  

@Captanblue
Are you sure it is mbr and not gpt?

@bigpup
I didn't know about ms-sys. Interesting!
But I just wondered, why not let grub4dos install it's mbr and boot windows 7 from grub4dos?
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 3465
Location: Tamworth UK

PostPosted: Mon 15 Apr 2019, 16:14    Post subject:  

Boot to the Windows install CD/DVD and do a FIXMBR.
That is the proper tool for that job rather than trying to fiddle it from Linux.

_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
cthisbear

Joined: 29 Jan 2006
Posts: 4378
Location: Sydney Australia

PostPosted: Mon 15 Apr 2019, 20:59    Post subject:  

Use Bootrec.exe in the Windows RE to troubleshoot startup issues

https://support.microsoft.com/en-us/help/927392/use-bootrec-exe-in-the-windows-re-to-troubleshoot-startup-issues

https://www.howtogeek.com/howto/32523/how-to-manually-repair-windows-7-boot-loader-problems/

Youtube video how to:

https://www.youtube.com/watch?v=o_BN5PPald8

Repair Windows 7/Vista Startup Issues With Windows Recovery Environment [Tutorial]

"""""""

There are also freebies around eg;

https://www.disk-partition.com/download-home.html

https://www.easeus.com/partition-manager-software/free-mbr-repair-tool.html

Use at your own risk.

Chris.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1342s ][ Queries: 12 (0.0180s) ][ GZIP on ]