Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MBR wiederherstellen mit dd ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
blice
Guru
Guru


Joined: 12 Feb 2005
Posts: 598
Location: D- 26188

PostPosted: Sun Apr 09, 2006 7:32 pm    Post subject: MBR wiederherstellen mit dd ? Reply with quote

Ich hab jetzt mal ein ganz aussergewöhnliches Anliegen,
leider passiert es mir hin und wiedermal, daß ich den MBR kille, bisher muss ich immer folgende schritte durchgehen

1) windows cd einlegen - reparaturkonsole -> fixmbr
2) ne knoppix/kanotix live-cd einlegen , gentoo chrooten -> grub-install /dev/hda
da ich aber ne saukomplizierte verzeichnisstruktur habe (siehe kasten) muß ich immer erst manuell gentoo - boot - tmp - var/tmp etc mounten bevor ich grub installieren kann


Code:

#cat /etc/mtab

/dev/hda8 / ext2 rw,noatime,errors=continue 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw 0 0
/dev/hda6 /boot ext2 rw,noatime 0 0
/dev/hda7 /suse ext2 rw,noatime 0 0
/dev/hda9 /opt ext2 rw,noatime 0 0
/dev/hda11 /daten ext2 rw,noatime 0 0
/dev/hda12 /backups ext2 rw,noatime 0 0
/dev/hda5 /mnt/win_d ntfs rw,nosuid,nodev,gid=100,umask=000 0 0
/dev/hdc1 /mnt/speicher vfat rw,nosuid,nodev,gid=100,uid=1002,uid=1001,umask=000 0 0
none /dev/shm tmpfs rw 0 0
/backups/tmpordner/usrtmp/kdecache-bodo /var/tmp/kdecache-bodo none rw,bind 0 0
/backups/tmpordner/usrtmp/portage /var/tmp/portage none rw,bind 0 0
usbfs /proc/bus/usb usbfs rw,devmode=0664,devgid=85 0 0
automount(pid6185) /media autofs rw,fd=4,pgrp=6185,minproto=2,maxproto=4 0 0

**edit** Dieses "dämlcihe" binden hab ich mir eigebrockt, weil ich die datenmengen von /tmp /usr/tmp /var/tmp unterschätzt habe, und / (root) eigentlich hätte mind 6GB gebraucht... **

Kennt zufällig jemand ne möglichkeit, wie ich aus ner livecd (knoppix/kanotix etc) den mbr wiederherstelle ohne den oben beschriebenen aufwand ? gibt es ne möglichkeit NUR den mbr inne zip zu packen und von überall zurückzuspielen (so ähnlich wie norton-ghost plattenteile rettet) ?

ginge sowas mit dd , und wenn wieviel (k)bytes müßte ich sichern ?
_________________
Gentoo seit 2004.3
Skype: bodokhan
SecondLife: Bodokhan Fall
Email: blice@gmx.de
Back to top
View user's profile Send private message
s|mon
Apprentice
Apprentice


Joined: 04 Jul 2004
Posts: 219
Location: Bayern [de]

PostPosted: Sun Apr 09, 2006 8:25 pm    Post subject: Reply with quote

Also der ganze mbr von hda MIT Partitionstabelle sollte mit
Code:
 dd if=/dev/hda of=outfile bs=512 count=1
gesichert werden können.
Findet sicher aber einiges dazu bereits im Forum. Falls du nur den Bootloader wiederherstellen willst, sollten wohl die ersten 446 Bytes genügen, aber da liesst du wohl sicherheitshalber nochmal nach.

https://forums.gentoo.org/viewtopic-t-139334-highlight-mbr+dd+446.html
https://forums.gentoo.org/viewtopic-t-447838-highlight-mbr+backup.html

mfg, s|mon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
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