SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-03-18 01:21:46

retired
Member
Registered: 2012-02-25
Posts: 19

need to reinstall grub - solved

I'm dual booted with xp and current #bang.bpo - had to reinstall xp and lost the grub bootloader. Tried the various fixes in the forums and got nowhere. Hate to have to reinstall and loose all my little tweaks - need to reinstall grub  --Help !

Last edited by retired (2012-03-20 12:43:50)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-03-18 04:26:07

mikhou
#! CrunchBanger
Registered: 2011-06-12
Posts: 148

Re: need to reinstall grub - solved

Have you tried this?

http://crunchbanglinux.org/forums/topic … -via-grub/

I would think that if you've got a live #! USB or CD then it oughta be fairly straightforward using the link above.  For other reading:

http://crunchbanglinux.org/forums/topic … th-solved/
http://crunchbanglinux.org/forums/topic … ith-grub2/

mikhou

Last edited by mikhou (2012-03-18 04:26:28)

Offline

#3 2012-03-18 12:31:13

retired
Member
Registered: 2012-02-25
Posts: 19

Re: need to reinstall grub - solved

mikhou - thanks for your reply - I have a problem - when I follow the sequence I get this --" crunchbang@crunchbang:~$ sudo mkdir -p /media/sda2 TARGET=//media/sda2
crunchbang@crunchbang:~$ sudo mount /dev/sda2 $TARGET
mount: can't find /dev/sda2 in /etc/fstab or /etc/mtab
crunchbang@crunchbang:~$ "  -

   I changed the sequence to 'sda2' as that's where my #bang is located, xp is on sda1. I also tried the sequence using sda1 but that didn't work either. Any suggestions ?

Offline

#4 2012-03-18 16:29:46

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,494

Re: need to reinstall grub - solved

sudo mkdir -p /media/sda2 TARGET=//media/sda2

This should be 2 distinct command lines, or you need to enter ; after the first command, so
either

sudo mkdir -p /media/sda2
TARGET=/media/sda2

or

sudo mkdir -p /media/sda2; TARGET=/media/sda2

I suspect that variable $TARGET was empty, and the mount command was left with one single argument, which means... mount where /etcc/fstab or /etc/mtab specified.

hth

Last edited by xaos52 (2012-03-18 16:30:23)

Offline

#5 2012-03-18 19:00:32

retired
Member
Registered: 2012-02-25
Posts: 19

Re: need to reinstall grub - solved

Guys - much thanks -  went back to the suggested thread and this time it WORKED ! -saved my A## !

Offline

#6 2012-03-19 04:44:47

mikhou
#! CrunchBanger
Registered: 2011-06-12
Posts: 148

Re: need to reinstall grub - solved

Glad that it worked out for you.  I've bookmarked several of xaos52's posts in the past knowing that at some point in the future, I'm going to need them when I screw something up!  smile

mikhou

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo