Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


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

Original Poster
Rep: Reputation: 30


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

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

Rep: Reputation: 34
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, 08:41 AM   #18
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,257

Rep: Reputation: 48
Neverwinter had a linux client that worked. Used to have it at bioware website. :-)
Old 06-12-2004, 12:17 PM   #19
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:
# 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  ;;


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:58 AM
Kernel Panic - Missing "initrd.img-2.6.8-2-686" in /boot MKSrivastava Debian 2 12-02-2005 04:09 PM
Kernel panic under 2.6.7 "VFS cannot load /dev/hda1 fs" Nichole_knc Slackware 5 10-24-2004 06:38 PM
Kernel Panic:VFS: Cannot open root device "hda3" or 00:10 shivendnrab Linux - General 1 07-01-2004 04:08 AM
error:"kernel panic: VFS: Unable to mount root fs":-( shyguy Linux - Newbie 1 07-23-2001 05:03 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:43 AM.

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