LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-27-2006, 09:32 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
System management


Hi folks,

FC5_64

On pressing following key combination;
1) Ctrl+Alt+F2 (supposed to be "init 1")
2) Ctrl+Alt+F4 (supposed to be "init 3")

Which command will be run to confirm/prove them?

Running;
# fdisk -l /dev/sda
Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1734    13823932+  83  Linux
/dev/sda3            1735        3008    10233405   83  Linux
/dev/sda4            3009        9729    53986432+   5  Extended
/dev/sda5            3009        3262     2040223+  82  Linux swap / Solaris
How to identify them which partitions are / and /home respectively? Which command to be used?

There is no entry on /etc/fstab

# cat /etc/fstab
Code:
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=SWAP-sda5         swap                    swap    defaults        0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,user,kudzu 0 0
Please advise. TIA

B.R.
satimis
 
Old 06-27-2006, 09:42 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Quote:
Originally Posted by satimis
On pressing following key combination;
1) Ctrl+Alt+F2 (supposed to be "init 1")
2) Ctrl+Alt+F4 (supposed to be "init 3")

Which command will be run to confirm/prove them?
Not sure what you mean. You should get a new log in prompt.

Quote:
Originally Posted by satimis
How to identify them which partitions are / and /home respectively? Which command to be used?
df -h will show you.

Last edited by tangle; 06-27-2006 at 09:45 AM.
 
Old 06-27-2006, 09:46 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi tangle,

Quote:
df -h will show you.
Noted with tks.

B.R.
satimis
 
Old 06-27-2006, 09:54 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Code:
On pressing following key combination;
1) Ctrl+Alt+F2 (supposed to be "init 1")
2) Ctrl+Alt+F4 (supposed to be "init 3")

Which command will be run to confirm/prove them?
These key combinations have nothing to do with runlevels. They are for switching between virtual terminals when you are logged into a gui. If you are not logged into a gui, you would use Alt-Fn (where Fn is any number from 1 to 6. If you need to change runlevels, you can do this as root, from any command line interface.

If you use ext3, REdhat/Fedora Core, uses lables to identify partitions (why they do this puzzles me). Anyway if you can't figure out the partition layout, try running "df -h" and maybe it will list your partitions.
 
Old 06-27-2006, 09:57 AM   #5
Theorist
Member
 
Registered: Jun 2006
Distribution: FC5, FC3, RHEL 3, Debian 3.1, Debian 3.0
Posts: 56

Rep: Reputation: 15
Hi satimis,
Just do
Quote:
$ mount -l
With Regards,
Theorist
 
Old 06-27-2006, 10:05 AM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Quote:
Redhat/Fedora Core, use labels to identify partitions (why they do this puzzles me)
One explanation that I have heard is that it simplifies locating partitions/filesystems in a hotswap environment. I always change the LABEL= to the device designation.
 
Old 06-27-2006, 10:08 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi reddazz,

Tks for your advice.

Quote:
These key combinations have nothing to do with runlevels. They are for switching between virtual terminals when you are logged into a gui.
While working on desktop, KDE/GNOME, pressing those key combinations will switch to runlevel 1 and 3 respectively. Both are black screen. After working a while I may forget which runlevel is running. So I'm searching a way to check them when needed.

Quote:
If you use ext3, REdhat/Fedora Core, uses lables to identify partitions
Yes I'm running ext3.

B.R.
satimis
 
Old 06-27-2006, 10:10 AM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi Theorist,

Your advice noted with tks.

B.R.
satimis
 
Old 06-27-2006, 11:03 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
While working on desktop, KDE/GNOME, pressing those key combinations will switch to runlevel 1 and 3 respectively. Both are black screen. After working a while I may forget which runlevel is running. So I'm searching a way to check them when needed.
I'm not sure I get what you mean here. As far as I know, CTRL-ALT-Fn will not switch you to a different runlvel, but it will give you access to a virtual terminal (usually a text based interface). If you then need to change runlevel, you would login to the text based interface as root and run the init command along with the number (or letter) that corresponds to the runlevel you wish to enter e.g. "init 3" to enter into runlevel 3. To check which runlevel you are in, you would run "who -r".
 
Old 06-27-2006, 11:11 AM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi folks,

A further question, how to start "init 1"?

On Konsole type
# init 1

it prompted a black screen with following line displayed
Code:
sh-3.1# audit (1151423691.092:6):
avc : denied {signal} for pid=1418
comm="pppd" scontext=sys-u:system_r:pppd_t:s0 tcontext=
system_u:system_r:pppd_t:s0 tclass=procs
-
Hit [Enter] it promted
sh-3.1#

Is there another way to start "init 1" while working on gui. TIA

B.R.
satimis
 
Old 06-27-2006, 11:25 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you ran "init 1" and you got the root prompt, then you are already in runlevel 1. The message on the screen is just telling you that there is a problem somewhere (I think the message you are getting is from selinux).
 
Old 06-27-2006, 07:11 PM   #12
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi reddazz,

Your advice noted with tks.

I was worrying about the message therefore I hit Ctrl+Alt+F2 tying to start 1. I was prepared moving /home partiton and needed to umount it on 1. I was not confident on the key-combinations on my first posting which is 1 or 3. Therefore I tried finding a method to check them. That is the whole story.

B.R.
satimis
 
  


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
Document Management System saavik Linux - Software 1 10-06-2005 06:16 PM
Content management system that uses PAM paul_mat Linux - Software 0 06-29-2005 05:19 PM
hosting management system newuser455 Programming 0 04-02-2005 01:24 AM
Grade management system for Linux SchadeBoy Linux - Software 3 09-29-2004 06:17 PM
Store Management System esael Linux - Networking 1 12-01-2002 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:58 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