LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-26-2008, 01:51 PM   #1
Steve Riley
Member
 
Registered: Jan 2005
Location: Dallas
Distribution: Suse
Posts: 94

Rep: Reputation: 15
mounting partitions in single user mode


I'm trying to do an exercise from Jang's RHCE prep book. On page 178 he has the reader rename the inittab file, reboot, and troubleshoot from single user mode.

When I do this, I'm unable to mount directories. The mount command indicates that /var is mounted. But when I go to the directory, there is nothing in it. It is in a logical volume. When I try to mount it, I get an error message that the device /dev/mapper/VolGroup01-LogVol01 does not exist. And I don't see any volume groups in the /dev directory. Similarly, the /home directory is showing as mounted, but there are no files or directories there.

So . . . what do I need to do in order to mount logical volumes in single user mode?

Thanks
 
Old 01-27-2008, 07:02 AM   #2
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
As I understand it, var is only showing because single user mode mounts root and thus also the full directory tree - but not the actual partitions that should be mounted there. Plus root will usually be mounted read-only unless you explicitly remount it mount -o remount,rw. Thus you get the impression that things are mounted while, in fact, they are not. Manipulating things manually does not always work since single user mode has access to only a limited number of the commands that would usually be available. You could verify by issuing an echo $PATH - I'm sure you'll see that it is a lot shorter than it would otherwise be. Now, it should still be possible to mount logical volumes but you need to specify the file system type as in:
mount -t ext3 /dev/mapper/VolGroup00-LogVol02 /foo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting multipul partitions into a single folder. xconspirisist Linux - Hardware 6 02-23-2007 10:11 PM
single user mode... navaladi Mandriva 2 12-26-2004 02:41 AM
mounting windows partitions in writable mode for a normal user peevee Linux - Software 4 11-07-2004 04:08 PM
single user mode ? wr3ck3d Slackware 5 03-29-2003 09:52 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM


All times are GMT -5. The time now is 06:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration