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 23 Jul 2014, 01:51
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to use Puppy to repair Ubuntu grub2 MBR of your hd
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
watchdog

Joined: 28 Sep 2012
Posts: 504

PostPosted: Thu 02 May 2013, 08:40    Post subject:  How to use Puppy to repair Ubuntu grub2 MBR of your hd  

It can happen that your pc with ubuntu and grub2 (grub-pc) even in dual-boot with windows gets its mbr damaged. There are several tutorials on the internet how to repair mbr by a ubuntu live cd/dvd. I use puppy linux. You can use puppy in ram mode or you can boot a pupsave on your hd. Assuming that sdax contains the ubuntu install you have to type the following commands in puppy console:

Code:
mkdir /mnt/dir
mount /dev/sdax /mnt/dir
mount --bind /dev /mnt/dir/dev
mount --bind /proc /mnt/dir/proc
mount --bind /sys /mnt/dir/sys
chroot /mnt/dir
grub-install /dev/sda
exit
umount /mnt/dir/dev
umount /mnt/dir/proc
umount /mnt/dir/sys
umount /mnt/dir


Restart your system.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2399
Location: New Zealand

PostPosted: Sun 07 Jul 2013, 01:26    Post subject:  

Hi watchdog, you mention a dualboot ubuntu / windows scenario - would this code allow me to rebuild the mbr on a "windows only" PC?

My Windows machine is dead, and has not come back to life despite me running the recovery CDs, so I can afford to try a few things like this. Just looking for ways to rewrite the mbr in case that is why it wont boot.
Back to top
View user's profile Send private message 
watchdog

Joined: 28 Sep 2012
Posts: 504

PostPosted: Sun 07 Jul 2013, 03:44    Post subject:  

No. This procedure will work if you already installed grub and it gets damaged. I don't know if it is possible to install grub without any linux distribution and chainload windows. Now I am experimenting with Plop boot manager. I'll post some interesting things. I suggest you this software:

http://www.plop.at/en/ploplinux/download.html

Download Plop boot manager cd and try to boot your windows with it. You can install it to hd as boot manager if it works.

Edit. As second choice I suggest you ubcd. Do you know "Ultimate Boot Cd"?

http://www.ultimatebootcd.com/download.html

It is a selection of tools open source to repair disks. I used it to delete hidden encrypted partitions in usb sticks where gparted fails. Ubcd can contain some tools that can help you to repair your windows installation.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0445s ][ Queries: 11 (0.0058s) ][ GZIP on ]