1

I tried to install ubuntu in my sony CS17G notebook. After selecting the option "Install ubuntu" from the boot menu, I am always getting the error..

init not found. try passing init=bootargs. (initramfs)

After surfing the net I came to know that sudo command will help me to fix the issue which requires a terminal. From the (inittamfs) prompt, how should I open a terminal. On using sudo command, i getting an error that 'sudo not found'.

Please help me in fixing the issue.

Jorge Castro
  • 71,754

2 Answers2

1

It sounds like the installation did not complete or the disk may be damaged or the fs at least corrupt somehow. Boot from the livecd and use the disk utility to check the health of the disk. Run the long SMART self test and make sure the counts for pending, reallocated, and offline sectors are zero. If that looks good, then reinstall.

psusi
  • 37,551
  • Even after booting from the livecd, i face the same problem. –  Mar 29 '11 at 07:13
  • @Premkumar then it doesn't sound like your system is actually booting from the livecd. – psusi Mar 29 '11 at 13:51
  • How to boot from the livecd?. I have an option in the boot menu, "run ubuntu without installation". Hope this is the option for livecd. –  Mar 30 '11 at 05:50
  • @Premkumar yes, and when you choose that, you also get this error? Yet you didn't when you booted from this same cd to install the first time? – psusi Mar 30 '11 at 13:14
  • Yes when i select that option i get the same error. On selecting the option to install ubuntu also i get the same error. Is this error related to my hard drive?. –  Mar 31 '11 at 04:57
  • @Premkumar no, the cd must be corrupt. Pick the check disk option. – psusi Apr 01 '11 at 20:20
  • 1
    @psusi Ubuntu mounts disks automatically in the livecd. It will not run correctly in Live mode if your damaged disk is existant on the system. I found this out the hard way when i tried to diagnose my disk... ended up buying a SATA-to-USB connectivity kit, connected my SATA drive to the Live environment after booting to the LiveCD. The LiveCD is likely not corrupt, but this issue is likely occurring. – Thomas Ward Aug 03 '11 at 19:10
  • @The Evil Phoenix ahh, good point... the livecd does try to automatically activate the swap partition if found, so if that is messed up, it could cause problems. Unmounting the swap partition and trying again should get around that if it is the problem. – psusi Aug 03 '11 at 19:16
  • but only if you can get through... you may need to not have the disk connected first, then reconnect it later after the LiveCD is booted (not sure if that'll work but...) – Thomas Ward Aug 03 '11 at 19:24
1

Boot using a live CD or an alternate ubuntu install (if you have multiple versions as my case). Open System -> administration -> Disk Utility and check the status of all linux partitions. Use 'Check and Repair Filsystem' for each partition (see screen shot) . The partition containing /boot files might have got corrupt. If you get an error while checking the partition, open a terminal window (Application -> accessories -> Terminal) and type

sudo  fsck -y /dev/xxxx 

Replace xxxx with the device name you get from Disk Utility screen where name device written. In the example screen shot it is 'sda5'.

If 'fsck' fixes some thing, re-run it again until it is reported clean.

Reboot without CD now and see if you are able to boot correctly. The procedure described above fixed my problem.

Jamess
  • 3,123