krzychu (chris) wrote:I should have mentioned it. The laptop is still on warranty (but I left the paper work back home, so I can't give it back until I return home) so I do not want to open it.
So therefore you may not solve your problem

Often the screw(s) to the hard disk area are not protected with a warranty seal on the laptops which I have seen, but of course it is your choice about what you do.
krzychu (chris) wrote:I also checked BIOS for the option to disable the internal disk controller. Unfortunately it does not have that option.

krzychu (chris) wrote:Do you think that a low level format could help to cover up the bad sectors, and make the hard drive usable at least until the end of the month?
I cannot predict the future.

The answer depends on the real cause of your disk drive's problem, and that diagnosis is impossible to give remotely - there are several possibilities, some of which are more likely (but still not certain).
Also, your story is now very confusing - at the start, you did not want to write
anything to the internal disk, until you had more time to run ddrescue to see if more data could be recovered. Now you are talking about erasing
everything from the internal disk?! Therefore it is unclear about your real requirements.

FYI, by "low level format" you really mean a zero-fill on modern (S)ATA disks.
I have one suggestion: You
might be able to prevent the Ubuntu installer from trying to read the "problem areas" on the internal disk, by just zero-ing the MBR (LBA 0) on the internal disk. After doing that, the disk will appear to be empty to a typical installation program, and I would not expect the installation program to try to read that disk further (although I have no special knowledge about the behaviour of the Ubuntu installer). Before zero-ing the MBR, I would try to make a copy of it into a file first (using dd), although LBA 0 might be one of the unreadable sectors (in that case, try ddrescue, and set the options to just retry reading that one sector).
I cannot predict all the possible problems which could occur during that process, and I am not guaranteeing success, but that would be my basic plan of something to try, if I was in your situation and was being stopped by the Ubuntu installer getting errors when reading the faulty internal disk. Alternatively, why not boot a LiveCD or LiveUSB version of Linux, instead of installing Ubuntu to an external disk (and therefore triggering the problem you have with the installation program). Of course I still expect that you will see errors logged during any attempted automount of the partitions on the internal disk, if there are any disk errors in the relevant sectors, and Linux will run slower from LiveCD/USB than from a hard disk, but it may be another workaround for you.
It's your data, and your laptop, so it's your choice about what you do.

Good luck!