Can't open '/dev/rdisk1' for writing (Resource busy)

I got a Macbook Pro, install win7 on boot camp. When I wanted to resinstall win7, I accidently click on Recover button and it deleted all my partitions and become one, which run Mac OS. I tried to recover my data partition. On google, I found some guy do it with 'pdisk' command. I followed steps but when I tried to use pdisk:
sudo pdisk /dev/rdisk0
and use command 'i':
i got a message: can't open '/dev/rdisk0' for writing (Resource busy)
So I borrowed a Mac, connected it with my Macbook through FireWire, and set my Mac in 'Target Disk Mode' and use pdisk again:
sudo pdisk /dev/rdisk1
when i use command 'i', i still got the message:
can't open '/dev/rdisk1' for writing (Resource busy).
Can anyone know what is this problem? Do I need to extract my hard disk from my Mac?
Please tell me about it!
Thanks!
vanpn
P/S: this is the link I read about recover partition: http://perrohunter.com/index.php/blog/2011/06/repair-a-mac-os-x-hfs-partition-ta ble

Hi,
Thank you for youre answer, that was very useful. It helped me find the solution. The file I wanted to edit was downloaded with Inno Script Studio, which by installation changed the attributes of the file to none writable. So simple by setting a parameter
in this scripture I was given write access.
Best regards

Similar Messages

  • Can't open a file for writing in the ProgramData folder

    Hi,
    I have a simpe text file in the ProgramData directory that I need both to read and write to.
    SHGetFolderPath(0, CSIDL_COMMON_APPDATA, 0, SHGFP_TYPE_CURRENT, userpath);
    PathAppend (userpath, TEXT("Testfolder/gnsh.dat")); licensefile = _wfopen(userpath, L"r+"); 
    However, the only way I have been able to open the file both in read and write modus, is to run the program as an administrator. But this is not a practical solution. The question is then if there is a way  to open this file in both moduses when running
    the program in the normal way, not as an administrator.
    Thanks in advance.

    Hi,
    Thank you for youre answer, that was very useful. It helped me find the solution. The file I wanted to edit was downloaded with Inno Script Studio, which by installation changed the attributes of the file to none writable. So simple by setting a parameter
    in this scripture I was given write access.
    Best regards

  • "Attempt to open locked file for writing, Result Code = -54" when importing

    I get this error box when importing audio files into a logic session over my network.
    +Attempt to open locked file for writing+
    +Result Code = -54+
    The finder is capable of copying the files over to the local machine, at which point I can successfully import them into my local logic session, but Logic is incapable of doing the same. Strange and annoying.

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • TS3276 Mail has started sending duplicates of a message, especially group messages.  It also opens 2 windows for writing a new email.  Help.

    Mail has started sending duplicates of a message, especially group messages.  It also opens 2 windows for writing a new email.  Help. How do I fix this?

    Unfortunately there isn't official commercial support for Mozilla Thunderbird from Mozilla Corp.. I believe some contributors here ([http://mozilla.magicfab.ca myself included]) do offer such support, though.
    ''Before doing anything else, please do exit Thunderbird completely and [https://support.mozilla.org/en-US/kb/profiles-tb#w_backing-up-a-profile backup the profile folder] - it contains all your email, settings, filters, etc.''
    Regarding your issue, it looks like the mail folder information may be corrupt. In the left pane, in the folder list, right-click on the Sent folder and select '''Properties'''. Choose "'''Rebuild Index'''" or "'''Repair Folder'''" - do you even have that option? Once done, exit TB completely and restart it.
    Updating to a newer version will help anyone help you, if only because some of the documentation for older Thunderbird versions is a bit harder to find and testing to try & reproduce your problem will be harder. Don't do this just yet, though :)
    After this issue has been addressed I would suggest considering using IMAP if your provider allows you to, and of course archiving your email to Local Folders and doing regular backups of your profile.
    If you want to arrange commercial support, contact me via the link I provided above and we can discuss rapidly. Otherwise I am fine continuing here, however I can only reply as time permits. I am in Montreal (so, EST time zone).

  • I can't open an update for Acrobat 9 pro I get asked to open another prog from the suite but when Io

    I can't open an update for Acrobat 9 pro I get asked to open another prog from the suite but when I do Acrobat just shuts down,help !!
    And I can't get back to the older version of Acrobat

    See this User Tip by turingtest2
    https://discussions.apple.com/docs/DOC-6562
    JimmieJag wrote:
    2. If I reinstall it, will I lose my store credit and non-iTunes songs?
    Nothing should be lost... However... it is both Prudent and Recommended that a backup should have been created and maintained.

  • I can't open swf files for schoolwork. Installed VCL, Flip4Mac and Adobe flash and shockwave players. Can get white screen with connection erro message with adobe flash player. Help me!

    i can't open swf files for schoolwork. Installed VCL, Flip4Mac and Adobe flash and shockwave players. Can get white screen with connection erro message with adobe flash player. Help me!

    Apple dropped playback support for .swf formats in QuickTime almost ten years ago.
    Adobe Flash Player is the only way to view them.

  • Which type of attachments can i open from Mail for...

    which type of attachments can i open from Mail for Exchange in Nokia E 7. ( e.g.MS Office Word , Excel , PowerPoint Latest versions , PDF , Jpeg Etc ) 
    Regards,
    COMDINI
    Regards,
    COMDINI

    As per the specifications..
    Email and messaging
    Easy-to-use email client with attachment support for e.g. images, videos, music and documents .doc, .xls, .ppt, .pdf, .zip

  • How can I enlarge the window for writing descriptions for pictures in iphoto 11?

    How can I enlarge the window for writing descriptions for pictures in iPhoto 11?

    That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
    LN

  • Can not open vodafone website for bill pay

    can not open vodafone website for bill pay. Gives Message as " Peer's Certificate has been revoked.
    (Error code: sec_error_revoked_certificate)
    == URL of affected sites ==
    https://myvodafone.vodafone.in/NWSS-Project-context-root/NWSS.jsp?Circle=0005

    This is happening in all browsers, I tested it with IE8, IE6, IE7 and Chrome, this looks like an issue with the website and not with Firefox, please contact the helpdesk of the corresponding website and ask them to fix their security certificate. I am no expert in security certificate by the way, but this is required for HTTPS connections.

  • Can't open /dev/rdsk/c1t0d0s6

    Hi, one of my file systems is corrupted. When I do
    #mountall --> I am getting the following
    /dev/md/rdsk/d50 already mounted
    checking ufs filesystems
    /dev/rdsk/c1t0d0s6: No such device or address
    Can't open /dev/rdsk/c1t0d0s6
    /dev/rdsk/c1t0d0s6: CAN'T CHECK FILE SYSTEM.
    /dev/rdsk/c1t0d0s6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
    WARNING - Unable to repair one or more of the following filesystem(s):
    /dev/rdsk/c1t0d0s6
    Run fsck manually (fsck filesystem...).
    Exit the shell when done to continue the boot process.
    When I do the following to fix the file system
    # fsck -F ufs -y /dev/rdsk/c1t0d0s6
    I am getting the following error mesg.
    Can't open /dev/rdsk/c1t0d0s6
    How can I fix the problem. Any help is appreciated. Thanks.

    iostat -En is producing the following output : I don't see c1t0d0 in the list. What should I do? Thanks.
    c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: SEAGATE Product: ST318404LW Revision: 0006 Serial No: 3BT24RLJ000
    07125
    Size: 18.35GB <18349510656 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c0t1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: SEAGATE Product: ST318275LW Revision: 0001 Serial No: 3AK0DMN7000
    07015
    Size: 18.21GB <18207703040 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c0t6d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: TOSHIBA Product: CD-ROM XM-6401TA Revision: 1009 Serial No: 11/25/98
    Size: 2.45GB <2448654336 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0

  • Pro Tools 11 Attempt to open locked file for writing (-54)

    I am able to download Pro Tools 11 (includes HD) Pro Tools_11_0_2_Mac_80450.dmg to my Mac Mini, running 10.8.5.  However, when I run it and start Pro Tools 11, it gives me the error "Attempt to open locked file for writing (-54)".
    If someone could help me, I would appreciate it immensely.

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • Help : Can't open /dev/rdsk/c0t0d0s7

    Hello,
    I have a Sun Blade 150, with SunOS 5.8.
    And I had a problem with my disk, and now when I reboot it says:
    /dev/dsk/c0t0d0s1: I/O error
    The system is coming up. Please wait.
    checking ufs filesystems
    /dev/rdsk/c0t0d0s7: I/O error
    Can't open /dev/rdsk/c0t0d0s7
    /dev/rdsk/c0t0d0s7: CAN'T CHECK FILE SYSTEM.
    /dev/rdsk/c0t0d0s7: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
    WARNING - Unable to repair one or more filesystems.
    Run fsck manually (fsck filesystem...).
    Exit the shell when done to continue the boot process.
    When I run FSCK I checks /dev/rdsk/c0t0d0s0 OK, and then say's Can't open /dev/rdsk/c0t0d0s7.
    I don't have any backup of this, is there a way to fix this?
    Thanks,
    JS

    Hello,
    It first happened this: http://forum.java.sun.com/post!reply.jspa?messageID=9460392
    Then I use the SunOS install CD to use format to get the label backup, and now the system boots-up, and shows that errors.
    Its only missing the SWAP (c0t0d0s1 and c0t0d0s7).
    /etc/tab:
    fd - /dev/fd fd - no -
    /proc - /proc proc - no -
    /dev/dsk/c0t0d0s1 - - swap - no -
    /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no logging
    /dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes logging
    swap - /tmp tmpfs - yes -
    prtvtoc /dev/dsk/c0t0d0s2:
    dimensions
    512 bytes/sec
    255 sect/track
    16 tracks/cyl
    4080 sect/cyl
    38309 cyl
    38307acessible cylinders
    flags:
    1:unmountable
    10: read-only
    partition tag flags first sector "sector count" "last sector" mount directory
    0 0 00 0 156292560 156292559
    2 5 01 0 156292560 156292559
    Thanks,
    JS

  • Cisco Security MARS 110 error - sfdisk:Cannot open /dev/sda for reading

    HI when installing the MARS ver 6.0.1 we are getting this error sfdisk:Cannot open /dev/sda for reading, but found that this a bug for that ver BUG id : CSCso92379 - Cannot open /dev/sda for reading" error seen on installing Gen1 GC
    So we tried installing the ver 5.3 now also getting the same error, pls let me know is this a hardware issue or a bug

    It sounds like there may either be a problem with the RAID controller [configuration] or, though unlikely a hardware failure. You'd need to check the RAID controller BIOS to see if there's a hard disk drive problem or RAID configuration problem. Also check RAID controller is damaged as disks are not recognized at all.
    Rebuild the Raid and reimage the appliances.

  • Why apple don't open online apple store for saudi arabia ? and can apple open online store for saudi arabia please

    why apple don't open online apple store for saudi arabia ? and can apple open online store for saudi arabia please

    PLEASE CAN APPLE OPEN ONLINE STORE FOR SAUDI ARABIA

  • HT1529 how can I open the outbox for mail? That is, mail that i have finished and pressed 'send' but has not appeared in the 'sent' folder

    how can I open the outbox for mail? That is, mail that i have finished and pressed 'send' but has not appeared in the 'sent' folder

    The reason it will not be in the sent folder is, it failed to send.
    If it failed to send, then you will see the Outbox icon. 'Pending' would be a more descriptive name.
    When it eventually sends, the Outbox will not show in the Mail app interface.
    Until it is sent it will stay stuck in the Outbox.
    If it refuses to send, you can manually delete it in Finder, at the location ~/Library/Mail/Mailboxes/Outbox.mbox
    Close Mail first, before you search for that email using the Finder.
    Mail version 4.6. Mac OS version 10.6.8

Maybe you are looking for

  • Workflow For Archiving Projects

    I'd like to get some suggestions for a good archiving workflow. Backing-up audio, video, graphics, text, motion files etc. In the past I backed up to DVD and would like to continue in this fashion. Thanks for the ideas. kj G5   Mac OS X (10.4.5)   2.

  • When doing a post to a rest service is it possible to send multiple records in json

    Hi I'm trying to develop my first web service and I'm not sure I'm in the correct place. I'm using Oracle application express 4.2.2. on oracle 11g. I followed this example Creating and Using RESTful Web Service in Application Express 4.2 and used jav

  • Dreamweaver 8 Certification

    Hi All, Just wanted to let you guys and gals know about a new product that we have released called DW8 Exam Buster. It has 650 questions in 10 predefined tests designed to help you prepare for all aspects of the actual Dreamweaver 8 Certification exa

  • I can't download itunes 10 don't have 10.5 and can't sync my new iphone help?

    I can't download itunes 10 don't have 10.5 and can't sync my new iphone help?  Purchased Snow Leopard, but won't instal because my computer doesn't have intel.  Any idea how I can get my phone to sync with my computer?  Have Apple 2.1 GHz PowerPC G5.

  • How to delete archivelogs once they are applied on Physical Standby

    We have 10.2.0.4 Primary and Physical Standby. According to Note, ID 331924.1, we have on Primary: RMAN> SHOW ARCHIVELOG DELETION POLICY; RMAN configuration parameters are: CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY; on Standby: RMAN>