Re: restoring MBR

2011-08-01 Thread Andrew McGlashan
Andrew McGlashan wrote: Okay, 446 + 64 adds to 510, what about the other 2 bytes? Okay this explains all the byte usage: http://en.wikipedia.org/wiki/Master_boot_record Address Description Size in bytes 0 code area440 (max. 446) 440 dis

Re: restoring MBR

2011-08-01 Thread Andrew McGlashan
Aaron Toponce wrote: It's not that difficult, if you understand haw MSDOS partitioning is setup under GNU/Linux. The first 446 bytes are your boot loader. The next 64 bytes are your partition table. If you wish to backup just the bootloader, it's easy with dd(1): Okay, 446 + 64 adds to 510, wha

Re: restoring MBR

2011-08-01 Thread Stephen Powell
On Mon, 01 Aug 2011 07:06:09 -0400 (EDT), Camaleón wrote: > > If you add encryption to the equation things can be even worst. I assume you mean "worse". I agree. I hate full-volume encryption. > > While I agree that "playing" (backing and restoring) with MBR can be > dangerous I also think th

Re: restoring MBR

2011-08-01 Thread Camaleón
On Sun, 31 Jul 2011 16:50:35 -0400, Stephen Powell wrote: > On Sun, 31 Jul 2011 11:30:38 -0400 (EDT), Camaleón wrote: >> ... >> But regardless the option the user select at install time (do not >> install any bootloader, install it in a partition or another place or >> just putting it into MBR), i

wallpaper desktop files on Debian [was restoring MBR]

2011-07-31 Thread Tomas Kral
On Sun, 2011-07-31 at 18:21 +0200, Ralf Mardorf wrote: > > > Forwarded Message > > > From: Tomas Kral > > > To: Camaleón > > > Cc: debian-user@lists.debian.org > > > > On Sun, 31 Jul 2011 20:14:17 +1000, Andrew McGlashan wrote: > > > > Not sure if I am quite in the subject. > >

Re: restoring MBR

2011-07-31 Thread Stephen Powell
On Sun, 31 Jul 2011 18:52:53 -0400 (EDT), Aaron Toponce wrote: > On Sun, Jul 31, 2011 at 04:50:35PM -0400, Stephen Powell wrote: > > > > Sometimes restoring a backup copy of the master boot record can be > > even more dangerous than wiping it out. The master boot record contains > > the master bo

Re: restoring MBR

2011-07-31 Thread Stephen Powell
On Sun, 31 Jul 2011 11:30:38 -0400 (EDT), Camaleón wrote: > ... > But regardless the option the user select at install time (do not install > any bootloader, install it in a partition or another place or just > putting it into MBR), it would be nice the installer makes a copy of the > original M

OT - boot floppy (was restoring MBR)

2011-07-31 Thread Stephen Powell
On Sun, 31 Jul 2011 11:19:31 -0400 (EDT), Tomas Kral wrote: > > Not sure if I am quite in the subject. > > But in the old Potato days, the installer always asked to stick in a > floppy disk to write a new MBR on it. Leaving hard drive untouched. The maintainer scripts for kernel image packages

Re: restoring MBR

2011-07-31 Thread Sthu Deus
Hi, Ralf: >I've got for my bullshit PC Is it absolutely necessary to use such wording?! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4e358a36.8326cc0a.2e90.3...@m

Re: restoring MBR

2011-07-31 Thread Ralf Mardorf
> > Forwarded Message > > From: Tomas Kral > > To: Camaleón > > Cc: debian-user@lists.debian.org > > > On Sun, 31 Jul 2011 20:14:17 +1000, Andrew McGlashan wrote: > > Not sure if I am quite in the subject. > > > > But in the old Potato days, the installer always asked to stic

Re: restoring MBR

2011-07-31 Thread Camaleón
On Sun, 31 Jul 2011 17:57:57 +0200, Tomas Kral wrote: > On Sun, 2011-07-31 at 17:30 +0200, Camaleón wrote: (...) >> But regardless the option the user select at install time (do not >> install any bootloader, install it in a partition or another place or >> just putting it into MBR), it would be

Re: debian-user-digest Digest V2011 #1449, resp. Re: restoring MBR and 2.6.39-amd64 lvm-based root: fails to boot

2011-07-31 Thread Tom H
On Sun, Jul 31, 2011 at 11:28 AM, Ralf Mardorf wrote: > > Since this list allows HTML, we should use it, instead of using cryptic lines > including the backslash. There's nothing cryptic about backslashes. >From the "Code of Conduct" section of http://www.debian.org/MailingLists/ "Never send you

Re: restoring MBR

2011-07-31 Thread Tomas Kral
On Sun, 2011-07-31 at 17:30 +0200, Camaleón wrote: > On Sun, 31 Jul 2011 17:19:31 +0200, Tomas Kral wrote: > > > On Sun, 2011-07-31 at 14:06 +0200, Camaleón wrote: > >> On Sun, 31 Jul 2011 20:14:17 +1000, Andrew McGlashan wrote: > >> > >> > On Sat, July 30, 2011 6:40 am, Camaleón wrote: > >>

Re: debian-user-digest Digest V2011 #1449, resp. Re: restoring MBR and 2.6.39-amd64 lvm-based root: fails to boot

2011-07-31 Thread Camaleón
On Sun, 31 Jul 2011 17:28:22 +0200, Ralf Mardorf wrote: >> > > On Sat, July 30, 2011 6:40 am, Camaleón wrote: >> > > One of my (home made) overnight cron jobs does this: > > > Very important is "overnight cron jobs"! From time to time I backup my > MBR manually, btw. also using dd and adding

Re: debian-user-digest Digest V2011 #1449, resp. Re: restoring MBR and 2.6.39-amd64 lvm-based root: fails to boot

2011-07-31 Thread Ralf Mardorf
> > Forwarded Message > > From: Camaleón > > To: debian-user@lists.debian.org > > Subject: Re: restoring MBR > > Date: Sun, 31 Jul 2011 12:06:14 + (UTC) > > > On Sat, July 30, 2011 6:40 am, Camaleón wrote: > > >>>

Re: restoring MBR

2011-07-31 Thread Camaleón
On Sun, 31 Jul 2011 17:19:31 +0200, Tomas Kral wrote: > On Sun, 2011-07-31 at 14:06 +0200, Camaleón wrote: >> On Sun, 31 Jul 2011 20:14:17 +1000, Andrew McGlashan wrote: >> >> > On Sat, July 30, 2011 6:40 am, Camaleón wrote: >> > One of my (home made) overnight cron jobs does this: >> > >

Re: restoring MBR

2011-07-31 Thread Tomas Kral
On Sun, 2011-07-31 at 14:06 +0200, Camaleón wrote: > On Sun, 31 Jul 2011 20:14:17 +1000, Andrew McGlashan wrote: > > > On Sat, July 30, 2011 6:40 am, Camaleón wrote: > > One of my (home made) overnight cron jobs does this: > > > > dd if=/dev/sda \ > > of=$DST/mbr_backup.bin

Re: restoring MBR

2011-07-31 Thread Camaleón
On Sun, 31 Jul 2011 20:14:17 +1000, Andrew McGlashan wrote: > On Sat, July 30, 2011 6:40 am, Camaleón wrote: > One of my (home made) overnight cron jobs does this: > > dd if=/dev/sda \ > of=$DST/mbr_backup.bin \ > bs=512 \ > count=1 >> $LOG 2>&1 > >

Re: restoring MBR

2011-07-31 Thread Andrew McGlashan
Hi, On Sat, July 30, 2011 6:40 am, Camaleón wrote: One of my (home made) overnight cron jobs does this: dd if=/dev/sda \ of=$DST/mbr_backup.bin \ bs=512 \ count=1 >> $LOG 2>&1 Okay, well this script isn't perfect and it sure won't help after t

Re: restoring MBR

2011-07-31 Thread Baurzhan Ismagulov
On Sun, Jul 31, 2011 at 06:27:18PM +1000, Scott Ferguson wrote: > > I've installed Squeeze to a USB drive, and grub2 installed itself to the > > internal hard drive. Now I can't boot from the internal drive since it > > has encryption software checking some sort of CRC of the MBR. Is the > > backup

Re: restoring MBR

2011-07-31 Thread Scott Ferguson
On 29/07/11 21:28, Baurzhan Ismagulov wrote: > Hello, > > I've installed Squeeze to a USB drive, and grub2 installed itself to the > internal hard drive. Now I can't boot from the internal drive since it > has encryption software checking some sort of CRC of the MBR. Is the > backup of the MBR ava

Re: restoring MBR

2011-07-31 Thread Francois Cerbelle
Hi All, What about the mbr package and the "install-mbr " command ? This MBR is wonderfull, it does exactly what is waited if you dont press any key : boot on the flaged partition, but you can also press a key and choose another partition (not flagged) to boot from (even a floppy). Have a nice

Re: restoring MBR

2011-07-30 Thread consul tores
2011/7/30 Stephen Powell : > On Sat, 30 Jul 2011 07:34:44 -0400 (EDT), Baurzhan Ismagulov wrote: >> >> That's a pity. IIRC, lilo used to save that under /boot. > > It still does.  And lilo is still available.  And I still use it. > Unfortunately, it's too late for the OP in this case. > > -- >  .''

Re: restoring MBR

2011-07-30 Thread Stephen Powell
On Sat, 30 Jul 2011 07:34:44 -0400 (EDT), Baurzhan Ismagulov wrote: > > That's a pity. IIRC, lilo used to save that under /boot. It still does. And lilo is still available. And I still use it. Unfortunately, it's too late for the OP in this case. -- .''`. Stephen Powell : :' : `.

Re: restoring MBR

2011-07-30 Thread Scott Ferguson
On 30/07/11 21:34, Baurzhan Ismagulov wrote: > On Sat, Jul 30, 2011 at 03:38:14PM +1000, Scott Ferguson wrote: >>> I've installed Squeeze to a USB drive, and grub2 installed itself to the >>> internal hard drive. >> >> Curious. I've never had that problem when installing Squeeze to a USB >> drive.

Re: restoring MBR

2011-07-30 Thread Baurzhan Ismagulov
On Sat, Jul 30, 2011 at 03:38:14PM +1000, Scott Ferguson wrote: > > I've installed Squeeze to a USB drive, and grub2 installed itself to the > > internal hard drive. > > Curious. I've never had that problem when installing Squeeze to a USB > drive. Can you boot from the USB drive? IIRC, no. >

Re: restoring MBR

2011-07-29 Thread Scott Ferguson
On 29/07/11 21:28, Baurzhan Ismagulov wrote: > Hello, > > I've installed Squeeze to a USB drive, and grub2 installed itself to the > internal hard drive. Curious. I've never had that problem when installing Squeeze to a USB drive. Can you boot from the USB drive? > Now I can't boot from the int

Re: restoring MBR

2011-07-29 Thread Joe
On Fri, 29 Jul 2011 22:10:50 +0100 Brian wrote: > On Fri 29 Jul 2011 at 13:28:48 +0200, Baurzhan Ismagulov wrote: > > > I've installed Squeeze to a USB drive, and grub2 installed itself > > to the internal hard drive. Now I can't boot from the internal > > drive since it has encryption software

Re: restoring MBR

2011-07-29 Thread Brian
On Fri 29 Jul 2011 at 13:28:48 +0200, Baurzhan Ismagulov wrote: > I've installed Squeeze to a USB drive, and grub2 installed itself to the > internal hard drive. Now I can't boot from the internal drive since it > has encryption software checking some sort of CRC of the MBR. Is the > backup of the

Re: restoring MBR

2011-07-29 Thread Camaleón
On Fri, 29 Jul 2011 20:22:38 +, Walter Hurry wrote: > On Fri, 29 Jul 2011 20:15:42 +, Camaleón wrote: > >> On Fri, 29 Jul 2011 19:52:46 +, Walter Hurry wrote: >> >>> On Fri, 29 Jul 2011 19:04:42 +, Camaleón wrote: >> >> (...) >> You noticed the first file (backup_mbr)? It

Re: restoring MBR

2011-07-29 Thread Walter Hurry
On Fri, 29 Jul 2011 20:15:42 +, Camaleón wrote: > On Fri, 29 Jul 2011 19:52:46 +, Walter Hurry wrote: > >> On Fri, 29 Jul 2011 19:04:42 +, Camaleón wrote: > > (...) > >>> You noticed the first file (backup_mbr)? It is exactly what it seems >>> but I cannot find such a file in Debian

Re: restoring MBR

2011-07-29 Thread Camaleón
On Fri, 29 Jul 2011 19:52:46 +, Walter Hurry wrote: > On Fri, 29 Jul 2011 19:04:42 +, Camaleón wrote: (...) >> You noticed the first file (backup_mbr)? It is exactly what it seems >> but I cannot find such a file in Debian systems :-? > > One of my (home made) overnight cron jobs does t

Re: restoring MBR

2011-07-29 Thread Walter Hurry
On Fri, 29 Jul 2011 19:04:42 +, Camaleón wrote: > On Fri, 29 Jul 2011 13:28:48 +0200, Baurzhan Ismagulov wrote: > >> I've installed Squeeze to a USB drive, and grub2 installed itself to >> the internal hard drive. > > And what OS does the internal hard drive have? > >> Now I can't boot from

Re: restoring MBR

2011-07-29 Thread Camaleón
On Fri, 29 Jul 2011 13:28:48 +0200, Baurzhan Ismagulov wrote: > I've installed Squeeze to a USB drive, and grub2 installed itself to the > internal hard drive. And what OS does the internal hard drive have? > Now I can't boot from the internal drive since it has encryption > software checking s

Re: restoring MBR

2011-07-29 Thread Mahesh T Pai
Baurzhan Ismagulov writes: > Hello, > > I've installed Squeeze to a USB drive, and grub2 installed itself to the > internal hard drive. Now I can't boot from the internal drive since it > has encryption software checking some sort of CRC of the MBR. Is the > backup of the MBR available somew

restoring MBR

2011-07-29 Thread Baurzhan Ismagulov
Hello, I've installed Squeeze to a USB drive, and grub2 installed itself to the internal hard drive. Now I can't boot from the internal drive since it has encryption software checking some sort of CRC of the MBR. Is the backup of the MBR available somewhere in the Linux rootfs? Please cc to me, I

Re: restoring mbr

2004-07-12 Thread Patrick Ouellette
[EMAIL PROTECTED] wrote: --- Patrick Ouellette <[EMAIL PROTECTED]> wrote: > boot into linux (a rescue CD / Knoppix, however) as root try # dd -if =/dev/zerol -of=/dev/hda bs=512 count=10 You're making up command options, as well as devices now? dd if=/dev/zero of=/dev/hda bs=512 count=10

Re: restoring mbr

2004-07-09 Thread Thomas Adam
--- Patrick Ouellette <[EMAIL PROTECTED]> wrote: > > boot into linux (a rescue CD / Knoppix, however) > as root try > > # dd -if =/dev/zerol -of=/dev/hda bs=512 count=10 You're making up command options, as well as devices now? dd if=/dev/zero of=/dev/hda bs=512 count=10 *BUT* even then, that

Re: restoring mbr

2004-07-09 Thread Patrick Ouellette
boot into linux (a rescue CD / Knoppix, however) as root try # dd -if =/dev/zerol -of=/dev/hda bs=512 count=10 This will totally blank the first 5K of space on the drive. The "leftovers" from the linux boot loader sometimes confuse Windows' installer. Pat [EMAIL PROTECTED] wrote: I have two hard

Re: restoring mbr

2004-07-09 Thread Thomas Adam
--- Paul Maser <[EMAIL PROTECTED]> wrote: > and tried a lilo -U, but nothing has worked. Read: http://www.hantslug.org.uk/cgi-bin/wiki.pl?LinuxHints/LostLILO -- Thomas Adam = "The Linux Weekend Mechanic" -- http://linuxgazette.net "TAG Editor" -- http://linuxgazette.net "

restoring mbr

2004-07-09 Thread Paul Maser
I have two hard disks that I used for linux and now I'm trying to use them with Windows, but with both drives the computer (Dell) cannot see the hard drive as bootable. It comes up with the error message "Primary hard disk drive cannot be found." The BIOS recognizes the hard drive and I can instal