LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-01-2004, 09:29 AM   #16
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Original Poster
Rep: Reputation: 30

heheh

cooooool...yeah, I wouldn't be using windows now if I wasn't going through severe withdrawl from Icewind Dale II and Neverwinter... ^_^

cheers!
 
Old 06-12-2004, 07:36 AM   #17
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Quote:
Originally posted by thegeekster
...If you want to save your lilo mbr to a file and be able to copy it back, you will need to change the 'bs=512' parameter to 'bs=496' (I think), as that is the actual size of the mbr. 512 bytes works for Windows, but that's it
Correction on the bs=496................It should be "bs=446" to copy just the lilo boot code...........the last 66 bytes is the partition table (64 bytes) and boot code signature (2 bytes)..........

Here's some info on the MBR: Understanding and Working with the MBR
 
Old 06-12-2004, 07:41 AM   #18
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Neverwinter had a linux client that worked. Used to have it at bioware website. :-)
 
Old 06-12-2004, 11:17 AM   #19
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Actually, it wouldn't be hard to copy the whole 512 bytes of the mbr to file with 'dd' and then only copy the first 446 bytes of the file back to the mbr to restore the boot code without overwriting the partition table.................It would be real simple to make a script to do that.......

Let's see.......a script called mbr:
Code:
#!/bin/sh
#*******************************************************************************
# Name: mbr

case $1 in
  copy )
    dd if=/dev/hda of=$2 count=1 bs=512  ;;
  restore )
    dd if=$2 of=/dev/hda count=1 bs=446  ;;
  * )
    echo "Usage: $0 copy|restore FILE  ;;
esac
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Explained: "kernel panic - not syncing - attempted to kill init" sundialsvcs Linux - Software 36 04-24-2010 08:58 AM
Kernel Panic - Missing "initrd.img-2.6.8-2-686" in /boot MKSrivastava Debian 2 12-02-2005 03:09 PM
Kernel panic under 2.6.7 "VFS cannot load /dev/hda1 fs" Nichole_knc Slackware 5 10-24-2004 05:38 PM
Kernel Panic:VFS: Cannot open root device "hda3" or 00:10 shivendnrab Linux - General 1 07-01-2004 03:08 AM
error:"kernel panic: VFS: Unable to mount root fs":-( shyguy Linux - Newbie 1 07-23-2001 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration