Fedora This forum is for the discussion of the Fedora Project. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-27-2006, 09:32 AM
|
#1
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Rep:
|
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
|
|
|
06-27-2006, 09:42 AM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
06-27-2006, 09:46 AM
|
#3
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
Hi tangle,
Noted with tks.
B.R.
satimis
|
|
|
06-27-2006, 09:54 AM
|
#4
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
06-27-2006, 09:57 AM
|
#5
|
Member
Registered: Jun 2006
Distribution: FC5, FC3, RHEL 3, Debian 3.1, Debian 3.0
Posts: 56
Rep:
|
Hi satimis,
Just do
With Regards,
Theorist
|
|
|
06-27-2006, 10:05 AM
|
#6
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151
Rep:
|
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.
|
|
|
06-27-2006, 10:08 AM
|
#7
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
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
|
|
|
06-27-2006, 10:10 AM
|
#8
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
Hi Theorist,
Your advice noted with tks.
B.R.
satimis
|
|
|
06-27-2006, 11:03 AM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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".
|
|
|
06-27-2006, 11:11 AM
|
#10
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
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
|
|
|
06-27-2006, 11:25 AM
|
#11
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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).
|
|
|
06-27-2006, 07:11 PM
|
#12
|
Senior Member
Registered: Apr 2003
Posts: 3,695
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 04:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|