I have a sony vaio laptop 500GB hard disk i5 4GB ram .

I had dual booted my machine with major portion as windows and just a 20GB ubuntu partition.

Then one day i dropped my laptop which kind of damaged the hard disk. I could still run ubuntu but not windows. So i used the windows recovery enviroment and reinstalled windows .

By this windows 7 started working but awfully slow . The pc wud get stuck if i tried running any application and when turned off forcefully it would restart into grub rescue everytime telling either 'No operating System Found ' or 'error attempt to write outside hd0' and some other errors .

The problem was the hard disk. The fall had created many bad sectors in the hard disk memory. So after looking through internet i did a chkdsk -r on cmd and this fixed the bad sectors temporarily.

But then one day the machine got stuck again and when i tried to restart the machine it said "SMART disk check failed back up your data"

Somehow i logged in ubuntu and formatted the hard disk thinking it would solve the bad sector or errors in hard disk . It got formatted. So now i didnt have any OS on my machine. I used an USB to boot into ubuntu and when i tried installing ubuntu on hard disk it wont allow me .

I know i have to buy a new hard disk. But till then i need to use my machine

What should i do ?

closed as primarily opinion-based by xangua, Thomas Ward Jan 3 '17 at 17:16

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    I don't know what kind of advice you want to get, when you already know what to do. – xangua Jan 3 '17 at 17:13
  • Is there any way to temporarily patch the hard disk so that i can install ubuntu . Im using live usb currently .So im wondering if there are any memory repair commands which i could run – jeff devasia Jan 3 '17 at 17:23
  • 1
    @jeffdevasia you can't "patch" physical damage. The discs in the drive are very likely scratched, which is irreparable, and it's a bad idea to continue trying to write to the disk. – TheWanderer Jan 3 '17 at 17:24

Your HDD is about to kick the bucket. You need to get a new one immediately.

You cannot run an OS on a failing HDD.

Your only option is to run off of a live USB drive.

Not the answer you're looking for? Browse other questions tagged or ask your own question.