Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been studying CompTIA Linux+ Complete Study Guide 2010 Edition online for the last couple of weeks.
So on section 5.2.3 The Boot Process, I was trying to open and see the content of /sbin/init file on my Ubuntu 10.10 notebook edition about an hour ago. I opened it in vi editor. I must have accidentally made a change and then saved it.
(Now I know better, that it is a binary file and can't be read)
Now I can't even boot into ubuntu 10.10. I see the screen stuck in lots of errors.
Does anyone know how to fix it.
I have lots of valuable personal files on it, which I don't want to lose.
By the way, I also tried to boot into recovery mode, but get the same result.
Ok. You are going to have to run up your live CD, mount your system, and make changes to that file. Do you have it backed up, or do you know what the contents are supposed to be of that file?
Ok. You are going to have to run up your live CD, mount your system, and make changes to that file. Do you have it backed up, or do you know what the contents are supposed to be of that file?
No unfortunately I hadn't backed up anything, and don't know what that file looks like. It was binary as I said, so I couldn't read it.
Only if there was a way to download a clean fresh copy of /sbin/init file from The Internet and install it on top of the damaged copy, that should do it.
But how would I achieve this?
Ok. You are going to have to run up your live CD, mount your system, and make changes to that file. Do you have it backed up, or do you know what the contents are supposed to be of that file?
He had ubuntu 10.04 mine is ubuntu 10.10 notebook edition.
But problem is the same. I messed up the /sbin/init file, and now the machine won't boot into ubuntu.
But how would I export /sbin/init file from the live CD to the machine?
could anyone help me here?
He had ubuntu 10.04 mine is ubuntu 10.10 notebook edition.
But problem is the same. I messed up the /sbin/init file, and now the machine won't boot into ubuntu.
But how would I export /sbin/init file from the live CD to the machine?
could anyone help me here?
mansour
You could run up the live CD, mount the hard drive, and directly copy the file over.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.