RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
Very Off Topic: Linux Help Needed!
 
Post new topic Reply to topic Goto page 1, 2  Next 
View previous topic - View next topic  
Author Message
Terry
Spectral Form


Joined: 16 Jun 2002
Posts: 798
Location: Dublin, Ireland

PostPosted: Sat Aug 14, 2004 11:07 pm    Post subject: Very Off Topic: Linux Help Needed! [quote]

This is a copy of what I've just posted on the Linux Format forums. I know this is about as off topic as you can get on an RPG forum, and I'm sorry about that, but I'm really desperate for some quick help in getting this sorted out. I've been working on an game for months, and I stand to lose it at the moment. I know there's a few linux gurus lurking about here, so hopefully somebody here will be able to help me out.


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Ok, I've just messed up my computer really bad, and I really, really need to get it back the way it was. Here's the situation:

I've only ever got Linux Format twice, this month's with SuSE and Slackware, and a few months ago with a Knoppix ISO on the DVD. I had Knoppix installed to my hard disk a few months ago just to play about with it, and everything was fine, though I didn't really use it. So eventually I just edited lilo.conf to start Windows XP as default in LILO after a 5 seconds.

This was all fine until I thought I'd try out SuSE, to see what it was like. Good news is that I really like it, bad news is that now, WinXP won't boot.

Basically, if you choose Windows from LILO (the SuSE one), the screen goes blank, the text 'Loading Windows' is displayed in the top left corner of the screen, but everything is frozen - there's no hard disk activity, the computer doesn't seem to be doing anything.

After trying literally all day to fix it, I decided that the problem was with SuSE, so I fdisked the Linux Swap and main partitions clean, and reinstalled Knoppix the way I had it.

This is the the problem though: Even from the LILO menu from the Knoppix installation, I get exactly the same problem.

I know the WinXP installation is on /dev/hda1, and I've tried looking through the lilo configuration for some clue of what's happened, but I honestly don't know. I can't get WinXP to boot up, and there's some really important files that I need to get from it. (another minor problem - my CD Burner wouldn't work from SuSE, so I couldn't backup from there, even though my files seem to be intact.)

Please, Please, Please help me out!
=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Sun Aug 15, 2004 12:18 am    Post subject: [quote]

You can erase your master boot record (MBR) with fdisk using a Win98 startup disk for example, that should remove lilo. If WinXP still won't boot, you can be fairly sure it's the WinXP install that is broken.

That won't mean all is lost. The next thing you can try, is to mount your WinXP drive (/dev/hda1 you mentioned) after you boot in Linux. Linux is able to read both FAT and NTFS so you should then be able to copy the necessary files over to another drive. That'd allow you to fix your WinXP install (ie: reinstall, and make that on a FAT, you can change it later to NTFS anyway), then boot Linux again, and copy the files over to WinXP again (Linux can write to FAT).

I hope this'll give you enough information to get underway, or at least help you get somewhere.
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Mon Aug 16, 2004 1:49 pm    Post subject: [quote]

I'm guessing you did the foolish thing and did a dual partition (foolish I say because getting a 2-4gb old hard-drive to stick into a computer as a linux test drive should be simple for any geek worth his caliber). Did you reformat your entire drive? If not, can you mount the original drive in Linux? If this is the case, the easiest solution would be to insert a new hard drive, format said hard-drive in XP, and then get XP to open the partition that is still formatted for windows. This way, instead of using LILO (or even earasing it) you can use BIOS to choose what you want to boot too. And the XP hard drive then doesn't have to be all that big, either, just big enough to hold XP.

But if you can't mount the drive, most likely you'll never see that information again.
_________________
"Well, last time I flicked on a lighter, I'm pretty sure I didn't create a black hole."-
Xmark

http://pauljessup.com
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Mon Aug 16, 2004 3:00 pm    Post subject: [quote]

i just found out that this is a problem with the 2.6 kernel and it's bootloader.

Google found this which seems to have a fix:
http://www.linuxquestions.org/questions/archive/23/2004/06/4/196503
_________________
"Well, last time I flicked on a lighter, I'm pretty sure I didn't create a black hole."-
Xmark

http://pauljessup.com
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Mon Aug 16, 2004 5:47 pm    Post subject: [quote]

Really, a dual partition is anything but foolish and most of the time less troublesome that using two hard disks, which you'd also need to have in the first place (both my laptop and my PC only have one). I dual boot in Linux and WinXP on both systems without any problems, and am using lilo and the 2.6 kernel. I'm not denying that there might be a problem in some configurations though (I suspect some version of lilo to be the culprit, but that will probably have been fixed).

Also, I'm pretty sure Linux needs a bootloader like lilo or grub installed. So whether you're going to use the BIOS to choose which hard disk to boot from or not, you're still going to have to have one of those installed to boot in Linux. The whole point of removing lilo was just to check if WinXP would still boot itself, if it doesn't want to boot without lilo, it's its own problem instead of lilo's.


Last edited by Bjorn on Mon Aug 16, 2004 5:50 pm; edited 1 time in total
Back to top  
Terry
Spectral Form


Joined: 16 Jun 2002
Posts: 798
Location: Dublin, Ireland

PostPosted: Mon Aug 16, 2004 5:49 pm    Post subject: [quote]

Quote:
I'm guessing you did the foolish thing and did a dual partition (foolish I say because getting a 2-4gb old hard-drive to stick into a computer as a linux test drive should be simple for any geek worth his caliber). Did you reformat your entire drive?


Jeez man, there's no need to be so aggressive.

Thanks for the link to the article. It doesn't solve my problem (as you said, I partitioned my hard disk), but it was interesting to find out that the problem is with the new kernal, so I should probably be able to get a patch for SuSE pretty soon.

Anyway, the panic is over. I managed to backup my files thank to a friend's laptop and DVD burner, so my only remaining problem is fixing my WinXP installation.

Bjorn, thanks for your tips! I think that fdisk trick would have worked, except that there's a more serious problem going on - it seems there is something messed up with my WinXP installation. Even with a complete wipe, FIXMBR, FIXBOOT, CHKDSK and everything else I can think of to reset the hard disk to it's standard settings, I can't reinstall WinXP! Everything works as it should to a point: Windows Setup formats the hard disk as NTFS, Windows Setup installs the required files for setup, Windows Setup reboots, and as soon as it's time for windows to start up, it returns "Disk Read Error: Press Ctrl+Alt+Del to reboot". One line of text, just like that. I'm really starting to get fed up with it.

Any ideas anyone?

- Terry
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Mon Aug 16, 2004 5:55 pm    Post subject: [quote]

Sorry, don't have a clue about your second problem. Next to all the MBR and check whatever tools you mentioned, you might just want to try removing and re-adding the partition itself, which you could try with FDISK. That might solve any problem that crept into your partition table. Still is weird though.
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Mon Aug 16, 2004 5:56 pm    Post subject: [quote]

it is foolish if you have any data on that hard drive you wish to keep. If you dload an unstable version, or don't use Disk Druid (or insert any of the other 5,000 linux disk manager here) properly, you could lose that inforamtion.

Dual hard drive makes much more sense to me.
_________________
"Well, last time I flicked on a lighter, I'm pretty sure I didn't create a black hole."-
Xmark

http://pauljessup.com
Back to top  
Terry
Spectral Form


Joined: 16 Jun 2002
Posts: 798
Location: Dublin, Ireland

PostPosted: Mon Aug 16, 2004 6:07 pm    Post subject: [quote]

Quote:
it is foolish if you have any data on that hard drive you wish to keep. If you dload an unstable version, or don't use Disk Druid (or insert any of the other 5,000 linux disk manager here) properly, you could lose that inforamtion.

Dual hard drive makes much more sense to me.


Listen, I'm not disagreeing with you - I just think it's a stupid thing to argue about. I certainly didn't want to lose my 'inforamtion', but I got the distro on a coverdisk - I didn't expect a problem like this! Anyway, like I just said, I haven't lost anything except WinXP - all my files are safe.

Quote:
Sorry, don't have a clue about your second problem. Next to all the MBR and check whatever tools you mentioned, you might just want to try removing and re-adding the partition itself, which you could try with FDISK. That might solve any problem that crept into your partition table. Still is weird though.


Heh, sorry, I should have said - I've actually tried that. I removed the partition table completly, and let the WinXP installer create a new NTFS partition to fill the hard disk. Doesn't help :/

Thanks anyway. If you think of anything else, let me know. Until I get this thing up and running, I won't be able to get anything else done on my game.

- Terry

P.S. since this is an RPG forum, I guess I should at least say something relevent : I found an interesting tutorial recently - actually, it's not really a tutorial, but I really like the idea of catagorising all the battle modes that have been used in RPGs. The tutorial is here.
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Mon Aug 16, 2004 6:08 pm    Post subject: [quote]

Mandrake wrote:
it is foolish if you have any data on that hard drive you wish to keep. If you dload an unstable version, or don't use Disk Druid (or insert any of the other 5,000 linux disk manager here) properly, you could lose that inforamtion.

Dual hard drive makes much more sense to me.

Are you now referring to programs like cfdisk and parted, to edit the partition table? Of course I understand that you have to be very careful with these tools, they can ruin all your information just like fdisk and partition magic can. If you know what you're doing, the chance of these tools messing up by themselves is very slim though. For me, two hards disks just isn't a solution, as I simply don't have a few spare ones. And even if I would have 2, I see no reason why the Windows one would be a safer place to put my information than the Linux one, given I'm changing around partitions on both disks.
Back to top  
Terry
Spectral Form


Joined: 16 Jun 2002
Posts: 798
Location: Dublin, Ireland

PostPosted: Mon Aug 16, 2004 6:11 pm    Post subject: [quote]

Em - when I cleared the partition table, I used fdisk on a boot floppy. Do you think using the Linux tools (from knoppix, say) would help?
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Mon Aug 16, 2004 6:39 pm    Post subject: [quote]

Chaotic Harmony wrote:
Em - when I cleared the partition table, I used fdisk on a boot floppy. Do you think using the Linux tools (from knoppix, say) would help?


I don't think it matters, but it doesn't hurt to try...
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Mon Aug 16, 2004 7:34 pm    Post subject: [quote]

I'm not saying it would be safer on the windows one. I meant that it seemed that other than Knoppix (which is a boot live CD) he hasn't used Linux yet. I would suggest doing dual hard-drives for anyone starting linux on there hard drive for the first time(esp ones with more lower level installers like Slackware and Debian) to start off with a dual hard-drive.

To me it makes more sense to have another hard drive in there. Or even more sense would be to have one hard-drive set up for OS’s (like windows and whatever branch of linux you like, or even multiple ones, or whatever) and a second one for data (probably FAT32 since Linux and windows can both read them).

This way, the probability of somehow fuxoring your data by updating windows or Linux is minimal. (and from what I’ve heard, although it is rare, windows update SP2 has been known to cause issue with some dual partitioned hard drives).

Of course this is coming form the states, where finding a 2-4gb hard drive (enough room for a windows/linux OS dual partition) at a used comp store is pretty cheap (20-30$ us). This is, of course, IMHO. I’ll take back the foolish remark. But, I do think that it is safer to have multiple hard drives rather than multiple partitions.
_________________
"Well, last time I flicked on a lighter, I'm pretty sure I didn't create a black hole."-
Xmark

http://pauljessup.com
Back to top  
Rainer Deyke
Demon Hunter


Joined: 05 Jun 2002
Posts: 672

PostPosted: Mon Aug 16, 2004 9:00 pm    Post subject: [quote]

If Windows XP fails to install, you may have physical errors on your disk. Do a surface scan across your entire disk. If nothing shows up, repeat at least twice. Surface errors don't always show up on the first scan.
Back to top  
Terry
Spectral Form


Joined: 16 Jun 2002
Posts: 798
Location: Dublin, Ireland

PostPosted: Tue Aug 17, 2004 8:58 am    Post subject: [quote]

Ok, problem solved. For some mysterious reason, fdisking the partition table clean, then FIX(ing)MBR _before_ I installed Windows just jinxed it into working. (I had previously tried FIXMBR after I found that the windows setup wouldn't boot). Don't ask me how, but it worked. Thanks for all your help everyone!

- Terry
Back to top  
Post new topic Reply to topic Page 1 of 2 All times are GMT
Goto page 1, 2  Next 



Display posts from previous:   
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