Problem with partitioning - disk permanently falls back to old p-table

Hey Guys!
I'm quite desperate and can't find answers for the following problem - maybe some of you already had a similiar problem.
I want to reuse a SSD that I used on a different machine as primary system drive. It's partition-table:
# fdisk -l /dev/sda
Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 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
Disklabel type: dos
Disk identifier: 0x0004f0e5
Device     Boot  Start       End   Sectors  Size Id Type
/dev/sda1  *      2048    499711    497664  243M 83 Linux
/dev/sda2       501758 250068991 249567234  119G  5 Extended
/dev/sda5       501760 250068991 249567232  119G 8e Linux LVM
There is a LVM volume group with two volumes (root and swap) on sda5. No matter how I try to destroy the LVM setup and the partitioning, it is always "reseted" to this setup.
I tried: lvremove, vgremove, pvremove, fdisk, cfdisk, gdisk, cgdisk, dd from /dev/null, testdisk - with and without reboots, from arch-linux booted from usb and from an ubuntu-live-cd. No matter what, the partitioning does not change.
Why I want to reformat it? I want to use the drive as cache for zfs-on-linux.
It feels like the drive is somehow write-protected.
Has anyone suggestions what to try next?

Thanks @ROOKIE
Sadly didn't work either - see below. Underneath I added results of smart-tests - maybe I miss something.
$ sudo lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119.2G  0 disk
|-sda1   8:1    0   243M  0 part
|-sda2   8:2    0     1K  0 part
`-sda5   8:5    0   119G  0 part
sdc      8:32   1   7.4G  0 disk
|-sdc1   8:33   1   512M  0 part
`-sdc2   8:34   1   6.9G  0 part
sdd      8:48   1   7.4G  0 disk
|-sdd1   8:49   1   512M  0 part /boot
`-sdd2   8:50   1   6.9G  0 part
sr0     11:0    1  1024M  0 rom 
zram0  254:0    0  75.1M  0 disk [SWAP]
zram1  254:1    0  75.1M  0 disk [SWAP]
zram2  254:2    0  75.1M  0 disk [SWAP]
zram3  254:3    0  75.1M  0 disk [SWAP]
$ sudo blkdiscard -v /dev/sda
/dev/sda: Discarded 128035676160 bytes from the offset 0
$ sudo blkdiscard -v /dev/sda
/dev/sda: Discarded 128035676160 bytes from the offset 0
$ sudo fdisk /dev/sda
Welcome to fdisk (util-linux 2.26.1).                                                                                                                                                                                   
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): o
Created a new DOS disklabel with disk identifier 0x591d429c.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119.2G  0 disk
|-sda1   8:1    0   243M  0 part
|-sda2   8:2    0     1K  0 part
`-sda5   8:5    0   119G  0 part
sdc      8:32   1   7.4G  0 disk
|-sdc1   8:33   1   512M  0 part
`-sdc2   8:34   1   6.9G  0 part
sdd      8:48   1   7.4G  0 disk
|-sdd1   8:49   1   512M  0 part /boot
`-sdd2   8:50   1   6.9G  0 part
sr0     11:0    1  1024M  0 rom 
zram0  254:0    0  75.1M  0 disk [SWAP]
zram1  254:1    0  75.1M  0 disk [SWAP]
zram2  254:2    0  75.1M  0 disk [SWAP]
zram3  254:3    0  75.1M  0 disk [SWAP]
$ sudo blkdiscard -v /dev/sda
/dev/sda: Discarded 128035676160 bytes from the offset 0
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119.2G  0 disk
|-sda1   8:1    0   243M  0 part
|-sda2   8:2    0     1K  0 part
`-sda5   8:5    0   119G  0 part
sdc      8:32   1   7.4G  0 disk
|-sdc1   8:33   1   512M  0 part
`-sdc2   8:34   1   6.9G  0 part
sdd      8:48   1   7.4G  0 disk
|-sdd1   8:49   1   512M  0 part /boot
`-sdd2   8:50   1   6.9G  0 part
sr0     11:0    1  1024M  0 rom 
zram0  254:0    0  75.1M  0 disk [SWAP]
zram1  254:1    0  75.1M  0 disk [SWAP]
zram2  254:2    0  75.1M  0 disk [SWAP]
zram3  254:3    0  75.1M  0 disk [SWAP]
I checked smart too now:
$ sudo smartctl -t long /dev/sda
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.19.3-3-ARCH] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 1 minutes for test to complete.
Test will complete after Fri Apr 17 12:22:27 2015
Use smartctl -X to abort test.
$ sudo smartctl -H /dev/sda
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.19.3-3-ARCH] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
$ sudo smartctl -a /dev/sda
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.19.3-3-ARCH] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family:     JMicron based SSDs
Device Model:     KINGSTON SNV425S2128GB
Serial Number:    07WA50010371
Firmware Version: D100309a
User Capacity:    128,035,676,160 bytes [128 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Fri Apr 17 12:31:57 2015 CEST
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
General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (   30) seconds.
Offline data collection
capabilities:                    (0x1b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No 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:        (   1) minutes.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Unknown_Attribute       0x0007   100   100   050    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0013   100   100   050    Pre-fail  Always       -       0
  7 Unknown_Attribute       0x000b   100   100   050    Pre-fail  Always       -       0
  8 Unknown_Attribute       0x0005   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       12054
10 Unknown_Attribute       0x0013   100   100   050    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0012   100   100   000    Old_age   Always       -       5448
168 SATA_Phy_Error_Count    0x0012   100   100   000    Old_age   Always       -       0
175 Bad_Cluster_Table_Count 0x0003   100   100   010    Pre-fail  Always       -       29
192 Unexpect_Power_Loss_Ct  0x0012   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   052   100   020    Old_age   Always       -       52 (Min/Max 29/52)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
240 Unknown_Attribute       0x0013   100   100   050    Pre-fail  Always       -       0
170 Bad_Block_Count         0x0003   100   100   010    Pre-fail  Always       -       144 329 118
173 Erase_Count             0x0012   100   100   000    Old_age   Always       -       6399 10521 7887
SMART Error Log Version: 1
ATA Error Count: 153 (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 153 occurred at disk power-on lifetime: 11818 hours (492 days + 10 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 28 66 d3 eb  Error: UNC at LBA = 0x0bd36628 = 198403624
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  c8 00 08 28 66 d3 eb 08  36d+21:07:12.000  READ DMA
  ec 00 00 00 00 00 a0 08  36d+21:07:12.000  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 08  36d+21:07:12.000  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 a0 08  36d+21:07:12.000  IDENTIFY DEVICE
  c8 00 08 28 66 d3 eb 08  36d+21:07:12.000  READ DMA
Error 152 occurred at disk power-on lifetime: 11818 hours (492 days + 10 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 28 66 d3 eb  Error: UNC at LBA = 0x0bd36628 = 198403624
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  c8 00 08 28 66 d3 eb 08  36d+21:07:12.000  READ DMA
  c8 00 08 20 66 d3 eb 08  36d+21:07:12.000  READ DMA
  c8 00 08 18 66 d3 eb 08  36d+21:07:12.000  READ DMA
  c8 00 08 10 66 d3 eb 08  36d+21:07:12.000  READ DMA
  c8 00 08 08 66 d3 eb 08  36d+21:07:12.000  READ DMA
Error 151 occurred at disk power-on lifetime: 11818 hours (492 days + 10 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 00 66 d3 eb  Error: UNC at LBA = 0x0bd36600 = 198403584
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  c8 00 00 00 66 d3 eb 08  36d+21:07:12.000  READ DMA
  c8 00 00 00 65 d3 eb 08  36d+21:07:12.000  READ DMA
  c8 00 00 00 64 d3 eb 08  36d+21:07:12.000  READ DMA
  c8 00 00 00 63 d3 eb 08  36d+21:07:12.000  READ DMA
  c8 00 00 00 62 d3 eb 08  36d+21:07:12.000  READ DMA
Error 150 occurred at disk power-on lifetime: 6211 hours (258 days + 19 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 a8 f6 75 eb  Error: UNC at LBA = 0x0b75f6a8 = 192280232
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  c8 00 08 a8 f6 75 eb 08      04:55:01.600  READ DMA
  ec 00 00 00 00 00 a0 08      04:55:01.600  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 08      04:55:01.600  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 a0 08      04:55:01.600  IDENTIFY DEVICE
  c8 00 08 a8 f6 75 eb 08      04:55:01.500  READ DMA
Error 149 occurred at disk power-on lifetime: 6211 hours (258 days + 19 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 a8 f6 75 eb  Error: UNC at LBA = 0x0b75f6a8 = 192280232
  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  c8 00 08 a8 f6 75 eb 08      04:55:01.500  READ DMA
  c8 00 08 a0 f6 75 eb 08      04:55:01.500  READ DMA
  c8 00 08 98 f6 75 eb 08      04:55:01.500  READ DMA
  c8 00 08 90 f6 75 eb 08      04:55:01.500  READ DMA
  c8 00 08 88 f6 75 eb 08      04:55:01.500  READ DMA
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     12054         -
# 2  Extended offline    Completed without error       00%     11117         -
# 3  Short offline       Completed without error       00%     11116         -
# 4  Extended offline    Completed without error       00%     11100         -
# 5  Short offline       Completed without error       00%      6804         -
# 6  Short offline       Completed without error       00%      2818         -
# 7  Short offline       Completed without error       00%      2750         -
# 8  Short offline       Completed without error       00%      2744         -
# 9  Short offline       Aborted by host               00%      2521         -
#10  Short offline       Completed without error       00%      2448         -
#11  Short offline       Completed without error       00%      2290         -
#12  Short offline       Completed without error       00%      2120         -
#13  Short offline       Completed without error       00%      2021         -
#14  Short offline       Completed without error       00%      1936         -
#15  Short offline       Completed without error       00%      1859         -
#16  Short offline       Completed without error       00%      1823         -
#17  Short offline       Completed without error       00%      1727         -
#18  Short offline       Completed without error       00%      1687         -
#19  Short offline       Completed without error       00%      1580         -
#20  Short offline       Completed without error       00%      1292         -
#21  Short offline       Completed without error       00%      1245         -
Selective Self-tests/Logging not supported

Similar Messages

  • Problem with partition disk in 2010 MacBook Air

    Hello!
    I have a 2010 MacBook Air 11-inch and I can't do a partition disk with bootcamp. I have Windows 7 ISO and I have a bootable usb with this.Then, when I try to do partition with bootcamp , it said that I need a remote optical drive. I don't understand, because with my 2009 iMac I can do the partition with bootable usb since bootcamp. This problem is caused by bootcamp program is not well updated or simply, I can't do the partition without remote optical drive?
    Thanks for help!

    Exactly the same happened to me. Yesterday morning I opened the lid of my MBP8,1 (late 2011) on a meeting with a client and It just did not wake up :-/ After forced reboot it would never boot stuck on the same place.
    Now what is happening any HDD will be recognized and booted aswell 10/10 attempts but SSD will not boot eventhough I reinstalled it all. The SSD WILL boot in other MBP and is visible on other systems.
    The SSD WILL BOOT via USB.
    I do not believe the disk is the problem.
    My MB was replaced just few months ago. My SATA cable was replaced some time before the MB.
    Filip

  • I'm having problem with hard disk problem. I recently purchased HP pavilion G series notebook.

    There is error displaying that there is a problem with hard disk please back up your data and contact manfature. I purchased these recently in 2011 december in india. Please help me what to do.

    The error usually means what it says. Back up your data to a thumb drive or something before it crashes and call HP Support for a hard drive replacement.

  • Has anyone had a problem with fcp x not playing back a project since installing 10.0.9 update?

    Has anyone had a problem with fcp x not playing back a project since installing 10.0.9 update?

    Not here;  updated three systems without issues.
    Can you provide more details on your system specs, the projects you're referring to, and what kind of behavior you're encountering?
    Russ

  • Problems with partition tables

    Hi all,
    I've got some problems with partition tables. The script at the bottom run but when I wanna insert some values it returns me an error
    (ORA-06550: line 1, column 30: PL/SQL: ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored)
    and I can't understand why!
    There's something incorrect in the script or not?
    Please help me
    Thanks in advance
    Steve
    CREATE TABLE TW_E_CUSTOMER_UNIFIED
    ID_CUSTOMER_UNIFIED VARCHAR2 (27) NOT NULL ,
    START_VALIDITY_DATE DATE NOT NULL ,
    END_VALIDITY_DATE DATE ,
    CUSTOMER_STATUS VARCHAR2 (255)
    PARTITION BY RANGE (START_VALIDITY_DATE)
    SUBPARTITION BY LIST (END_VALIDITY_DATE)
    PARTITION M200909 VALUES LESS THAN (TO_DATE('20091001','YYYYMMDD'))
    (SUBPARTITION M200909_N VALUES (NULL), SUBPARTITION M200909_NN VALUES (DEFAULT)),
    PARTITION M200910 VALUES LESS THAN (TO_DATE('20091101','YYYYMMDD'))
    (SUBPARTITION M200910_N VALUES (NULL), SUBPARTITION M200910_NN VALUES (DEFAULT)),
    PARTITION M200911 VALUES LESS THAN (TO_DATE('20091201','YYYYMMDD'))
    (SUBPARTITION M200911_N VALUES (NULL), SUBPARTITION M200911_NN VALUES (DEFAULT)),
    PARTITION M200912 VALUES LESS THAN (TO_DATE('20100101','YYYYMMDD'))
    (SUBPARTITION M200912_N VALUES (NULL), SUBPARTITION M200912_NN VALUES (DEFAULT)),
    PARTITION M201001 VALUES LESS THAN (TO_DATE('20100201','YYYYMMDD'))
    (SUBPARTITION M201001_N VALUES (NULL), SUBPARTITION M201001_NN VALUES (DEFAULT)),
    PARTITION M201002 VALUES LESS THAN (TO_DATE('20100301','YYYYMMDD'))
    (SUBPARTITION M201002_N VALUES (NULL), SUBPARTITION M201002_NN VALUES (DEFAULT)),
    PARTITION M210001 VALUES LESS THAN (MAXVALUE))
    (SUBPARTITION M210001_N VALUES (NULL), SUBPARTITION M210001_NN VALUES (DEFAULT))
    ;

    Hi Hoek,
    the DB version is 10.2 (italian version, then SET is correct).
    ...there's something strange: now I can INSERT rows but I can't update them!
    I'm using this command string:
    UPDATE TW_E_CUSTOMER_UNIFIED SET END_VALIDITY_DATE = TO_DATE('09-SET-09', 'DD-MON-RR') WHERE
    id_customer_unified = '123' and start_validity_date = TO_DATE('09-SET-09', 'DD-MON-RR');
    And this is the error:
    Error SQL: ORA-14402: updating partition key column would cause a partition change
    14402. 00000 - "updating partition key column would cause a partition change"
    *Cause:    An UPDATE statement attempted to change the value of a partition
    key column causing migration of the row to another partition
    *Action:   Do not attempt to update a partition key column or make sure that
    the new partition key is within the range containing the old
    partition key.
    I think that is impossible to use a PARTITION/SUBPARTITION like that: in fact the update of "END_VALIDITY_DATE" cause a partition change.
    Do u agree or it's possible an update on a field that implies a partition change?
    Regards Steve

  • Problem With Target Disk Mode

    Folowing upgrade of my Mini and Powerbook to Tiger I have a problem with target Disk Mode when I attempt to eject the transfer to disk following transfer of my user file. I get an error message to the effect that files are in use and the disk can not be ejected. I try force quit (finder only is running) usually to no effect. Sometimes attempting to verify disk permissions in disk utility will clear the problem and allow me to eject the disk. One time it took close to an hour attempting to eject the disk. Is there another way?
    PB   Mac OS X (10.4.3)  

    I had this problem with external volumes like ZIP discs and also external hard drives. Sometimes it was an app used on one of the external files still being open (eg. Word for a text file) which had to be quitted first. The "trackpad" button equals the mouse button which is on the PowerBook. Repairing the target disk via disk utility might also help.

  • When login, i see a error message saying " there is a eminent problem with hard disk " smart check

    G72-250US Notebook , Win 7 64 Home Premium, 
    Error :
    When  i login  " There is a eminent problem with Hard disk, SMART check faled" ,Prmary hard disk self test failed .
    Please help me with ths problem

    Hi,
    If this message is coming up in a black screen.
    Then the harddrive in the system is about to go bad or already bad.
    If you are able to boot to windows, FIRST BACKUP DATA.
    Also run a startup test by tapping F2 as soon as you power on the system.
    The smart test is a BIOS feature in most of the computer which is designed to keep cust informed if the HDD is about to go bad. But their are instances where the SMART will only let you know that the HDD is bad only when the HDD has bad.
    More Info: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01443317&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    Although I am an HP employee, I am speaking for myself and not for HP.

  • Does anybody know if Windows 8 is causing a problem with iTunes?   Many songs on my old iPod are now missing in my iTunes library and I can't find them anywhere.  Also, I have a new iPod and am afraid of using it for fear of something else going wrong.

    Does anybody know if Windows 8 is causing a problem with iTunes?  Many songs on my old iPod are now missing in my iTunes library and I can't find them anywhere.  .  Also, I have a new iPod and am afraid of using it for fear of something else going wrong.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • Problem with field  KONWA-Rate Unit(Currency or Percentage) of table KONP

    Hi Gurus,
    I m facing problem with field 'KONWA -Rate Unit (Currency or Percentage)' of table KONP. This field is showing ‘Currency’ and '%' both in table KONP. For some materials its showing currency value and for some its showing '%'. Due to which its creating load problems. My question is how this '%' is coming (means is there any calculation behind that or something else) in table KONP and how can I identify this.
    I am sure u will have the answer for this question so Thanks in advance.
    Message was edited by:
            Amit Rajput
    Message was edited by:
            Amit Rajput
    null

    Hi,
    take the following example: you sell liquor to customers; in your country, when you sell liquor your company is entitled to pay customs and excise fees to governamental authorities.
    These excises and duties are a percentage of the retail price. You'll then create such a condition record with this rate so that you calculation schema will post the correct value during the processing of billing documents...
    hope this shed light
    Olivier.
    Message was edited by:
            Olivier Cora

  • What is the problem with native dynamic sql when counting rows in all table

    what is the problem with native dynamic sql when counting rows in all table?Giving an error "table or view does not exist". Thanks.
    DECLARE
    v_sql_string varchar2(1000);
    v_no_of_rows number;
    BEGIN
    for i in ( select table_name from all_tables )
    loop
    v_sql_string := ' select count(1) from ' || i.table_name;
    dbms_output.put_line( v_sql_string );
    --execute immediate v_sql_string into v_no_of_rows;
    end loop;
    END;

    Usually your problem can be described with 'Who cares'. I mean, for what reason do you do this? I doubt that there's a business need to get 100 % accurate answers for this. Normally such things are used to get a picture about the growth of data.
    Personally I would prefer to have up-to-date statistics for all tables and just query the number of rows from there. Sufficient for me in < 99 % of all cases.
    Just my $ .02...

  • Odd problem with partitioning the disk-- it says it needs to be a single Mac OS Extended (Journaled) volume, but it already is? (Screenshots in post)

    I have a 1 TB Macbook Pro running Mavericks.
    My disk is a single-volume...
    Here is the information on my disk:
    And I'm trying to use boot camp assist to partition my disk, like this:
    But when I do, I get this error message:
    "The disk cannot be partitioned because some files cannot be moved. Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. Restore your information to the disk and try using Boot Camp Assistant again."
    It already is a single Mac OS Extended journaled volume.  Right? Here is an image from Disk Utility:
    Any ideas?

    Hey there!
    It sounds like you are unable to install BootCamp due to an error that your some files cannot be moved, and to format your disk as a single volume, but you have confirmed that it already is. I would verify and repair your disk permissions with the following article next, if you have already restarted your computer and tried again:
    Disk Utility 12.x: Repair disk permissions
    http://support.apple.com/kb/ph5821
    Choose Apple menu > Software Update to make sure you have the latest version of Mac OS X.Software updates sometimes change a file’s permissions to improve security, so updating your software can solve some permissions problems.
    Open Disk Utility, in the Utilities folder in Launchpad.
    Select the disk you want to check.You can verify or repair permissions only on a disk with Mac OS X v10.7 Lion installed.
    Click First Aid.
    Do one of the following:
    Click Verify Disk Permissions to test permissions.
    Click Repair Disk Permissions to test and repair permissions.
    Disk Utility repairs the permissions for files installed by the Mac OS X Installer, Software Update, or an Apple software installer. It doesn’t repair permissions for your documents, your home folder, or third-party applications.
    If that does not resolve the issue, I would next verify and repair the disk with this:
    Disk Utility 12.x: Repair a disk
    http://support.apple.com/kb/PH5836
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Problem With Low Disk Space - Message - Email and ...

    Hi all,
    I have a N97 and i noticed that when i have around 200 stored messages in my sent and my received in box then i get the e-mail disconnecting and saying to me that it's been disconnected due to low disk space.
    So i tried changing the location of the folders for the e-mails and then i got a warning about the folders not being correct and had to restore them to the original settings.
    I'm sure this is also related but some one tried to send me a small video via blue tooth and it told me that the memory was full but for the life of me i can't seem to change where a blue tooth message would go too.
    Thanks in advance for any tips.
    i know i may have 2 separate issues here but it's all the same low disk space or out of disk space etc etc
    it would seem that it's a problem so how can i go about fixng it, it's poor...
    The first offering is Nokia's new 'Messaging' client. If you really, really have been looking forward to this then by all means install it, but beware that it will, between application and messagebase, use up a lot of disk C: on its own. And you can't switch the messagebase to 'mass memory', because that gets locked out when you connect your N97 up to your PC or Mac, switching Nokia Messaging back to C:. As a long time Gmail user, I still find it easier to use either the 'old' S60 Messaging application (in IMAP4 mode) or just use the standalone Gmail (Java-based) application, which has the benefit of speed and of an utterly minimal footprint in daily use.
    Also offered via 'Sw update' is Ovi Maps 3.1, which also insists on ensconcing itself on C:. If version 2.0 is working well for you then there really isn't a compelling reason to update, to be honest. Or at least not one that's compelling enough to warrant signing over at least 7MB of C: to it. If version 2 isn't working for you, you still shouldn't install v3.1, as offered, but go for the very latest v3.3, from the Nokia Beta Labs Maps page. It's faster and slicker and at least you'll be getting extra functionality for your lost Megabytes, including less troublesome GPS performance. See below for more on the GPS.
    Next is Ovi Contacts, a beta-quality social integration system that's yet to take off in any meaningful way. Again, just avoided unless you really, really want to get involved. You don't need to lose the vital Megabytes.
    Then there's the N-Gage games client, another C: biggie, seemingly swallowing up 6MB or so in a real world installation - if, like me, you're rather underwhelmed by N-Gage titles (in fact, underwhelmed by gaming on Symbian in general, but that's another rant for another day), then just say no and, again, give your internal disk a break.
    The final optional 'Sw update' was Quickoffice 6, bringing compatibility with Office 2007 documents. This also takes up the best part of 10MB on C:, so unless you get a lot of Docx or Xlsx files by email then I'd strongly suggest holding fire on this update - you'll probably get it anyway in the v20 firmware in a few months time.
    Message Edited by mowax on 02-Dec-2009 02:38 PM
    Message Edited by mowax on 02-Dec-2009 02:39 PM
    Solved!
    Go to Solution.

    Hi, don't know wether you've done this, but go into messaging/options/settings/other/memory in use/set as E:mass memory. If this causes a problem with email, simply delete mailbox and re-install it, it only takes a couple of minutes. One other thing , if you want to save any txt messages, sync with ovi first.Also to get C memory back delete all messages sent , recieved, reports etc before selecting Memory in use as E. Also go to web browser and clear privacy data regularly. One other thing to note is that usually when connected to computer via usb, messaging memory will revert to C, and you won't be able to see any messages , so reset to E again and they are all there. Best taskmanager from Ovi store is also a real help with memory on phone.
    Hope this helps, and my appologies for the somewhat eratic layout nof the advice. Should have mentioned clearing messages from C before using E !
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Problem with partition

    Hello,
    I bought my MBP s/h and it had Bootcamp/XP installed on the partition (size 13Gb). I had big problems with XP and decided to reinstall, but as I had no orig XP disc, I had to use a frien's XP Home version. I didn't delete the orig XP first, just installed the XP Home editon. I now have two problems -
    1) I'm v. short of space on that partition.
    Looking at that volume I can see programs relating to the previous owner e.g. BJ Printer folder etc.
    2) When I shut down the XP Home and try and Restart, it just hangs...
    Please suggest a plan of action...Thanks.

    Zydas:
    Is your friend's XP Home Edition installation CD a SP2 version? XPSP2 on a single disk? This is a must to be able to install it on a boot camp partition. Furthermore, it cannot be an upgrade version. It has to be a full version. Not sure what you meant by stating that you did not delete the original XP first. Please clarify.
    Given the information that you have provided, my recommendation is that you run boot camp again and delete the boot camp/windows partition completely and combine it into one with the osx partition. Boot Camp will allow you to do this.
    Run Boot Camp again (After thoroughly reading the instructions) and allow it to repartition the drive to the size(s) that you desire. Once that is done then you will need a FULL Version of XPSP2 (on a single disk) or any FULL version of Vista to install on the newly created boot camp partition.
    Axel F.

  • Cannot format my iMac. Problem with partition's file

    I cannot format my iMac because Disk Utility sends an error: The partition map needs to be repaired because there's a problem with the EFI system partition's file system. Any suggestions?

    The problem began when the Time machine excluded my home folder of the backup.  I could not include it again in the process (not in system preferences, nor anything else), so I decided to format the HD and make a fresh install of OSX Mavericks.  I could not do this because Disk Utility cannot unmount the partition when formatting the HD, and the error arose.  I simply cannot fix this, and before giving up and take it to a Mac repair shop, I would like to try by myself.

  • Problem with mounting disk images

    I have recently downloaded a media player and have had some problems. When I download the file to my desktop and try to run it, it gives me a "warning" window. In the window, it says that "the following disk images failed to mount" and gives "device not configured" as the reason. The file on the desktop's path is .dmg just to be more clear. So...yeah...any advice??
    Jay

    Just to make sure (I don't think this is your problem, but it's easy to check), make sure /System/ Library/ CoreServices/ DiskImageMounter.app is present on your Mac.
    Do you have another user account on your Mac? If necessary, use System Preferences> Accounts to create a new troubleshooting-only administrative user account. Check if that new user account can open .dmg files. If it does, that indicates a problem with the preferences in your normal user account. Use Preferential Treatment to scan your prefs. You can also drag the ~/Users/ [yourusername]/ Library/ Preferences folder tot he desktop, log out and back in, and see if .dmg images work, then move your prefes back from teh Preferences folder on the Desktop to the one in ~/Users/ [yourusername]/ Library. Or you might just try moving these prefs to the Desktop:
    /Users / [yourusername]/ Library/ Preferences/ com.apple.frameworks.diskimages.uiagent.plist
    and com.apple.LaunchServices.plist
    If the troubleshooting user account also shows the problem, first run Disk Utility/ Repair Permissions. If that doesn't fix the problem, try running the OS X Update Combo 10.4.7 (Intel) (using Disk Utility to expand that .dmg file after downloading).

Maybe you are looking for

  • One cloud many apple ids or one apple id many clouds?

    having had an apple id since the iphone first rolled out & i signed up for mobile me i've always loved the way everything works minus a few human errors which led to unitentional deleting of some content while merging. as time has passed and my child

  • Wrong excise duty

    Hi, We had completed the utilization for previous month and on first day of next month we found that duties were captured wrong Now we have cancel the Excise duties which were captured wrong but when we are canceling it  is hitting PLA account rather

  • 21406 events getting generated on all our production servers

    Hi, We are getting below events on almost all our production servers (Exchange, Lync,etc.). Does anyone have any idea about this event. Log Name: Operations Manager Source: Health Service Modules Date: 2/10/2014 10:36:09 AM Event ID: 21406 Task Categ

  • Convert SDO_GEOMETRY to JGeometry -- Problem

    Hi, I try to convert a SDO_GEOMETRY to JGeometry object in my Oracle CEP Applications but i have errors. I try to do this :                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());                Connection aConnection = Dr

  • I can't seem to be able to extract files while running firefox

    i just downloaded one but can't run. keep getting error message saying cannot extract files for files are corrupt