ACPI administration advocacy advocacy advocacy opinion alsa amarok apache apple apt aptitude audio audo authentication automount avi awk bash BIOS boot business cache calendar calibre cdr cdrecord censorship commandline computerscience console convert cron cut database date debian degree design desktop development disk dpkg dvd economics education emacs email europe exim faad ffmpeg file files firefox firewall flash foss freedom ftp fun fuse git gnumeric graphics grep growisofs grub gtkpod hardware hardware html idiocy image imagemagick images installation ip iphone ipod iptables iso itunes ivman kde kernel keyboard knoppix lame laptop latex linux locale lockin longlines m4a microsoft mimetypes minitab mount mp3 mp4 mplayer multimedia music mysql network nfs nfs4 nmap openbox openoffice opinion opinion partition pdf perl php politics postgresql printing privacy programming rant remote rhythmbox rss rsync rxvt scp screengrab screenshot script scripting scsi security sed server shell siteadmin sitenews sitesoftware skype skype slackware sound sox spam spreadsheet ssh statistics subversion sudo svk swap t23 t43 terminal text thinkpad thunderbird time timezone ubuntu udev upgrade usb usbmount users uuid versioncontrol vfat video vnc windows wine wordpress wordprocessing X40 xwindows xwindows youtube
Recently, I installed Debian on a new system. It came pre-loaded with Vista. I used the gparted to shrink the Vista partition and create some new partitions. Thusly:
/dev/sda1 49G NTFS /mnt/windoze /dev/sda2 981M ext3 / /dev/sda6 5.8G ext3 /var /dev/sda7 587M ext3 /tmp /dev/sda8 229G ext3 /home /dev/sda9 4GB swap
After partitioning I installed Debian using the Netinst CD.
Unfortunately, Vista wouldn't boot after the partition resize. So I had to reinstall it from the install DVD. But then I couldn't boot Linux, because Vista had clobbered my master boot record. Grr...
I hoped that Debian was still on the disk. I booted using the Knoppix live CD and went to the terminal.
First, get the grub shell.
grub
Type:
find /boot/grub/stage1
This returns the location, in my case (hd0,1). Now type:
root (hd0,1)
Or whatever your location was. Then setup the MBR:
setup (hd0)
Now type 'quit' to quit grub. This restored my MBR. It allowed booting of both Windows and Linux. Luckily, Vista hadn't zapped my entire Linux installation.