LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-14-2008, 10:12 AM   #1
slozzy
Member
 
Registered: Mar 2008
Location: Edmonton
Distribution: Centos 5.2
Posts: 31

Rep: Reputation: 15
LiveCD goes straight to GUI in Centos, need CLI!


After breaking a couple of my Centos 5.2 test servers trying out fdisk, I would like to fix them. They don't boot anymore. When I boot up with the LiveCD, I get the normal login prompt but only for a second. It logs in as the "centos" user and goes directly to the GUI environment.

All I want is command line. Should I use a CD for a different distro? I just read that ubuntu has a LiveCD that lets u in to use fdisk.

What should I boot with to access/edit my partitions using fdisk? Knoppix I tried but it doesn't work, any menu selection results in a reboot. Thanks!
 
Old 09-14-2008, 10:51 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
So what?

You can start a terminal and do your fdisk work

The live cd is using the RAM only.

The best thing will be to use partedmagic
or the systemrescue cd
 
Old 09-14-2008, 12:26 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Or you can open a terminal and run:
Code:
init 3
to use CLI.
 
Old 09-14-2008, 12:41 PM   #4
slozzy
Member
 
Registered: Mar 2008
Location: Edmonton
Distribution: Centos 5.2
Posts: 31

Original Poster
Rep: Reputation: 15
The network interface doesn't seem to come online when i boot the machine with the Live CD. Once it boots and goes into the gui - bypassing the regular login, my display options are all screwed up so I can't use the gui. I can kind of see it, so I managed to open Applications >> Terminal but when I type init 1 or init 3 nothing happens. (there's an error message in the terminal that I can't read because the default display settings are loaded from the Live CD, incompatible with my display)

If I logout of the LiveCD gui, it logs me out - but then starts right back up. No CLI access. All i need to use is vi!
 
Old 09-14-2008, 12:58 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Did you try Ctrl-Alt-F2 to see if you can get a CLI?
 
Old 09-14-2008, 03:27 PM   #6
slozzy
Member
 
Registered: Mar 2008
Location: Edmonton
Distribution: Centos 5.2
Posts: 31

Original Poster
Rep: Reputation: 15
Extreme thanks goes to bathory for that reply. Exactly what I needed.

CTRL+ALT+F2 effectively gets you out of X Windows into CLI
 
Old 09-15-2008, 02:49 AM   #7
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
Usually you will use the CentOS installation CD/DVD with the "rescue" kernel parameter to do any rescue operations.

This will boot you directly to a rescue shell where - by chance - your old system gets already recognized.

I think this would speed up your system restauration...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't boot off CENTOS livecd maskiepop Linux - Newbie 7 07-21-2008 11:58 PM
LXer: CentOS LiveCD 5.0 Screenshots LXer Syndicated Linux News 0 07-10-2007 09:46 PM
boot CLI vs GUI weazy Linux - Software 2 08-04-2006 09:15 PM
CLI and GUI Question desmondlewissmith Linux - Software 1 01-20-2006 03:46 PM
Straight FreeBSD LiveCD? microsoft/linux *BSD 8 11-07-2005 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration