SQL 2012 AG - Single User Mode Alternative

We have a very busy DB in a SQL cluster at the moment, that I am moving to a 2012 AG. Every night, there is a job that moves data around into a bunch of newly created tables. In the cluster, the job uses single user mode to pause incoming data while it makes
the changes:
SET SINGLE_USER WITH ROLLBACK AFTER 10 SECONDS
So I've been looking around, but I'm not a heavy DBA, so I haven't been able to find an alternative for this command in the job. Right now, the job fails every day. It cannot make the necessary changes while data is still flowing into the DB. How can I pause
the incoming data until the job finishes? Is there a way to take the listener offline temporarily or some other way to make this work?
Thanks!!

Partitioning is exactly what we're trying to do. That's where we used single user mode before. Here is the part of the job that required it. Let me know what you think:
SET
@Sql='ALTER
PARTITION FUNCTION '+@PartitionFunctionName+'()
MERGE RANGE (''' 
+@FirstBoundaryValue+''')'
BEGINTRY
EXECsp_executesql@Sql
SET@Sql='ALTER
PARTITION SCHEME '+@PartitionSchemaName+'
NEXT USED '+@FileGroup
BEGINTRY
EXECsp_executesql@Sql
SET@Sql='ALTER
PARTITION FUNCTION '+@PartitionFunctionName+'()
SPLIT RANGE ('''+@NextBoundaryValue+''')'
BEGINTRY
EXECsp_executesql@Sql

Similar Messages

  • Start SQL Server in single user mode with parameter -m doesn't work well

    C:\Windows\system32>net start mssqlserver /m "Microsoft SQL Server Management St
    udio - Query"
    The SQL Server (MSSQLSERVER) service is starting.
    The SQL Server (MSSQLSERVER) service was started successfully.
    C:\Windows\system32>sqlcmd -S . -e
    1> go
    1> select @@servername;
    2> go
    select @@servername;
    myserver
    (1 rows affected)
    1>
    As you can see, I'm still able to connect with sqlcmd prompt to SQL Server. According production doc of SQL Server 2014, it should not be conncting by sqlcmd. it shall only be connected by SSMS.
    below the original doc on msdn:
    Start SQL Server in Single-User Mode
    Provide Feedback
    Under certain circumstances, you may have to start an instance of SQL Server
    in single-user mode by using the startup option -m. For
    example, you may want to change server configuration options or recover a
    damaged master database or other system database. Both actions require starting
    an instance of SQL Server in single-user mode.
    Starting SQL Server in single-user mode enables any member of the computer's
    local Administrators group to connect to the instance of SQL Server as a member
    of the sysadmin fixed server role. For more information, see Connect to
    SQL Server When System Administrators Are Locked
    Out.
    When you start an instance of SQL Server in single-user mode, note the
    following:
    Only one user can connect to the server.
    The CHECKPOINT process is not executed. By default, it is executed
    automatically at startup.
    Note
    Stop the SQL Server Agent service before connecting to an instance of SQL
    Server in single-user mode; otherwise, the SQL Server Agent service uses the
    connection, thereby blocking it.
    When you start an instance of SQL Server in single-user mode, SQL Server
    Management Studio can connect to SQL Server. Object Explorer in Management
    Studio might fail because it requires more than one connection for some
    operations. To manage SQL Server in single-user mode, execute Transact-SQL
    statements by connecting only through the Query Editor in Management Studio, or
    use the
    sqlcmd utility.
    When you use the -m option with sqlcmd or
    Management Studio, you can limit the connections to a specified client
    application. For example, -m"sqlcmd" limits connections to a
    single connection and that connection must identify itself as the
    sqlcmd client program. Use this option when you are starting
    SQL Server in single-user mode and an unknown client application is taking the
    only available connection. To connect through the Query Editor in Management
    Studio, use -m"Microsoft SQL Server Management Studio - Query".
    Shawn

    Hi Shawn Xiao,
    For starting SQL Server instance in single user mode, we can add –m; parameter in SQL Server Configuration Manager, also we can run CMD with ‘Run as administrator’ and input the following statement.
    NET START MSSQLSERVER /m
    I do a test in SQL Server 2014 Express version, after starting SQL with Single User Mode, SQL Server will only accept one connection. If you connect to SQL Server with a user account, the following error will occur.
    Login failed for user ‘domain\username’. Reason: Server is in single user mode. Only one administrator can connect at this time.
    However, in your situation, you can connect to SQL Server and run T-SQL statement successfully, it can be due to connection with the administrator account in your sqlcmd.
    For more information, you can review the following article.
    http://zarez.net/?p=117
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Errors while Changing the Database to Mutli User Mode from Single user mode in SQL Server 2012

    Hi,
    Good Afternoon :).  Need your help in resolving one of the issue with SQL Server 2012.
    Today, we kept one of the database in the Single User mode and wanted to bring back to Multi User mode.  But we are getting the below error.  There are no user sessions connected to this database which are blocking each other.  I see multiple
    SYSTEM sessions are in blocked state.  The blocking is not cleared even affter restarting the SQL services.
    Verified the SQL Server Errorlog and couldnt get much useful information to troubleshoot the issue.
    pasted the information from the sys.sysprocesses as well for your kind reference.
    Msg 1205, Level 13, State 68, Line 1
    Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Msg 5069, Level 16, State 1, Line 1
    ALTER DATABASE statement failed.
    spid
    kpid
    blocked
    waittype
    waittime
    dbid
    login_time
    status
    cmd
    18
    1004
    36
    0x0005
    144
    5
    4/9/2014 13:13
    background                    
    TASK MANAGER    
    35
    1796
    36
    0x0005
    35
    5
    4/9/2014 13:34
    background                    
    TASK MANAGER    
    36
    2464
    37
    0x0005
    363
    5
    4/9/2014 13:34
    background                    
    TASK MANAGER    
    37
    5100
    36
    0x0005
    254
    5
    4/9/2014 13:04
    background                    
    TASK MANAGER    

    Clearly 36 and 37 are causing deadlock.
    see
    https://www.simple-talk.com/sql/database-administration/handling-deadlocks-in-sql-server/
    http://www.mssqltips.com/sqlservertip/1036/finding-and-troubleshooting-sql-server-deadlocks/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Unable to Access Single User Mode on Macbook Air 2012

    I am unable to enter SINGLE USER mode on myMacbook Air 2012....I have made sure that there is no Firmware Password preventing me from doing so...what else
    could be the reason....any suggestions?

    So are you saying you try to start up as shown here:
    OS X Mountain Lion: Start up in single-user mode
    If so, what happens when you try?  What do you see?

  • Start SQL Server Service in Remote Server using Command Prompt with Single User Mode

    Hi Folks, 
    I am able to STOP/START the Remote SQL Server Service using the following Command.
    sc \\RemoteServerName  START ServiceName 
    How to Start the Remote SQL Server Service using Single User Mode.
    sc \\RemoteServerName  START ServiceName  -m
    Narendran

    Hello,
    sqlservr.exe -m
    or
    sqlservr.exe -m -s       
    (for named instances)
    For more information:
    http://technet.microsoft.com/en-US/library/ms180965(v=SQL.105).aspx
    Configure Windows Firewall or security software properly.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Single user mode session lost after backgound processes jump in

    We have an application running on SQL server. This application restores DB very frequently using Single user mode. Following are the SQLs that are executed to restore the database in single user mode and to get the database back in multi user mode.
    alter database [test-db] set single_user with rollback immediate; --This sql is run using test-db
    use master;restore database [test-db] from database_snapshot = 'snapshot_test-db';
    alter database [test-db] set multi_user;
    After switching the test-db to single user mode some 4-5 background processes of Taskmanager jump in for the test-db kicking off the session that application has taken over in single user mode . These background process are deadlocked between them selves.
    Please refer to the output of sp_who2 below at link.
    http://social.microsoft.com/Forums/getfile/200625
    and following is the deadlock XML.
    NOTE: SPIDs in deadlock XML may differ from the output of sp_who2 as spids keeps on changing for these processes.
    <deadlock-list>
    <deadlock victim="process4bbfc78">
    <process-list>
    <process id="process4bbfc78" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="705" schedulerid="1" kpid="1648" status="background" spid="22" sbid="0" ecid="0" priority="0" trancount="0">
    <executionStack/>
    <inputbuf>
    </inputbuf>
    </process>
    <process id="process6d44388" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="419" schedulerid="1" kpid="5796" status="background" spid="30" sbid="0" ecid="0" priority="0" trancount="0">
    <executionStack/>
    <inputbuf>
    </inputbuf>
    </process>
    <process id="process6d44718" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="109" schedulerid="1" kpid="3908" status="background" spid="16" sbid="0" ecid="0" priority="0" trancount="0">
    <executionStack/>
    <inputbuf>
    </inputbuf>
    </process>
    <process id="process4bbee38" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="313" schedulerid="1" kpid="2656" status="background" spid="15" sbid="0" ecid="0" priority="0" trancount="0">
    <executionStack/>
    <inputbuf>
    </inputbuf>
    </process>
    </process-list>
    <resource-list>
    <databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S">
    <owner-list>
    <owner id="process6d44718" mode="S"/>
    <owner id="process4bbee38" mode="S"/>
    </owner-list>
    <waiter-list>
    <waiter id="process4bbfc78" mode="X" requestType="wait"/>
    </waiter-list>
    </databaselock>
    <databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S">
    <owner-list>
    <owner id="process4bbfc78" mode="S"/>
    </owner-list>
    <waiter-list>
    <waiter id="process6d44388" mode="X" requestType="wait"/>
    </waiter-list>
    </databaselock>
    <databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S">
    <owner-list>
    <owner id="process4bbfc78" mode="S"/>
    </owner-list>
    <waiter-list>
    <waiter id="process6d44718" mode="X" requestType="wait"/>
    </waiter-list>
    </databaselock>
    <databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S">
    <owner-list>
    <owner id="process4bbfc78" mode="S"/>
    </owner-list>
    <waiter-list>
    <waiter id="process4bbee38" mode="X" requestType="wait"/>
    </waiter-list>
    </databaselock>
    </resource-list>
    </deadlock>
    </deadlock-list>
    On searching for this problem I found out that people have faced similar problem but I was unable to find out the root cause and debug steps for this problem. Stopping the SQL server is provided as a solution to kick out these background processes but this
    is not a feasible in our case as code to restore DB runs very frequently resulting in this problem at a good frequency.
    I also made sure that SQL Server Agent is not running. The SQL services running on server are SQL server, SQL Server Browser and SQL Server VSS Writer.
    Any help will be appreciated as this is a blocker problem.
    Thanks,

    Hi Amrita,
    We can open a transaction, make data modifications to generate a lot of transaction log, and then run ALTER DATABASE AppDB SET MULTI_USER in the same transaction. You can also refer to the following document:
    Getting out of single user mode:
    http://blogs.msdn.com/b/dfurman/archive/2012/01/20/getting-out-of-single-user-mode.aspx
    Allen Li
    TechNet Community Support

  • Yosemite only boots in single user mode?!

    Hello everyone,
    for a few weeks now I've had issues with unresponsive wakes and whatnot but now it seems my machine has detiorated within a short walk home.
    First off my specs:
    MBP 13" mid 2012
    Core i5 2,5Ghz, Intel HD4000
    2x 4gb Ram 1600MHz
    Samsung 840 Evo 120Gb SSD
    As I said, within 20 minutes of carrying the laptop around the performance deteriorated drastically. When I opened it up back home it was incredibly slow and unresponsive. Opening Applications or even just folders takes about 30-60 seconds. Same applies for using the brightness controls for screen and keyboard, or the volume buttons. After some 15 minutes the System will completely stop to react to startup attempts of applications.
    I tried the following troubleshoots while searching the forums as I understand this is a common problem in Yosemite:
    - boot in safe mode ( worked once, but with the same problems of unresponsiveness, after a second try booting hangs at the usual 50%)
    - reset SMC
    - reset NVRAM ( PRAM?)
    - try to repair the disk via disk recovery ( cmd + r)( repair failed and Volume vanished from the list - after that only internet recovery was available) ( also of note: today I brought my SSD up to its limit by installing unreal engine 4. I deleted it expecting to see an improvement, which I didn't get. Still, after deinstalling it the Volume showed a 99% utilization in disk recovery)
    - starting single user mode and this is interesting. First it shows the following without any input:
    Warning: Couldn't block sleep during cache update
    Warning: Proceeding without DlskArb
    rebuilding .../Caches/com.apple.kext.caches/Startup/kernelcache
    pci pause: SDXC
    IOBluetoothHostControllerUARTTransport.kext has no Info.plist file.
    IOBluetoothHostControllerUARTTransport.kext has no Info.plist file.
    IOBluetoothHostControllerUARTTransport.kext has no Info.plist file.
    IOBluetoothHostControllerUARTTransport.kext has no Info.plist file.
    IOBluetoothHostControllerUARTTransport.kext has no Info.plist file.
    kext file:///System/Library/Extensions/JMlcromATA.kext/ is in hash exception list, allowing to load
    Child process / user/sbin/kextcache[6] exited due to signal 11.
    Error 107 rebuilding /System/Library/Caches/com.apple.kext.cashes/Startup/kernelcache
    then it proceeds to boot into the same unresponsive mess as before.
    - In the finder I tried to repair disk permissions and again the volume itself to no avail.
    I really have no idea what to do about it at this point. I can recreate this scenario and reliably boot this way but the system is painfully slow and impossible to work with. Sorry to bring up this topic again since there have been so many posts on similar problems but none of the aforementioned solutions worked for me.

    Please do the following:
    Install or Reinstall OS X from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
          the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
               because it is three times faster than wireless.
    This should install the version of OS X that you had installed.

  • How do i repair my hard drive in single user mode when disk is full?

    Hi there Apple Community!
    I have an old Macbook Pro 17" with an upgraded 500GB harddrive and 4GB memory. I'm running Mac OSX Lion.
    Was hoping you could help me out.  THis is the situation:
    Long story short I spilt wine on my macbook and the screen went a bit blobby. Switched it off for a few days, removed the battery etc. etc. Opened it up cleaned out as much of the wine as possible, but unfortunately some of it came in behind the LCD, so now the screen has a nice red stain.  Obviously I'm not going to try to clean that out of the LCD. 
    My Macbook Pro still worked for a few days after that, but then my harddrive gave up.  I booted in the Recovery HD menu, verified the drive and I got the error "Keys out of order - This disk needs to be repaired, click Repair Disk." I attempted to repair the disk but got the error "Keys out of order - Disk Full Error - The volume could not be repaired".
    Unfortnately of this 500GB I only have about 7GB free on it, as I have a huge iPhoto and iTunes library. I did make a TIme Machine backup of my user directory, but not the system files.  I don't really want to do a clean install because:
    1) I'm paranoid that there's something I did not fully back up
    2) I don't want to have to download the whole Mac OSX Lion again. I should have made a USB bootable backup when I had the chance.  I don't have access to a broadband connection.
    What I feel are my viable options, are as follows:
    1) I did buy a replacement internal 500GB harddrive, so I can probably try to make an image of the hard drive to this new drive, but not sure how. I believe it's through the Disk Utility with the "New Image" option but not sure how to go from there.
    2) Start up in Single User Mode and delete some unnecessary files and re-attempt to run the fschk -fy utility again (I tried this earlier and got the same Disk Full Error).  - the problem with this is, I'm not familiar with the command line and have no clue how to delete files.  I don't know my way around Unix.
    3) I can also probably attempt to make a Ghost Image or Acronis Image of the failed drive to this new drive, but not sure if Norton Ghost or Acronis True Image will be able to read this HFS drive - I believe it's possible as it's a simple hard drive clone. 
    If you can guide me in the best option - probably there is a better solution than my proposed ones above, I appreciate any feedback and comments you might have!

    hi Baltwo,
    So I ended up copying my user folder to another harddrive. I managed to download the whole osx lion again, reinstalled, and recovered my home folder using this discussion:
    http://support.apple.com/kb/HT1428
    I have managed to get all my files back. My iTunes library works fine, but my iPhoto library when I open it, get the following error:
    iPhoto cannot be opened because of a problem.
    Here's the error log
    Process:         iPhoto [1540]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         8.1.2 (8.1.2)
    Build Info:      iPhotoProject-4240000~8
    Code Type:       X86 (Native)
    Parent Process:  launchd [209]
    Date/Time:       2012-09-19 19:56:45.528 +0200
    OS Version:      Mac OS X 10.7.4 (11E53)
    Report Version:  9
    Sleep/Wake UUID: 7948ABE2-5294-4F87-B6E3-777095A2F2EE
    Interval Since Last Report:          4780 sec
    Crashes Since Last Report:           9
    Per-App Crashes Since Last Report:   9
    Anonymous UUID:                      70117D38-03EA-4F9C-B810-50B743864B9E
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries
    Dyld Error Message:
      Library not loaded: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/Versions/A/iLifeSlid eshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: image not found
    I've done an Apple Software Update but it didn't find an update for iPhoto.
    One thing to note is, this library was originally created on iLife 08, upgraded to '09 and it stayed on that version. It hasn't een upgraded to iLife '11.  It worked fine on my previous install of OSX Lion.  How do I recover the library without upgrading to '11 ?

  • Wipe a HD via Unix in Single User Mode?

    Is it possible to wipe a hard drive using diskutil or another method when booting up in Single User Mode? We routinely need to wipe drives and if possible, this would be the easiest.
    I suspect because the OS that boots in Single User Mode is on that same drive will make this impossible.
    Thanks in advance for your tips and comments,
    Doug

    Yes, you cannot erase an OS while it's 'hosting' the erasure. Single user mode is part of Mac OS X, so it's on the hard drive, not in the firmware or anything super-low-level like that. Oh well. So... you might be able to erase the vast majority of user, application, and even OS files, but it won't be complete and won't be 'as good as' a volume-format.
    A couple alternatives come to mind (sorry if you know all this. Not trying to be pedantic or patronizing, just making sure you know your options).
    We keep host computers around just for running wipes, backups, and diagnostics that cannot run from a drive holding the booted OS. You simply restart the to-be-wiped Mac holding the 't' key, connect it via firewire, and treat it as an external hard drive.
    You could also just boot from a Mac OS X install disc and wipe from the copy of Disk Utility included on the disc. Better yet, throw a +bona fide+ copy of OS X onto a pocket hard drive, boot the victim-Mac from that (hold option while it is first starting up), and wipe the internal HD normally, now that it's not in use. You could maybe even use single user mode in the booting OS, like you'd imagined, and format from there (I'm not sure that would be faster than letting it boot normally, though, as you might have to use "dd" or some other similar low-level wipe method, as I don't think the frameworks required for Apple's cli "diskutil" are available in single user mode).
    I haven't tried to use it on a Mac, but I have a 256 MB USB flash drive with, er, ['Darn' Small Linux|http://tinyurl.com/5md7t] on it for diagnosing Windows boxes. It runs a script on boot which, if you don't intervene to run utilities or what-have-you, will wipe all attached hard drives and shut down. I keep it locked up for understandable reasons, but its super useful just as a time-saver, booting most machines and beginning the countdown-to-wipe in under ten seconds.
    Anyway, let us know what your goals and thoughts are.
    Cheers, Joel

  • Single-user mode

    When I start up my computer and I want to get into single-user mode, it just goes to regular login.  Is there another way apart from command s or does something need to be changed.  Yes, I can access my computer, I just want to make an administer account without the disk.

    Well you should not have killed it. Rollback might take much more time than same query would while running normally. I would say wait. DONT RESTART SQL SERVER SERVICE or take Database offline
    What was query was linked server used in query. Was it distributed transaction ? If it was simple query it would take time but SQL Server would roll it back
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Single User Mode: Searching for root...

    My 2 year old unplugged my PowerMac iMac G5 (single) and now it won't start up.
    I was finally able to boot up off of Disk Warrior and replace the directory, but it won't start up past the gray Apple screen. The fan comes on after about 45 seconds and blows hard. Then, I get the circle with a line through it, in gray. I've never seen that on a mac.. the international "no" sign.
    When trying to start up in Single User Mode, I get a long list of stuff either disabled, not found, missing etc and then it starts writing to the screen every 30 seconds a line like:
    Still searching for root.
    I've tried pulling the back off, resetting the SMU, starting up in Safe Mode, etc.
    This has happened with storms before and I can usually get it back.
    I don't have original install discs.

    When you say you have "OSX" but not the "original install disks" do you mean the mac originally came with an earlier version and you don't have those disks, but you have a retail copy of Tiger?
    The circle with the slash means that Open Firmware cannot find BootX. Basically, I think this means that Open Firmware recognises the startup volume as such but cannot hand control to the operating system at all. BootX is what it uses to get the operating system going. Without this, as you've seen, you cannot make even single-user mode.
    What is SMU?
    *Is your data backed up? If not, prioritise that unless you can afford to loose it.*
    Does DiskWarrior repair permissions? If not and you have the Tiger retail version, try running Disk Utility to do that. I don't think this will help, but it won't hurt.
    Do you have another Mac? If so and you have the retail Tiger, you might be able to use Pacifist to replace BootX (in /System/Library/CoreServices). Alternatively, if the other Mac is running the same version of the OS and is also a PPC Mac, you could try copying the file from that machine.
    Before you do any of this (with the exception of the permissions repair), try to backup any data you need if that's at all possible.
    - cfr

  • How to mount USB & CDROM drives from single user mode - Solaris boot disk?

    Hi All,
    I need to carry out ufsrestore on a single newly replaced system disk (no redundancy / mirroring) from either USB or CDROM drives from the following steps:
    ( i ) GRUB => e, e, cdrom –s, Enter, b (boot from Solaris 10 x86 media).
    ( ii ) Choose menu 1 for Install Solaris Interactive Mode to reach single user mode.Below are the commands that I have tried in single user mode without success:
    mount –r –F pcfs /dev/dsk/c1t0d0p0 /cdrom (after unmount Solaris CD)
      mount: /dev/dsk/c1t0d0p0 is not a DOS filesystem.
    svcadm –v enable smserver
      svcadm: Pattern ‘smserver’ doesn’t match any instances
    svcadm enable autofs
      svcadm: Pattern ‘autofs’ doesn’t match any instances
    devfsadm
      devfsadm: mkdir failed for /dev 0s1ed: Read-only file system
    mkdir /mnt
      mkdir: Failed to make directory “/mnt”; Read-only file systemPart of the problem is due to the current READ ONLY filesystems which does not allow the creation of mount point such as /mnt.
    I have been able to create both / root (/dev/dsk/c1t0d0s0) and /export/home (/dev/dsk/c1t0d0s0) filesystems with newfs that are awaiting for restore using ufsrestore.
    The only option I am left with is to attach a secondary disk to install Solaris 10 on either of them before bring the system to multi-user mode so that service such as volmgt, autofs, volfs are available to access USB & CDROM drives.
    Any suggestion on how to resolve this issue?
    Many thanks,
    Jack

    Hi JKGN,
    Is the directory a located under the root filesystem. ie /a? Are there any other mount point for say USB drive as well? I am not in a position to try it out right now but will get back
    to you soon on whether /a exist or not.
    Btw, the last thing I managed to do on this system at the time was added a secondary 1TB internal disk with the intention to restore both / and /export/home data onto this disk while
    making use of all the disk device management services such as the following services only available in a fully installed Solaris system (both single & multi-user modes) installed on the
    primary disk:
    # svcs smserver
    STATE          STIME    FMRI
    online         Jun_08   svc:/network/rpc/smserver:default
    # svcs autofs
    STATE          STIME    FMRI
    online         Jun_08   svc:/system/filesystem/autofs:default
    # devfsadm
    # iostat -En
    c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: ATA      Product: SAMSUNG HD321KJ  Revision: 0-11 Serial No: 
    Size: 320.07GB <320072932864 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 41 Predictive Failure Analysis: 0
    c0t0d0           Soft Errors: 0 Hard Errors: 5 Transport Errors: 0
    Vendor: PHILIPS  Product: DVD+-RW DVD8801  Revision: AD21 Serial 
    Size: 17.54GB <17538875392 bytes>
    Media Error: 0 Device Not Ready: 5 No Device: 0 Recoverable: 0
    Illegal Request: 10 Predictive Failure Analysis: 0
    c2t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: JetFlash Product: Transcend 16GB   Revision: 1100 Serial No: 
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 7 Predictive Failure Analysis: 0
    # rmformat
    Looking for devices...
         1. Volmgt Node: /vol/dev/aliases/cdrom0
            Logical Node: /dev/rdsk/c0t0d0s2
            Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
            Connected Device: PHILIPS  DVD+-RW DVD8801  AD21
            Device Type: DVD Reader/WriterHowever, I was disappointed that "iostat -En" has not found the secondary disk (1 TB) even though it was available earlier, for Solaris installation as the only disk on the same system.
    As a result, I am left with no option but the need to rebuild this system with only a single primary disk while in single user mode. However, the single user mode that I am in is the
    one from Solaris installation disk with restrictive (_cannot create folder for mount point or running disk management utilities_) capability such as those services just covered, compared to one from a completed Solaris installation system with full access to all filesystems and utilities / commands in general.
    I would very much value your assistance on how to mount both CD & USB in this restrictive limited Read Only OS (assume that it is running from memory) in order to get complete access to
    the blank primary disk so that full restore with ufsrestore could take place.
    Thanks in advance,
    Jack
    Edited by: 797805 on 9/06/2012 04:15

  • Won't boot normally or in recovery and single user mode, safe mode hangs up halfway

    iMac locked up with visual glitches while playing the Mac beta client of League of Legends. Had to force a shutdown by holding the power button. Now it won't boot; after the Apple logo and spinning wheel I just get a white screen. I tried launching in recovery mode, that didn't work. Then I tried safe mode; the bar filled a little over half and then nothing but white screen. I was able to boot single user mode once; ran fsck -fy and rebooted, still white screen. Now I can't get back to single user mode. I booted with command option P R to reset the NVRAM and got the second chime, but still nothing.
    Luckily all my important files are in the cloud, but I'm really hoping my computer isn't completely dead. I haven't had any issues in the past. I've even been playing LoL for over a month with no issues, until now when I tried to play the newer game types, Dominion and ARAM; both caused visual glitches forcing shutdowns. I was able to restart my computer with no problem after the first two visual glitches, but after the last one I am stuck at the white screen as I described above.
    Thanks in advance for your help!

    I'd bet the drive is damaged. You could try reformatting if possible. Again, you are booting from the Recovery-10.8.2 disk if you can. If you can't, then you will need to use the installer disc that came with the computer.
    Install or Reinstall Lion/Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
            the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Bluetooth problems in single user mode

    I've already checked some of the discussions on this topic but did not find the answers that i am looking for. i need to get into single user mode because my computer will not completely boot the osx. however, after i hold down the command-s and the promt comes up, it is af if i have no keyboard at all. i cannot type anything. is this due to the fact that i have a bluetooth keyboard? would going out and purchasing a usb help me out (because i have read some posts that they have the same problem with a usb)? is there any way around this. single user is becoming one of my last alternatives to having to reformat. please help!
    best

    A wireless bluetooth keyboard would only let you boot into Single User Mode, after that, you will need a regular USB keyboard to type in the prompts, same goes when doing a Hardware Test using the disc provided.
    As for some users posted on this forum saying they have not able to continue the Single User Mode under a regular USB keyboard, I am afraid I am one of them... I have not been able to solve the problem as yet and it is kinda "annoying" that there "may be something wrong" with my iMac that I cannot perform fsck, nevertheless I have regularly booted from the OS disc and run Disk Utility, which is equivilent to booting to SUM, but supposingly much better, and my HD checks out fine... so at the moment I have no worries.
    In my post there is another person who has regularly keeping me update about this problem and has deduced it maybe due to the internal bluetooth module and the USB inside... rather complex issue that may require me lengthy conversation with AppleCare or have something replace, or "worse" have my iMac sent away for a time for repair or replacement. Since my iMac is doing quite fine, I'll live with it for the moment...
    Cheers

  • Can't enable root user in single user mode

    hey, im having a problem. I cant enable the root user in single user mode. This is what I do:
    1.boot in single user mode
    2.I run the command /sbin/fsck -fy
    3.I run the command /sbin/mount -uw /
    4.I run the command passwd
    5.I type the password and then I retype it, but it gives me an error saying passwd: cant change password for root the account is not enabled (thats not exactly what it said, but you get the point)
    this worked in leopard, why dosent it work now? can someone give me an alternative way or tell me what im doing wrong?
    P.S. give me an actual answer not a why enable root? and I dont want to use directory utility.

    The command is wrong man. Do the following:
    Boot into S.U. Mode (Cmd+S).
    once the terminal prompt opens, type the following:
    mount -uw / ("mount"+space+"-uw"+space+slash)
    launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
    passwd root
    (after you press enter it will ask the password for the root user. Type it, even if it won't show any character. Then type again to confirm. Once you had finished type: exit).
    Test it and post the results.

Maybe you are looking for

  • What is the best way to open a .sit file?

    I downloaded my first .sit file today and thought double-clicking on it would open it with Stuffit Expander (which I also thought was included software, but apparently not -- at least not according to Spotlight). Instead, it for some reason defaulted

  • Premiere Pro CS6 on Mac crashes when attempting to capture HDV

    I've seen this topic previously but without an answer and was hoping for an update. I'm using Premiere Pro CS6.0.5 on a MacPro running 10.9.2 The camera is a Sony HDR-FX7. When in the capture window, the camera is recognized. I can rewind and fast fo

  • Read Header Text  From VF03 Transaction

    Hi Frds,               I want to Read Header Text  From VF03 Transaction Read Transport Number and Transport Date From Vf03 Transaction. Guide Me Briefly How to pass the varaibles to the function Module Regards, Kabil

  • Host down 450 'the sequel'

    Dear Forum people, Again I come for help. After working for months, the 450 host down error has returned. I have down nothing to trigger it, and this is honest, i was not even in the office. So I have done some digging and I am reading 2 things : DNS

  • How to clone & sync systems?

    Hi How do I sync my files from one mac to another? I have a macbookpro 15 and would like to copy ALL files to another macbook pro 13. Is there a way to "migrate" all files without having to re-install all apps? And is there a way to syn both of my ma