PDA

View Full Version : Need help using KNOPPIX to rescue my PC - HP want me to RMA



j.drake
09-15-2003, 04:08 PM
OK, HP Pavilion 735n, still under warranty, two 80 GB HDs, original HD has Win XP (HP recovery partition on hda1, remainder on hda2 in NTFS), second 80 GB HD has partitions for Mandrake installation (hdb1, 5,6,7), with about 65 gig (hdb8) in an NTFS partition. Followed the advice in installing Mandrake to install GRUB to the secondary HD. I did so, and it worked well, and I'm cruising along fat, dumb and happy, when all of a sudden, my BIOS went stupid on me, and wouldn't recognize my HDs (no, I'm not blaming Knoppix or Mandrake - I wasn't using Knoppix, and both WinXP and Mandrake were working fine - my wife, OTOH, is laying the blame squarely at my feet for screwing around with Linux in the first place, so Tux's honor, rightly or wrongly, is on the line). Anyway, no settings work, both HDs pass a diagnostic utility test (a bootable disk left over from second HD installation), Knoppix runs just as good as ever, with both HDs accessible, etc (BIOS still recognizes the CD drives).

Called HP tech support - tech had me unplug and re-plug IDE cables and power cables in all possible permutations, including without second HD - no effect. So, he wants me to RMA the box back to him (after removing the second HD), and I'm betting they're going to swap out units with me, and I'm going to lose all my data and get stuck reinstalling everything, plus doing without the box for a couple of weeks.

I went to HP website (on another computer) to get support and drivers for my machine, and they have a BIOS update download available. So, I figure I'll copy it to a bootable floppy, flash the BIOS, and be on my way. Wrong - the BIOS has to be installed from Windows, and can't be installed from DOS, but I can't get into Windows. So I e-mailed HP tech support, gave them a case number, and proposed that they e-mail me a bootable BIOS flash. HP says no, they can't e-mail BIOS flashes, and since the problem is in my HD (Huh???), I need to RMA it anyway. I just e-mailed back, asking if the problem is with the HD, and I'm going to lose data anyway, why not re-image?

BTW, I saw the posts about Knoppix ruining Dell BIOSes, and the fix involving pushing the power button while the cord's unplugged. I did that, but I didn't hold the power button very long. I'll try it again.

Here's what I need from you folks, if you will be kind enough to help me:

1. I think my BIOS flashing idea makes sense, but apparently HP thinks I'm wrong. If you agree with HP, please tell me, and I'll chalk it up to bad hardware, take my lumps, and quit obsessing about it.

2. If you think that there's some merit in my idea, do any of you know a website where I can get a flash ROM image of the BIOS for my machine?

3. If I have to RMA the machine, could someone please step me through the procedure for using Knoppix off the CD to copy data and program files from hda to hdb, and also how to burn CD-Rs or DVD+Rs of the hda data, so that I won't lose it? I'm afraid I have not learned enough about running Knoppix off the CD to copy data off of drives and delete data off of drives, and insofar as I'm having to pose these questions off of other people's borrowed PCs, and mine is stll laying dormant while my wife taps her foot and fumes, I don't have a lot of time to get up to speed the hard way.

4. If you have other ideas or suggestions, please let me know.

Thank you, Klaus, you may be my only hope.

j.drake
09-15-2003, 08:43 PM
I found part of my answer, I think, in the "Computer First Aid Using Knoppix" article, listed in the documents section. Hopefully I can use this to at least get a decent backup. Unfortunately, my big partition on the second drive is NTFS, so I can't copy files to it. So, current plan is to burn to CD, if I can get that figured out, or else to try to repartition hdb in order to suck a big part of hdb8 (NTFS) into hda7 (FAT32).

Still, I would appreciate any wisdom anyone can offer on fixing BIOS.

dave52355
09-16-2003, 04:04 AM
You could use Acronis True Image to make a image of your XP partition and save to your Linux partition on 2nd drive. At least then you would be able to restore the image to another drive when HP returns the system. True Image will make a bootable cd that will allow you to boot from cd no Windows required after that.

Have/can you try another hard drive to see if Bios detects it?

Good Luck, but it sounds like a hardware controller failure and your best bet would be waranty repair.

j.drake
09-16-2003, 02:54 PM
Thanks Dave. I did some backup last night, thanks entirely to Knoppix and Cedrick Shock's First Aid article, which I referenced above. Using these tools, I was at least able to burn "My Documents", some TurboTax and Quicken data, and some smaller files. Of course, what I would really like to do is to copy them onto hdb as you suggest, especially since some of my files are video files that are too large to fit on a CD-RW. Apparently, K3B doesn't support DVD+R/RW, and I could not find any application on Knoppix which does (might have something to do with Dr. Knopper's assessment that everyone cannot afford a DVD burner). As my ISP can only be accessed via Windows, I'm kind of stuck with the programs that are already available on the Knoppix CD. As far as your question about another HD, BIOS blew off both of my HDs simultaneously, and both were set up to be bootable, so it's not an issue of one HD.

BUT, I STILL DESPERATELY NEED HELP!:!: Using Qtparted, I re-partitioned the large NTFS-formatted hdb8 into two smaller FAT32 partitions (hdb8 and 9) of approximately 30 GB each. I'll need these for my video files that are too large to burn. But I still couldn't use the partitions once I created them. I presume it's because they still need to be formatted as FAT32.

HOW DO YOU FORMAT A PARTITION IN KNOPPIX?? I couldn't find it anywhere in Help. Here's the error I get when I tried to copy files from hda2 over to hdb8:

could not mount hdb8

mount wrong fs type, bad option, bad superlock on /dev/hdb8
or too many mounted disk systems.

I assume this is due to the need to format the drive. I already checked the box to make it writable and checked all of the boxes in the properties.

Thanks for any and all assistance. I"M ALMOST THERE! :D

j.drake
09-16-2003, 05:10 PM
Did some checking around. It appears that you format the partition with the mkfs command. The only examples of syntax I could find were for ext2. So, generalizing off of that, I infer that the proper syntax for me formatting, say, hdb9 in fat32, would be something like the following:

mkfs.fat32 /dev/hdb9

And, I assume that I have to mount it first. Since I assume that I won't have the luxury of clicking it on the KDE desktop to mount it, would the syntax be as follows?

mount /dev/hdb9 (or is it mount -t /dev/hdb9 ?)

Sorry to ask such basic questions, but I don't find bash to be particularly intuitive, and with as many troubles as I'm having now, I cannot afford to screw up a HD too! :? Before my BIOS or IDE controller had a stroke, I would just cheat and do all my filesystem formatting in Windows. Is there a simple way to do this in KDE, or am I stuck with bash?

Somebody please confirm and check my work. And, from the properties on the KDE desktop, I assume that I'll tic the checkbox to make it writable before copying files from hda2. Anything else I'm missing? Thanks, JD

rickenbacherus
09-16-2003, 07:28 PM
Apparently, K3B doesn't support DVD+R/RW, and I could not find any application on Knoppix which does (might have something to do with Dr. Knopper's assessment that everyone cannot afford a DVD burner).

/usr/share/doc/dvd+rw-tools

j.drake
09-16-2003, 08:41 PM
Wow, it continually amazes me how much meat is on one Knoppix CD-ROM, if you only know where and how to look for it. It's like giving someone a one-foot cube of beef jerky - it will feed them for days if they could just figure out how to get it in their mouths. By comparison, Windows is more like getting the same amount of nutrition in a warehouse full of rice cakes - they're much easier to chew and digest, but why bother?

So, is this pretty easy to use?

Also, great guru of gurus, did I get the bash commands right for formatting the partitions?

Thanks,
JD

rickenbacherus
09-16-2003, 11:06 PM
You almost had it right. :)

mkdosfs -F 32 /dev/hdb9

Check out man mkdosfs for a better understanding. Oh and no you don't need to mount the drive becasue you don't actually mount a drive but the filesystem on the drive.

j.drake
09-17-2003, 03:06 PM
I'm still having problems, and it's getting d*mn frustrating, because I've got an 80 gig HD that's going to be replaced or erased when I RMA my box, and I have another perfectly good 80 gig HD bolted right under it with nothing on it but Mandrake and some empty partitions, I've got one of the most capable, powerful and comprehensive distributions of a great OS (Knoppix - I cannot boot HD because BIOS isn't recognizng them or IDE controller is bad, therefore cannot run Windows or Mandrake) up and running, a DVD writer, and about 20 or so empty DVD disks, and I still can't manage to save my data (other than the smaller files I put on CDs with K3B). This is irritating the fire out of me, because this should be easy, and I cannot make it work!

I've tried big partitions, small partitions, fat32 partitions, and even ext3 partitions, I've formatted the file systems in those partitions in all of those configurations, and no matter what I do, I still get the following error:

could not mount hdb8

mount wrong fs type, bad option, bad superlock on /dev/hdb8
or too many mounted disk systems.

Oddly enough, I can go to a shell prompt, and type some command like sudo mount /dev/hdb8, and the shell takes the command and returns another prompt, without any error message (there may be some other flags or arguments I used, but I don't have my notes here), yet when I go back to the desktop to move the files, I get the same error as above. Oddly enough, I have absolutely no problem mounting, reading, or doing stuff with my Windows files in the NTFS partitioned hda2, which is where my data is. I even tried using mcopy to copy within the shell, but it returns some kind of error, I think about an unrecognized folder. I just don't get it why it is so difficult to mount this other partition and copy to it. Remember, I'm still new to Linux, so it may be something stupid and obvious, so please don't be afraid to insult my intelligence with any suggestion.

Along those same lines, Rickenbacherus, I read the documentation for /usr/share/doc/dvd+rw-tools several times, and much as I hate to admit it, it's just flat over my head. I don't understand it, and I don't have enough time to research it and learn it before I have to RMA the box. Maybe if I were an experienced Linux user and script writer, fine, but I'm not going to be able to make it work until someone writes a step-by-step guide for newbies, with "type this" and "do that", and the like. :cry: I just don't have the skills or experience yet. At any rate, I'd really prefer to copy to the second HD anyway.

rickenbacherus
09-17-2003, 03:59 PM
Sorry I'm kina short on time right now but to simply copy your hard drive check out MOndo. It will copy only the data on your drive and it will compress it for you and let you burn to disc.
sudo mondoarchive

j.drake
09-17-2003, 04:27 PM
Thanks, please don't misunderstand, I was not at all suggesting that you should write me a step-by-step on the DVD burning thing within my time constraints, and I hope you didn't take my comment that way. What I meant was that I'll wait on DVD burning for some future time in which I'm not under pressure, and after someone else either writes a newbie guide or simplifies the UI.

I just thought there might be something obvious I was missing on the HD to HD copy issue, which appears to my inexperienced mind to be a failure to mount. To me, I can't see any reason for Knoppix to give that error. I thought about the possibility that the flaky IDE controller (if that's the problem) might be causing it, but ruled that out by virtue of the fact that hda2 is apparently mounting just fine.

Thanks,
JD

RockMumbles
09-17-2003, 04:36 PM
In linux, unless a device, mountpoint, filesystem, etc. is in your /etc/fstab you have to use the full mount command, knoppix does generally have a complete fstab for the entire drive system it can see (knoppix may not be able to see drives on some controllers, ie. raid controllers and high speed ata controllers), so using:
mount /mnt/hdb8
should work if your drive is on a normal ide controller. Remember you have to mount the mountpoint not the device, so it's 'mount /mnt/hdb8' not 'mount /dev/hdb8'.

If that didn't work let's look at the mount command, it is as follows:
mount [options] device mountpoint

(as root) first do a ls on /mnt if knoppix sees all of your hard drive and partitions you should see a directory in /mnt named hdb8, if not you could either use any other empty directory in /mnt or use mkdir /mnt/hdb8 to make that directory for your mountpoint.

then to mount a partition on /dev/hdb8 that is fat32 format you would use mount like this:

mount -t vfat /dev/hdb8 /mnt/hdb8

in english this command says to mount a -t (type) vfat (fat32) filesystem that is on device /dev/hdb8 on the mountpoint /mnt/hdb8

HTH

~rock

j.drake
09-17-2003, 04:46 PM
Thanks, Rock. I think this may help. I was using /dev/hdb8 instead of /mnt/hdb8. Also, when I had two large fat32 partitions (hdb8 and 9), I recall getting an error message about 9 not being in the fstab, but I didn't see that for 8. At any rate, you've given me some additional insight and understanding into a file management methodology that is still very foreign and confusing to my Windows mind.

BTW, out of curiosity, would it also work to leave the fs type ambiguous by typing :

sudo mount -a /dev/hdb8 /mnt/hdb8 ?

I ask not only out of curiosity, but because I've tried several FS types, and I'd hate to screw up by mistyping the fs type (e.g., confusing vfat, msdos, or mfsdos, or something else for a fat32, or ext2, or ext2 -j, or ext3, or e2fs, for an ext3 fs - it gets very confusing for me).

Thanks,
JD

rickenbacherus
09-17-2003, 05:21 PM
Thanks, please don't misunderstand, I was not at all suggesting that you should write me a step-by-step on the DVD burning thing within my time constraints, and I hope you didn't take my comment that way. What I meant was that I'll wait on DVD burning for some future time in which I'm not under pressure, and after someone else either writes a newbie guide or simplifies the UI.

No- I didn't think you expected me to write a how-to. ;)
AFAIK there isn't a GUI for dvd+rw-tools.


I just thought there might be something obvious I was missing on the HD to HD copy issue, which appears to my inexperienced mind to be a failure to mount. To me, I can't see any reason for Knoppix to give that error. I thought about the possibility that the flaky IDE controller (if that's the problem) might be causing it, but ruled that out by virtue of the fact that hda2 is apparently mounting just fine.

Thanks,
JD

You can use cat to copy one hdd to another like so:

cat /dev/hda > /dev/hdb

Or even just copy a single partition like so:

cat /dev/hda1 > /dev/hdb5

Of course the disk/partition you are copying to needs to be at least as large as the one you are copying from.

j.drake
09-17-2003, 08:24 PM
Thanks. Nice to know the syntax for cat command. I was trying to make do with mcopy. One of the problems, though, is that I haven't used the DOS copy command since filenames were in 8.3 format, so I wasn't sure how to handle the spaces. As you know, the syntax for the DOS copy command calls for a space between the source and destination, and I wasn't sure what to do when the source location has spaces in the name, such as (in my case):

/mnt/hda1/Documents and Settings/Owner/My Documents/

In Windows, they have that weird tilde and number thing, to make it something like C:/Docume~1/Owner/My_Doc~1 , but I assume that would not be kosher for linux. But I also figured that the spaces would confuse the arguments. I tried it with underscores, but that didn't work. Also, in dos, you put in a *.* to substitute for a wildcard filename, and I've never seen that in linux either.

Sounds like, though, cat won't do it for copying from a specific directory, as you said it works for files and partitions. Sounds like what I may need to do is to wipe out all of hdb, reformat it as a single fat32 partition, and cat all of hda2 onto it. So, combining what I've learned from you and Rock, I expect I'll erase all files from the hdb partitions (if Linux will let me - may have to log in as root) Qtparted hdb into one fat 32 partition, then:

su
mkdosfs -F 32 /dev/hdb1/
mount -t vfat /dev/hdb1/ /mnt/hdb1/
mount -t vfat /dev/hda2/ /mnt/hda2/
cat /dev/hda2 > /dev/hdb1

j.drake
09-18-2003, 04:58 PM
How long does cat take? It ran 3 hours before I finally went to bed last night, and was still apparently running (meaning that after I issued the command, the console returned a line feed, the cursor became a block, no command prompt was offered, no error code, and the hd r/w light on the front panel was active, and the OS was able to to other things, albeit slowly) when I awoke 8 hours later. I finally stopped it , getting a cat I/O error, and restartedbefore I left for work. I suspect it will still be "running" tonight when I return.


:? ,
JD

j.drake
09-19-2003, 03:19 PM
And, indeed, it was still "running". Cat got me nowhere.

Maybe this is a dumb question, but I've now got both hda2 (source) and hdb6 (target) mounted and in proper format, I can open them both in KDE, and I've unchecked the box in Properties to make them both writable.

Why, then, can't I simply drag and drop? I've tried, but KDE keeps telling me that I don't have permission to do this. I tried opening a console, typing su to make me root, setting a root password, and shrinking the console to try again, hoping that it would ask for my root password and let me do it, but no dice. I also tried the cp command in the console (after logging in as root), with no success.

What sort of magical spell do I need to cast to allow me to simply copy folders from one hard drive to another in KDE??? :?: :?: :?: You shouldn't have to earn a degree in computer science simply to copy files and folders from one drive to another.

Thanks,
JD

rickenbacherus
09-19-2003, 05:53 PM
Try launching Konqueror as root.

sudo konqueror

j.drake
09-22-2003, 03:08 PM
And, indeed, it was still "running". Cat got me nowhere.

How wrong I was!! I happened to notice that a few folders had been copied, so I tried it again. After a couple more failed attempts - one time copying garbage and another time running out of room on the target disk, I tried running sudo cfdisk to get rid of the partitions that QTParted couldn't delete, and reformatted as one large 80 gig FAT32, and tried cat again. This time, I resisted the urge to abort after several hours, and let it take as long as it wanted. For anyone's future reference, it took well over 24 hours to copy less than 70 GB from one HD partition to another HD.

Thanks to Knoppix, RockMumbles, and especially the great and learned Rickenbacherus, I managed to back up all of my primary drive data, including video files too large to burn to CD, and my HP is bundled up and waiting for FedEx to give it a ride to Cupertino. More importantly, insofar as my wife blamed me and my screwing around with Linux for "breaking" the box, I could come right back at her with the fact that the only thing which saved our otherwise irreplaceable data was Linux, and how fortunate it was that I had learned enough about it prior to the failure, so that I could save our data!! I'm not sure that she bought it, but it sounded good, and she's certainly in no position to dispute it when I have a HD full of our data to show for it. Tux's honor has been defended, and I have you folks to thank for it!!

Now that I've put Linux to a practical use that I could not accomplish with Windows, I feel that I have graduated to the point of being able to call my self a Linux user (albeit a rookie user).

Thanks again,
JD

ktheking
09-22-2003, 04:41 PM
A nice bootmanager is http://www.mecronome.de/xfdisk/
Maybe this help.. ?
(try this first out on anther pc with similar conditions !!!!!)