- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
08-31-2003 11:48 PM
08-31-2003 11:48 PM
Single User Mode
Bsp.: - change the disk volumes, which have been mounted in single user mode ?
I have the problem that I can??t start the editor in single user mode, because the libaries aren??t mounted !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2003 11:49 PM
08-31-2003 11:49 PM
Re: Single User Mode
Try this,
# /sbin/mount -a
Now you can use vi.
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2003 11:51 PM
08-31-2003 11:51 PM
Re: Single User Mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2003 11:55 PM
08-31-2003 11:55 PM
Re: Single User Mode
# mount /dev/vg00/lvolX /usr
Or use 'mount -a' to get all directories mounted which are in /etc/fstab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 12:34 AM
09-01-2003 12:34 AM
Re: Single User Mode
normally a runlevel have links to scripts in rcX directory, but single user mode has nothing ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 01:00 AM
09-01-2003 01:00 AM
Re: Single User Mode
# mount /usr
To change the run-level config, you need to edit /etc/inittab If you change /etc/inittab you ned to issue a 'init q' command.
The default multi-user level is three, but some organisations have a couple more. We have up to four. The fourth being starting of databases and application servers. Yes the run-level (the first line in /etc/inittab) is the /sbin/rc.N directories, K to kill and S to start.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 01:07 AM
09-01-2003 01:07 AM
Re: Single User Mode
I don't think I understand your question, if you are in single user mode nothing will be started. If you would like to start services you will have to change the init state. Take a look at the /etc/inittab and the /sbin/rc0.d rc1.d rc2.d rc3.d here are the scripts which will start all your services.
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 01:17 AM
09-01-2003 01:17 AM
Re: Single User Mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 06:03 AM
09-01-2003 06:03 AM
Re: Single User Mode
If I can change the configuration of the single user mode.
Thanks !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 12:08 PM
09-01-2003 12:08 PM
Re: Single User Mode
In this case in HPUX you can't change the
single user mode.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 04:24 PM
09-01-2003 04:24 PM
Re: Single User Mode
It is important to understand that single user mode is very special and to note that only 2 filesystems will be mounted: / and /stand. All sysadmins need to understand this. They also need to understand that /usr (which contains /usr/bin and /usr/lib) are not mounted and for good reason. If a problem develops with the /usr filesystem, you may need single user mode to fix the problem. All the commands you have in single user mode are located in /sbin which is part of /.
Once in single user mode, you can gain access to /usr commands such as vi by doing this:
mount /usr
mount /tmp
mount /var
and now vi (and bdf and others) will be available. Don't use mount -a since this will mount everything including network filesystems which cannot be used in single user mode (no networking). So, you don't want to change the default behavior of single user mode, but to remember the environment when it is used.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2003 09:03 AM
09-02-2003 09:03 AM
Re: Single User Mode
It also sounds like it's NOT a good idea.
2. fyi: the reason why you need /tmp mounted for vi is because the vi program makes a file in the /tmp directory when you edit a file.
3. humorous fyi: When I went to single-user mode via "shutdown", I still had tons of stuff mounted. In order for ME to get into single-user mode to work with the /var filesystem, I had to POWERDOWN, then interrupt the boot process, then boot into single user mode from there. Otherwise I could not unmount /var. You see it had some pesky trivial program using it. Hmmm.. let's see what was that program called? Oh yeah. It was HPUX.