LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to reach on command line to recover ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-reach-on-command-line-to-recover-ubuntu-4175454144/)

bloodstreetboy 03-15-2013 02:02 AM

How to reach on command line to recover ubuntu
 
My ubuntu does not reach on command line.
If I go on recovery mode, it sticks on checking battery state and it does nothing.
If I boot it normally I face low graphics mode problem.
I want to install lightdm, xserver-xorg and ubuntu-desktop but I am not able to reach on command line, how will I do this?

If I use old kernel to boot or to reach in recovery mode, it does not work too.

I use ctrl+alt+f1, it does not reach on command line.

If I boot it through pendrive and open the desktop (using "open ubuntu without installing" option). Now here I open the terminal and install my packages but I think it does not work, it will not be installed in the /dev/sda1 (my original filesystem), I think they will be installed in pendrive's filesystem, am I correct? I will be more happy if I am wrong here.

I know how to solve this low graphics mode problem, but I am not able to reach on command line then How can i solve this?

Any help will be deeply appreciated.

bloodstreetboy 03-15-2013 09:03 AM

any suggestion?

Snark1994 03-18-2013 01:48 PM

What do you mean by "low graphics mode problem"? If you mean "low resolution", then you need to use xrandr to change it. Press Ctrl+T (or Ctrl+Shift+T, or Ctrl+Alt+T, depending on your version of Ubuntu) to start a terminal and then use xrandr to select an appropriate resolution. Alternatively, press Ctrl+Alt+F1 to change to a virtual terminal and then run use xrandr with the option "-display 0:0".

If you don't mean that, then you need to be far more specific about everything. When you say "X does not work" or "X does not reach command line" you need to tell us about any error messages that are displayed, and any other information that can help us work out what the problem is.

Finally, don't bump threads - you only waited 8 hours or so before posting again, which is rarely enough time for people to see your thread and post a solution. By posting to it again, you remove it from the "Zero-reply threads" list, which dramatically reduces the number of people who will see it.

Regards,

bloodstreetboy 03-23-2013 09:11 AM

Thanks for your reply.
No one replied till three days so I thought something is wrong with my question when I faced a new problem today and asked a new question then I see your reply.
Thanks again and sorry for my late reply.
I have posted today my new thread after 15 march.I never bumped thread.

The problem is still there on my desktop and I haven't moved an inch even a centimeter.

When I start my system, it sticks on 'checking battery state' message and nothing happens after that.
If I go to in recovery mode, it sticks there on 'checking battery state' message.
I am not able to reach on command line.I can fix it on command line using some commands.
but I am not able to reach there.

It gives boot up from [hd0,0] something and then 'checking battery state'
that's why Ctrl+Alt+T or Ctrl+Alt+F1 is not working.

I was thinking about reinstall ubuntu, but you have replied. thanks again.

cbtshare 03-23-2013 02:46 PM

Simply boot your system with a live cd, mount your hard drive then edit the files you need to that will correct the boot issue

bloodstreetboy 03-24-2013 11:52 PM

Quote:

Originally Posted by cbtshare (Post 4917317)
Simply boot your system with a live cd, mount your hard drive then edit the files you need to that will correct the boot issue

It is not that simple. I do not want to edit the files, I want to install some packages in my hard disc (/dev/sda1) and whenever I do not reach on command line, how can I install those. I stick on checking battery state message and then it gives "Low graphics mode problem", it does not reach on command line. Neither in normal boot nor in recovery mode.

Snark1994 03-26-2013 10:25 AM

Quote:

Originally Posted by bloodstreetboy (Post 4911998)
I know how to solve this low graphics mode problem, but I am not able to reach on command line then How can i solve this?

What did you mean by this, then? cbtshare was suggesting a way to get to a command line (on the live CD) so that you can run the commands which would fix the "low graphics problem"...

Can you give the exact error text of the "Low graphics problem", too?

bloodstreetboy 03-27-2013 11:54 PM

Quote:

Originally Posted by Snark1994 (Post 4919231)
What did you mean by this, then? cbtshare was suggesting a way to get to a command line (on the live CD) so that you can run the commands which would fix the "low graphics problem"...

Thanks for your reply...
The problem is, I am not able to reach on command line using my hard disk's file system whether I use recovery mode or what ever (ctrl+alt+f1 or ctrl+alt+t).
It sticks on checking battery state when I try to reach on command line using recovery mode.
I want to install some packages in my hard disk to solve low graphics mode problem like xserver-xorg-core, gdm & ubuntu-desktop.
I have only way to reach on command line is bootable pen drive but here if I install packages, it installs in pen drive's file system.
I want to install them in hard disk's filesystem. That's why I want to chroot my hard disk's file system so it will become primary and my packages will be installed in it.
but I don't know how to chroot my hard disk's file system. I have googled it but I couldn't find any perfect guide.

Snark1994 03-29-2013 05:22 AM

It should just be:

Code:

$ sudo mount /dev/sda1 /mnt
$ sudo chroot /mnt

and then you can run whatever commands you like in the chrooted environment.


All times are GMT -5. The time now is 10:44 PM.