- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- question about single-user mode
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:24 AM
10-23-2006 01:24 AM
Over the weekend I made my first attempt at booting a system into single user mode, but once there I was unable to execute any commands. It was as if I didn't have a working shell to execute commands with from the command line. I ended up bumping up to init 2 (which did work), and just doing the work I needed to do from there. So I'm wondering -- is there an initial step that I'm missing to be able to work in single user mode?
Thanks in advance for helping out a newbie...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:30 AM
10-23-2006 01:30 AM
Re: question about single-user mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:30 AM
10-23-2006 01:30 AM
Re: question about single-user mode
mount /usr
mount /tmp
mount /var
Now you can use bdf and vi and all the more familiar commands. You can also use mount -a to mount everything but you'll get errors with NFS filesystems (NFS doesn't exist because networking doesn't exist in single user mode), so use mount -al
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:31 AM
10-23-2006 01:31 AM
Re: question about single-user mode
Depending on what you what to do you will probably want to mount at least /usr and /var. /usr contains all of your commands and libraries. /var provides /var/tmp for temporary files.
You generally won't need /opt or /tmp in single-user mode but you can mount them as long as the work you are doing does not effect those LVs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:32 AM
10-23-2006 01:32 AM
Re: question about single-user mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:33 AM
10-23-2006 01:33 AM
Re: question about single-user mode
Using the '-is' (hpux -is) initiates single-user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:36 AM
10-23-2006 01:36 AM
Re: question about single-user mode
lvm maintenance mode and single user mode are similar but different tools for different jobs.
The primary purpose of lvm maintenance mode is inherent in its name. The quorum requirement that volume groups have more than 50% of members present is not in place permitting you to work with the system.
Single user mode itself is very much like normal mode without networking when you run Bill's three mount commands.
Its a great way to work without having users around.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:36 AM
10-23-2006 01:36 AM
Re: question about single-user mode
# mount /var
# mount /usr
And whatever else you need. If needed, you can specify '/sbin/mount' on the command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:37 AM
10-23-2006 01:37 AM
Re: question about single-user mode
(Thanks for that clarification as well, Patrick)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 01:38 AM
10-23-2006 01:38 AM