Get block count of device

the following code works in intel machine but in powerpc .
In PowerPC,after executing "ioctl(fd, DKIOCGETBLOCKCOUNT, &nCount); " ,nCount remains zero but the nSize gets the block count.
int nCount = 0;
int nSize = 0;
int fd = open("/dev/rdisk1s1",O_WRONLY);
if(fd != -1)
printf("Open Success \n");
else
printf("Open Fail %d\n",errno);
ioctl(fd, DKIOCGETBLOCKSIZE, &nSize);
printf("DKIOCGETBLOCKSIZE %d\n",nSize);
ioctl(fd, DKIOCGETBLOCKCOUNT, &nCount);
//nCount = nSize;
printf("DKIOCGETBLOCKCOUNT %d\n",nCount);
close(fd);
Can anyone help me with this?
Do i need to change some build settings?

Hi-
You might want to post this in the appropriate category in the Mac OS X Technologies forum.

Similar Messages

  • Trying to install/format an INTERNAL hard drive using Disk Utility gives me "Error: -69760: Unable to write to the last block of the device".   Is that a hardware problem and what could be done about it?

    *** PLEASE NOTE*** - This is a query about an INTERNAL HDD not an external one. Thanks.
    My Mac is a late 2009 model and the current hard drive recently failed. So I bought a new one, exactly the same, albeit 750gb instead of 500gb. The HDD is a Seagate Momentus 7200. Before the my current drive failed I made a time machine back up to an external USB HDD. I've inserted the HDD into the bottom of my Mac, plugged in the USB and started my machine pressing the 'Option' ([ALT]) key. I go into Disk Utility to try and format the new HDD by creating a new partition but I keep getting the messages,
    "Error: -69760: Unable to write to the last block of the device"
    or
    "POSIX: could not allocate memory"
    This is actaully the third HDD I've tried. The first was another Seagate Momentus 7200 500gb, but this time it was a newer model (model number ended in 423AS instead of 420AS - the new one I am trying ends with 420AS, which is the same as the current HDD). I then tried a Western Digital drive but that one didn't even show up in DU. Forums and tech support are suggesting it's faults with the HDDs but surely not three in a row?
    Could this be an issue with another part of my Mac?
    Is there anything else I can do to format the HDD, have I missed a crucial step?

    Did you ever get a resolution to this issue?
    I am having that exact error with a new 512GB SSD from Crucial, in a 15" MBP mid-2010.
    I really wonder now if the stupid SATA cable could be bad - causing the initial SSD fail.  I am replacing it with the EXACT same drive, and getting that "last block" error when i partition in the GUI or from command-line.
    thanks!

  • Invalid block count and poor performance

    Hi - Can anyone help?
    Running an early 2011 13' MBP on ML. For a year - 18 months I've noticed poor performance at times, consistently slow boot (sometimes 5 minutes to usable), occasional lockups and spotlight often reindexes itself and slows the system (much more than my previous MBP), I can't see anything that triggers it. I'm also getting recurring errors in Disk Utility of 'Invalid block count', every time I'll repair the disk (booting into recovery), but after a month of use the error will reappear. About three months ago I erased and reinstalled ML, some of my data was moved over in Time Machine but I didn't restore from it. The erase and reinstall hasn't made any difference and I'm still seeing the same issues. Hard disk SMART status appears to be fine.
    Can anyone recommend any troubleshooting steps? I'm not sure what else to do, still under Applecare and was thinking maybe the HD isn't working correctly?
    Cheers!

    Performance.
    Activity Monitor – Monitor Performance Problems          
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow boot.
    Startup - Slow Boot
    Startup - Slow Boot (2)
    Startup - Slow Boot (3)
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • External USB hard drive won't reformat, won't appear in Finder, error: Unable to write to the last block of the device message

    So I just got a new MacBook Air and since I had an external USB hard drive (TOSHIBA MQ01ABD100 1TB) lying around, I decided to use it for back-up. Since I only have just the one hard drive, I decided to partition it into two - one for Time Machine backups, and one for general files (formatted FAT so I could use it with Windows). However, the partitioning failed and I ended up with a partition named disk1s2. Plus, it won't appear on Finder anymore, but it appears in Disk Utility.
    I have tried to reformat it, but I always get the message "Unable to write to the last block of the device".
    Here's the info about my drive:
    Name: TOSHIBA MQ01ABD100 Media
    Type: Disk
    Partition Map Scheme: GUID Partition Table
    Disk Identifier: disk1
    Media Name: TOSHIBA MQ01ABD100 Media
    Media Type: Generic
    Connection Bus: USB
    USB Serial Number: 1220069C
    Device Tree: IODeviceTree:/PCI0@0/XHC@14
    Writable: Yes
    Ejectable: Yes
    Location: External
    Total Capacity: 1 TB
    Disk Number: 1
    Partition Number: 0
    S.M.A.R.T. Status: Not Supported
    And here's for disk1s2:
    Name: disk1s2
    Type: Partition
    Disk Identifier: disk1s2
    Mount Point: Not mounted
    File System: Mac OS Extended
    Connection Bus: USB
    Device Tree: IODeviceTree:/PCI0@0/XHC@14
    Writable: Yes
    Capacity: 999.86 GB
    Owners Enabled: No
    Can Turn Owners Off: Yes
    Can Be Formatted: Yes
    Bootable: Yes
    Supports Journaling: Yes
    Journaled: No
    Disk Number: 1
    Partition Number: 2
    Here's what it says when I run diskutil in Terminal:
    Device Identifier:        disk1
    Device Node:              /dev/disk1
    Part of Whole:            disk1
    Device / Media Name:      TOSHIBA MQ01ABD100 Media
    Volume Name:              Not applicable (no file system)
    Mounted:                  Not applicable (no file system)
    File System:              None
    Content (IOContent):      GUID_partition_scheme
    OS Can Be Installed:      No
    Media Type:               Generic
    Protocol:                 USB
    SMART Status:             Not Supported
    Total Size:               1.0 TB (1000204884480 Bytes) (exactly 1953525165 512-Byte-Units)
    Volume Free Space:        Not applicable (no file system)
    Device Block Size:        512 Bytes
    Read-Only Media:          No
    Read-Only Volume:         Not applicable (no file system)
    Ejectable:                Yes
    Whole:                    Yes
    Internal:                 No
    OS 9 Drivers:             No
    Low Level Format:         Not supported
    I didn't have any data in it prior to the failed partitioning attempt, so there aren't any worries of data recovery. But I'd really like to be able to use this drive again, and save some money (external hard drives are expensive where I live). Anyone with any ideas?

    I'd also like to add that repairing the disk using Disk Utility does nothing but tell me to reformat the drive. So I'm stuck in a loop here.

  • [Repaired] Bad blocks cause kernel blocking to the device

    I got
    May 10 10:08:13 qslap kernel: sd 4:0:0:0: [sdb] Unhandled sense code
    May 10 10:08:13 qslap kernel: sd 4:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
    May 10 10:08:13 qslap kernel: sd 4:0:0:0: [sdb] Sense Key : 0x3 [current]
    May 10 10:08:13 qslap kernel: sd 4:0:0:0: [sdb] ASC=0x14 ASCQ=0x0
    May 10 10:08:13 qslap kernel: sd 4:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 25 42 ea af 00 00 01 00
    May 10 10:08:13 qslap kernel: end_request: I/O error, dev sdb, sector 625142447
    May 10 10:08:13 qslap kernel: Buffer I/O error on device sdb, logical block 78142805
    in system log when I try to access /dev/sdb in some way (for example, plug in, fdisk, gparted, but not palimpsest).
    This kind of log repeats several times and blocks any access to that device for tens of seconds (Seems kernel keep retrying, not give up the first time), which is annoying.
    From palimpsest, I can see:
    Current Pending Sector Count: Value: 1 sector
    Uncorrectable Sector Count: Value: 1 sector
    It says when write fails, "Current Pending Sector" will be remapped automatically by hardware.
    I got the sector size = 512 bytes:
    # fdisk -lu /dev/sdb
    Disk /dev/sdb: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xaaaaaaaa
    Disk /dev/sdb doesn't contain a valid partition table
    badblocks detects the bad sector well:
    # badblocks -svw -b 512 /dev/sdb 625142447 625142447
    Checking for bad blocks in read-write mode
    From block 625142447 to 625142447
    Testing with pattern 0xaa: 625142447one, 0:20 elapsed
    done
    Reading and comparing: done
    Testing with pattern 0x55: done
    Reading and comparing: done
    Testing with pattern 0xff: done
    Reading and comparing: done
    Testing with pattern 0x00: done
    Reading and comparing: done
    Pass completed, 1 bad blocks found.
    From above, you can see that write a block one time takes 20 seconds due to kernel blocking.
    badblocks writes 4 times,  ~80 seconds.
    Note: badblocks doesn't find any bad blocks when performing a full disk read-only test.
    However, the sector wasn't automatically remapped (badblocks has already written that sector)
    the kernel is still generating logs and blocking, which is very annoying.
    I also tried to write at that sector directly, no luck:
    # dd if=/dev/zero of=/dev/sdb bs=512 count=1 seek=625142447
    dd: writing `/dev/sdb': Input/output error
    1+0 records in
    0+0 records out
    0 bytes (0 B) copied, 7.26951 s, 0.0 kB/s
    What should I do to let the hardware remap that sector?
    If no way due to hardware limitation, then how can I mute the annoying log and let the kernel not blocking ?
    Additional: I am looking for a way to let kernel not blocking, give up at the begining asap, or let the hardware SMART mark that sector not to be 'Pending', not for a way to create fs with bad blocks marked.
    I know if I provide a list of badblocks to mkfs.*** to create a fs, these blocks will not be used.
    However, when I plug in the removable harddisk, BEFORE performing ANY r/w instructions, the kernel starts to generate logs and /dev/sdb is not visible in tens of seconds. Same situation occurs when I run / fdisk / gparted (these programs are not responsible for tens of seconds due to kernel blocking) ...
    I guess that SMART does these checks automatically and cause kernel blocking, while SMART can't handle these things well.
    This is the output of smartctl -a /dev/sdb -d sat, which may be helpful:
    smartctl 5.39.1 2010-01-28 r3054 [i686-pc-linux-gnu] (local build)
    Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
    === START OF INFORMATION SECTION ===
    Model Family: Seagate Momentus 5400.5 series
    Device Model: ST9320320AS
    Serial Number: 5SX3YFQ8
    Firmware Version: SD03
    User Capacity: 320,072,933,376 bytes
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: 8
    ATA Standard is: ATA-8-ACS revision 4
    Local Time is: Mon May 10 11:25:42 2010 CST
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    See vendor-specific Attribute list for marginal Attributes.
    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 121) The previous self-test completed having
    the read element of the test failed.
    Total time to complete Offline
    data collection: ( 700) seconds.
    Offline data collection
    capabilities: (0x73) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    No Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 1) minutes.
    Extended self-test routine
    recommended polling time: ( 114) minutes.
    Conveyance self-test routine
    recommended polling time: ( 2) minutes.
    SCT capabilities: (0x103f) SCT Status supported.
    SCT Feature Control supported.
    SCT Data Table supported.
    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000f 094 088 006 Pre-fail Always - 182650280
    3 Spin_Up_Time 0x0003 099 099 000 Pre-fail Always - 0
    4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 595
    5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000f 075 060 030 Pre-fail Always - 30942693
    9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 4482
    10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 1
    12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 579
    184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
    187 Reported_Uncorrect 0x0032 001 001 000 Old_age Always - 1812
    188 Command_Timeout 0x0032 100 099 000 Old_age Always - 2
    189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
    190 Airflow_Temperature_Cel 0x0022 067 039 045 Old_age Always In_the_past 33 (0 166 39 23)
    191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 98
    192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 48
    193 Load_Cycle_Count 0x0032 011 011 000 Old_age Always - 178621
    194 Temperature_Celsius 0x0022 033 061 000 Old_age Always - 33 (0 12 0 0)
    195 Hardware_ECC_Recovered 0x001a 060 039 000 Old_age Always - 182650280
    197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 1
    198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 1
    199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
    SMART Error Log Version: 1
    ATA Error Count: 1979 (device log contains only the most recent five errors)
    CR = Command Register [HEX]
    FR = Features Register [HEX]
    SC = Sector Count Register [HEX]
    SN = Sector Number Register [HEX]
    CL = Cylinder Low Register [HEX]
    CH = Cylinder High Register [HEX]
    DH = Device/Head Register [HEX]
    DC = Device Command Register [HEX]
    ER = Error register [HEX]
    ST = Status register [HEX]
    Powered_Up_Time is measured from power on, and printed as
    DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
    SS=sec, and sss=millisec. It "wraps" after 49.710 days.
    Error 1979 occurred at disk power-on lifetime: 4480 hours (186 days + 16 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    25 da 01 ff ff ff 4f 00 13:43:15.498 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:13.155 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.887 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.887 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.886 READ DMA EXT
    Error 1978 occurred at disk power-on lifetime: 4480 hours (186 days + 16 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    25 da 01 ff ff ff 4f 00 13:43:13.155 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.887 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.887 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.886 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.886 READ DMA EXT
    Error 1977 occurred at disk power-on lifetime: 4480 hours (186 days + 16 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    25 da 01 ff ff ff 4f 00 13:43:10.887 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.887 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.886 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.886 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:10.885 READ DMA EXT
    Error 1976 occurred at disk power-on lifetime: 4480 hours (186 days + 16 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    25 da 01 ff ff ff 4f 00 13:43:08.457 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:06.082 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:03.814 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:03.813 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:03.813 READ DMA EXT
    Error 1975 occurred at disk power-on lifetime: 4480 hours (186 days + 16 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    25 da 01 ff ff ff 4f 00 13:43:06.082 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:03.814 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:03.813 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:03.813 READ DMA EXT
    25 da 01 ff ff ff 4f 00 13:43:03.813 READ DMA EXT
    SMART Self-test log structure revision number 1
    Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
    # 1 Extended offline Completed: read failure 90% 4480 625142447
    # 2 Short offline Completed: read failure 90% 4474 625142447
    # 3 Extended offline Completed: read failure 90% 4474 625142447
    # 4 Short offline Completed: read failure 90% 4474 625142447
    # 5 Conveyance offline Completed: read failure 90% 4473 625142447
    # 6 Short offline Completed: read failure 90% 4473 625142447
    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    Last edited by b6fan (2010-05-10 07:18:46)

    Bad block repaired by SeaTools for DOS.
    Seems only SeaTools for DOS can repair this issue.

  • Invalid Volume Free Block Count Error In Disk Utility

    My Ti-Book has been acting very strange lately so I decided to run the Verify Disk Option in the Disk Utility program. When I ran it, I got a series of messages in red that were:
    Volume Bit Map Needs Minor Repair
    Invalid volume free block count
    Error: The Underlying Task reported failure on exit
    When the verify disk function completed, I was asked to enter my administrator password. When I entered it and clicked on Okay, the Disk Utility program froze up and I had to restart.
    What do the two error messages mean? How do I repair my disk?

    Hi, WTM. The Verify Disk routine in Disk Utility is almost never worth running. It does the same error-detection tasks as the Repair Disk routine, but then it doesn't repair any errors that it finds.
    Start up from your Tiger installer DVD, open Disk Utility, select your hard drive, and run the Repair Disk routine. If you get the same "task reported failure on exit" message, you'll need a stronger directory-repair utility like DiskWarrior, or you'll need to erase your hard drive completely and reinstall everything on it.

  • Volume needs repair..Invalid volume Free block count..

    When I did a scan on the HD through Disk Utilty I got this error..."Volume needs repair...Invalid volume Free block count,,,Should be 65607....instead od 65606."
    Is there any application that I can get to fix that error..so that I don't have to Reinstall with the start up disks.. I don't feel like reinstalling everything all over again. Please help or if you can direct me to the area so that I can change the numbers myself...Thank you

    Hi Nvrdan1de, and a warm welcome to the forums!
    You cannot repair the HD you're booted from, "Try Disk Utility
    1. Insert the Tiger Mac OS X Install disc , then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, *you must select your language first.)*
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    Then Safe Boot , (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it finishes.
    Safe Boot... holding Shift key down at bootup. Safe Boot is a special way to start Mac OS X 10.2 or later when troubleshooting.
    http://docs.info.apple.com/article.html?artnum=107392
    Though this seems like a simple one for DU to fix, unfortunately DU can't fix all that much,So, if it fails your best bet is DiskWarrior, you need the CD though.
    http://www.alsoft.com/DiskWarrior/

  • Disk Utility Error "Unable to write to the last block of the device"

    I have a WD Caviar Black 1TB drive in an OWC Mercury Elite-AL Pro Quad Interface enclosure.  I have been using it as a Time Machine back up volume without any trouble.  I recently upgraded to Lion and within a week I had a back up fail.  I tried repairing the disk, and then tried erasing it, but that failed as well with the error saying that it was "Unable to write to the last block of the device".  This would seem to be the drive failing, but there are many reports in the Apple forums of back up drives giving this error after a Lion upgrade and I am thinking it's some kind of issue with drive needing some kind of firmware update or special formatting.  I thought you guys might be familiar with the issue and have a fix.  Right now the disk is dead in the water and can't be reformatted.

    I have exactly the same set up I described above in two different locations (one at home, and one at work).  I swap the Time Machine BUP drive when I get to each location and therefore leave my most recent back up at home or work when I leave each place.  That worked fine for a couple of years.  Then after the Lion upgrade, I started having issues with the two drives.  In both cases, I had to lose all my BUP history in Time Machine and start over with a fresh back up.  The set up at home, let me do it by reformatting the drive and then doing a new back up (I was frustrated I lost all the incremental back ups, the whole point to "Time" Machine, but I was able to get a new BUP established and start over).  At work, however, I had the issue described in my original post where I couldn't reofrmat the drive.  I was at a standstill and that's why I posted my issue.  A couple of weeks later, I got to work, plugged in the drive and it let me reformat it like nothing there was never a problem.  I made a fresh Time Machine BUP and everything was back to normal (albeit with a new BUP).  I can't tell you what changed ... It's possible there was a software update that snuck in and updated drivers or something without me being aware of it, but I haven't got a clue.  All I know is it's resolved and I am back to backing up as before ... Most importantly is to note it was not the drive that failed.  So, there's the update for you, I wish you luck with your drive.

  • Invalid Block Count

    Hi Everyone,
    I seem to be getting an error message when i run Disk Utility, it says "Invalid Block Count, your disk is corrupt and needs to be repaired".
    I then repair it using the Lion recovery disk and it repairs it. Maybe a month or so down the line it appears again I then do the same and the end result is the same, can anyone help with this as it is worrying me.
    Also is there any way you can get rid of the bad sectors in the HDD when problems appear?
    Thank you in advance.

    Yes, you can take it to a genius bar and they should be able to give you a definitive diagnosis.  They will charge you for a replacement if necessary, but you will know the cost and be able to decide if you want to do it yourself.
    Ciao.

  • Apple ID keep getting blocked

    Hello
    Anyone have any idea what's going on these days with my Apple ID?
    I sometimes download apps / updates from my iPhone, and sometimes from Itunes, but every 2-3 weeks my Apple ID will get blocked and I have to go thru the trouble to reset bla bla bla bla and it has been like this for many months already.  Getting really fed up.

    Password resets being demanded for an Apple ID or MobileMe login (the same thing) can be caused, particularly for people with simple IDs (e.g. first [email protected]), by idiots who think they own the address trying to log in several times and triggering a security lockout.
    Quite a number of people have complained about this exact problem see:
    http://tinyurl.com/2cmw7ko
    http://tinyurl.com/2bqohdq
    http://tinyurl.com/2aqfn29 (shortened URLs to threads in this forum).
    It would appear that the requirement to use a new password each time is a new feature, hence the sudden upsurge of problems - and this causes a lot of annoyance because affected users then have to reset the password on every computer and device they own.
    The only way forward is for everyone who has this problem to make as much fuss as possible until enough pressure builds up for Apple to do something - though exactly what is debatable.
    The real problem is faulty initial design - it's a serious flaw that the login user name is the same as the account name which appears in web pages and emails: this means that anyone can find it out, and anyone can lock you out of your account, either inadvertantly or maliciously. If the login was different - so you would have to have an account name, a user login, and a password - the problem wouldn't arise: but unfortunately this would require a massive rewrite of the software and isn't likely to happen.
    Up to now people in this situation have been able simply to reset to the same password - enough of a pain in itself if some fool somewhere thinks he owns your email address. It may be that the recent upheaval has been triggered by the spate of fraudulent purchases in iTunes.

  • Getting running count of field as it is entered

    Hi,
    I need help on getting running count of field as it is entered. Example
    There is a block with 3 fields and has 100 records entered with 2nd and 3rd field as null ( These records are automatically populated the movement we go into the window.)
    Now the users will start entering the 2nd field and 3rd field and I would like get the count of records entered entered.
    Thanks for the help.

    Got it.

  • Incorrect Deployed To count for device licensing

    My Deployed To count for device licensing says 22, but I've only deployed it to 6 machines.  Is there a way to see what computers Adobe thinks are using licenses?

    Did you ever get a reply or find an answer to this? I'm “missing” some licenses myself, and there is no information about this. Technical details for sysadmins are sorely lacking.

  • IMac/Tiger kernel panic and incorrect block count

    Hi,
    First time here, and I am not super computer-savvy, so please bear with me as I stumble through this.
    I have an iMac running 10.4.11. The other day, my screen suddenly showed a message telling me I had to immediately restart my computer. (I have since learned this was due to "kernel panic.") I ran Disk Utility, received the following message via the log:
    Verifying volume “Macintosh HD”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Incorrect block count for file .journalHistoryLog
    (It should be 34187 instead of 0)
    0 %)
    Incorrect number of thread records
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking Extended Attributes file.
    ng volume bitmap.",0)
    Volume Bit Map needs minor repair
    Checking volume information.
    Invalid volume free block count
    (It should be 19184890 instead of 19177718)
    The volume Macintosh HD needs to be repaired.
    I then found that to repair this, I have to boot and run DU from my original startup (Tiger 10.4) disk.
    But (here's the problem): I cannot find my 10.4 disks, and I understand it's almost impossible to purchase Tiger anymore. Also, I'm planning to get a new computer soon, so would hate to spend a lot of money to just get through a few weeks (OTOH, would hate to crash and have no computer for a few weeks!).
    So here's the questions:
    1. Is it possible to boot some other way (for example, in Safe Mode) and run DU that way to fix the problem? If so, what are the steps in the process?
    2. If not, then what are my chances if I don't repair (that is, how serious a problem is this)? Would I be okay using the computer for another several weeks until I get my new computer (going for a Mac Book Pro)?
    I should note that since this happened, the computer has been fine. (Though of course, I back up to an external hard drive every night, just in case.) So I'm hoping the computer will survive for a few weeks.
    Sorry for the long post. Thank you all in advance for any help you can offer!
    - Linda

    "Is this something a reinstall of OS X would fix or would it be more of a bad HDD that I should replace? The iMac is still under the 1 year warranty until February 5th."
    Sounds like Disk Utility cannot fix the hard disk.
    If getting your iMac in for service is difficult, you could get DiskWarrior which repair a directory available here: http://www.alsoft.com/
    If it were me with an iMac still under warranty, I'd take it in for service and make sure Apple repairs it. You shouldn't have to rely on 3rd party software to repair the hard disk when it's still under warranty. If you do this, when you pick the iMac up, make sure and boot it before you take it home to make sure it's functioning as it should.
    Carolyn
    Message was edited by: Carolyn Samit

  • Invalid free block count

    Hi,
    Earlier today I wanted to use the boot camp utility to install WinXP on my MBP. I decided to set the partition to about 60 Gb of space for Windows, but the utility crashed from some reason. (The screen went slightly dim grey and the message "please restart your computer now" appeared).
    So I restarted the computer, but now, the 60 Gb I allocated for the new partition has been interpreted by the OS as used space on the Mac HD. I tried running Disk Utility to verify what was going on, and I get the message "Disk repair failed, invalid free block count".
    How can I get my free space back? Do I really need to use the Leopard dvd to run disk utility again? I hope not, because I left the dvd at my other house, that's pretty far away from where I am right now. Any help would be appreciated! Thanks.

    I don't know that Disk Utility can help since it will not repair the corrupted Boot Camp partition. You can run Boot Camp Assistant and see if it will remove the partition. If it cannot, then the next steps can be a gamble so you should backup your OS X partition in case you may need to repartition the drive.
    If you cannot remove the partition with Boot Camp, then you can try this:
    Open Disk Utility, select the drive entry (mfgr.'s ID and drive size) from the left side bar, then click on the Partition tab in the DU main window. You should now see the partition sizing graphic. Hopefully you should see two partitions. The top partition will be your OS X system volume. The bottom partition should be the one Boot Camp tried to create. Click in the bottom partition to select it (you will see it will be outlined in blue) and click on the "-" button in the lower left corner. The partition should then be removed. Click on the Apply button and wait for the process to complete. If the process fails then you will have to start from scratch and repartition the entire drive. Your OS X installation will be lost. This is why you need to make the backup in advance. If it does work then select the sizing gadget in the lower right corner of the remaining partition and drag it down to the bottom of the sizing window, then click on the Apply button again. Wait for the repartitioning to complete.
    Just to be on the safe side I would repair the drive:
    Extended Hard Drive Preparation
    1. Open Disk Utility in your Utilities folder. If you need to reformat your startup volume, then you must boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger or Leopard.)
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Click on the Options button, set the partition scheme to GUID (only required for Intel Macs) then click on the OK button. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive.

  • My iphone get blocked when I recieve phone calls

    when I recieve phone calls my phone get blocked it shows somebody is calling  me in black color but when  I want to return to the main screen it get blocked and I have to turn off to use it

    What leads you to believe that you are entitled to an upgrade because of a hardware issue?
    Warranty only entitles you to the same model/capacity device as replacement.
    If you are out of warranty, you pay out of warranty replacement cost which is $199 (regardless of model/capacity).
    If you are eligible for full-discount upgrade, that would be the better route to go.
    If you are not eligible for full-discount upgrade, the most economical solution is warranty or out of warranty replacement.

Maybe you are looking for

  • Problem in SOAP Request

    Hi Experts, I am working on SOAP-XI-Proxy Scenario. The Java system is using the WSDL from XI and triggering the following request   <?xml version="1.0" encoding="UTF-8" ?> - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

  • [Soundblaster Audigy 2ZS] Sound cutting out in middle of gamepl

    I have Vista, and I never had this problem with XP. I downloaded the Vista drivers and have ran Windows Update for all the missing drivers. When I run dxdiag.exe I go to the sound tabs and find this. The file ctaud2k.sys is not digitally signed, whic

  • Multiple values for a Like condition

    How can I make a like condition for multiple value options, for example select b.segment1, b.segment2, b.description, c.cross_reference, c.cross_reference_type from inv.mtl_system_items_b b, inv.mtl_cross_references_b c where b.inventory_item_id = c.

  • Exporting high-res

    I am trying to export high res jpegs from lightroom, but when I do and try and upload to make a bigger print (11x14) it says resolution is too low. What settings should I use? The files are raw from the start. Do I have to use tiff files to make them

  • Wierd sound issue

    i have tis issue with my sound. i have sound from sound effects like the "popping" sound when you turn the sound up but i cant have any sound when watching or listening to things in the internet. this is really annoying so it anyone knows how to help