How to get available disk space for a disk in the system ?

hi all,
I need to figure out the available disk space for a particular disk before I can write my file to a directory in the disk. I do this to avoid unsufficient disk space problem in my program. May I know how can I do this in Java ? I look at the API function for java.io.File class but there isn't any function to check disk space. I would appreciate any help from fellow Java developers. Thanks a million.
regards,
tuck meng

You cannot do this in purely platform independent way.
You can use System.exec to run native OS utilities like df and parse the output, but then you have to knwo which platform your program is running on, or build in some automatic detection of OS and have corresponding native calls for each likely one.
BTW. even if you get a number of free bytes on disk that's larger than the size of the file you want to write this is no guarantee that there will be enough diskspace for your file, because another process might write to the disk in the meantime. So you will have to do proper error handling and recover gracefully from the disk full sitution no matter what.

Similar Messages

  • Insufficient disk space for encoding. disk space on encoding target drive?

    I keep having this message when I try to burn\enconde\build a DVD with DVDSP 4, I'm setting the Build folder in a external hard drive with 300Gigas free, so for sure is not the porblem...
    Insufficient disk space for encoding. Please free up disk space on your encoding target drive
    What should I do?? its kind of urgent!
    Cheers,
    Javier

    Ah Ha!
    I found this in a 2-pop forum - it may be the solution...
    "Are you both using the DVDSP Background encoder? If so, make sure the *DESTINATIONS PREFERENCE for ENCODING is pointing to the disk drive that actually HAS the free space* - normally, it points to the SAME FOLDER where the asset is living. If you're short on space on that drive, that will trigger the condition you describe... - always maintain this free space "

  • How to get multiple output formats for each execution of the report?

    Hi,
    Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?
    Thanks

    In Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
    The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
    To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
    To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
    Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations.

  • How to change disk space for encoding assets to external disk drive

    My laptop has only 1G left and I can't seem to burn a video with iDVD 6. An error message says: "Not enough free disk space for encoding the remaining assets."
    How can I use my external hard drive, where my project is being stored, instead for encoding the remaining assets?

    1GB left? Wow - I'm surprised you aren't having trouble with the OS!
    Normally, OS-X likes at least 10% of your hard drive kept free for OS use.
    You REALLY need to fee up hard disk space before you have major problems.
    As for: > How can I use my external hard drive, where my project is being stored, instead for encoding the remaining assets?
    As far as I know, you can't.
    F Shippey

  • There is no more space for virtual disk ServerName_2.vmdk. You might be able to continue this session by freeing disk space on the relevant volume, and clicking Retry. Click Cancel to terminate this session.   Time: 30/05/2014 1:16:20 AM

    Recently, our mail server crashed at about 7pm one night, with the error 'There is no more space for virtual disk ServerName_2.vmdk. You might be able to continue this session by freeing disk space on the relevant volume, and clicking Retry. Click Cancel to terminate this session.'
    When we click Retry, the server starts up OK.
    There are no snapshots listed in Snapshot manager for any of the virtual machines on the host.
    There is also free disk space available on the host and for the VM with the disk errors.
    This happened at least three more times, often at bad times. Each time, we were able to click 'Retry' and the disk/system would allow the VM to start-up successfully.
    I checked the Forums, the VMware support articles and the internet as I had not seen this problem before. I have completed the VSphere 5.1 - Fast Track course and this issue was NOT covered in the training.
    Most of the advice on-line and even that on the VMware web-site was pointing to snapshots being the cause of this issue. There are no snapshots enabled and I cannot see evidence of snapshots ever being used.
    - We are running VMware vsphere (5.1.0) and there are (were) 4 virtual machines running on the ESX host. We are using the free version of VMware/ESXi.
    - The Hard disk types we are using for this Virtual Machine are 'Thin Provisioned'.
    - There are 4 [Thin Provisioned] Hard Disks for this virtual machine.
    - There are 6 CPUs
    - There is 20GB of RAM (memory)
    - The VM is running Windows Server 2008 R2 as the guest/VM operating system. It is an Exchange 2010 SP1 mail server. There is plenty of available disk space on all the drives. The [Exchange] log files are cleaned out regularly (automated).
    I decided to move one of our non-critical servers off this host and on to another host to see if this helped the problem. This took quite some time, as we are not using HA or vmotion, nor do we have VCenter Server...nonetheless, I finally managed to get the non-critical server on to another host (n.b. This was a much smaller machine with less virtual resources assigned to it).
    After moving the non-critical server off this host, we decided to monitor the Host and see if the issue resolved itself.
    I checked the host about 6-10 times a day, from first thing in the morning till last thing at night - monitoring the performance of not only the Virtual Machine, but the ESXi host also.
    There were no adverse performance issues. The only thing I did note, was in the Summary page on the ESX Host, under Storage, was If I right-clicked on the datastore and clicked refresh, then the free disk space would drop (ie from 140GB to 125GB).
    After monitoring the host and VM for about 2 weeks, we did NOT have another instance of the above error.
    Sorry for the long winded post, but I wanted to give as much detail given this error has been raised before and snapshots are usually blamed as the cause.
    My question is this:
    If the ESX host had plenty of available disk capacity and there were no snapshots enabled on the VM (or any other VM's on the same host), then why did our Virtual machine crash with the error that 'there is not more space for virtual disk Servername_2.vmdk'?
    How do we prevent this issue from happening if we don't know the underlying cause?
    I would greatly appreciate any advice or suggestions.
    If I have not provided enough info on the specs or environment, please let me know and I will provide more information.
    Thanks all,
    Kurt

    The type of storage is really based on your requirements, and your ability to withstand downtime.
    iSCSI as you are using with a NAS such as Synology or QNAP.  NAS Selector - Support - Synology - Network Attached Storage (NAS)
    I wouldn't use iSCSI for Exchange or any database.  It's a bit slow.
    Do you have a single physical host?  Then I'd probably to an external direct attached storage.  This would be a card inserted in your host server that gives you multilane SAS/SATA connectivity (www.techcable.com/SAS-SATA/SAS-SATA.pps) and an external disk enclosure/array.
    For multiple hosts to a single array, I recommend a fibre channel connection to a FC capable switch, and on to a FC connected array.
    We used to use a HP P2000 (on old G1), but it's since been retired.  Worked pretty well once firmware was upgraded.  http://www8.hp.com/us/en/products/disk-storage/product-detail.html?oid=4118559#!tab=features.  They can be connected via iSCSI, Fibre Channel or 6GB SAS so they are flexible and reasonably priced.
    Recommendations:
         Use RAID 6 with your large disk arrays.  With large disks there is a measurable failure rate when rebuilding a failed RAID5 array based on MTBF.
         Use smaller 15K disks in RAID 0+1 for speed on databases/Exchange.
         Use slower 7.2K disks in RAID6 for file storage.
    We are a small hospital and we have 3 VMware servers with dual CNA (FC and Ethernet in a single twinax cable) connections to 2 redundant Cisco Nexus 5K switches and then 4 Fibre Channel connections to an EMC VNX 5300.  It's extremely fast with about 50 virtual servers, but was quite an investment.  One thing we don't have to worry about is down time.  If there ever is an equipment failure, we have redundant everything, including power split between two UPSs.
    Our VNX has 3 tiers of performance.  3 100GB SSD "Fast Cache" in RAID 1 with hot spare, to keep the most used data ready, but it's not really a tier, however one could be built utilizing the same disks.  A second tier is performance tier with a 8 600GB RAID 0+1 and hot spare.  The third is a bunch of 7.2K 3TB disks in RAID6.  The VNX autotiers, placing data on disks depending on where it's needed.  The volumes are sliced and diced automatically in the background to make this happen and we never have to touch it.  I used a demo of Solarwinds Storage Manager to monitor performance for a while and the utilization was always low, meaning all data access was fast, througout the day.
    D

  • DATA TRANSFER - How to get a SINGLE SPACE in downloaded txt file from UNIX?

    Hi Experts,
    Am sending data from SAP to UNIX/ Application server and text file on desk top as well.
    So, I am keeping a single character just SPACE at the END of each record.
    Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.
    Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.
    But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!
    Am doing every thing same in both cases.
    So,
    1 - Why its happening in case of UNIX file?
    2 - How to get a SINGLE SPACE  at the END in the downloaded file from UNIX?
    thanq

    Its there, I am talking abut this -
    OPEN DATASET - linefeed
    Syntax
    ... WITH { NATIVE
             | SMART
             | UNIX
             | WINDOWS } LINEFEED ... .
    Alternatives:
    1. ... WITH NATIVE LINEFEED
    2. ... WITH SMART LINEFEED
    3. ... WITH UNIX LINEFEED
    4. ... WITH WINDOWS LINEFEED
    Effect
    : These additions determine which line end marker is used for text files or legacy text files. If these additions are used, the profile parameter abap/NTfmode is ignored. Simultaneous specification of the values "UNIX" or "NT" in the addition TYPE is not permitted.
    If these additions are not used, the line end marker is determined as follows, depending on the operating system of the current application server:
    The line end marker for Unix is "LF". Under Unix, OS390 and OS400, only "LF" is used for reading and writing.
    The line end marker for MS Windows is "CRLF". Under MS Windows, however, the values of the profile parameter abap/NTfmode can also be used to set whether new files are handled according to Unix conventions or Windows conventions. If the profile parameter has the value "b", the Unix line end marker "LF" is used. If the profile parameter has the value "t" or is initial, the Windows line end marker "CRLF" is used. The setting using the profile parameter can be overridden with the addition TYPE and the value "UNIX" or "NT". If an existing file is opened without the addition TYPE, this is searched for the first line end marker ("LF" or "CRLF"), and this is used for the whole file. If no line end marker is found, the profile parameter is used. This applies particularly if an existing file is completely overwritten with FOR OUTPUT.
    If an addition WITH NATIVE|SMART|UNIX|WINDOWS LINEFEED is used, this setting can be changed for the open file using the statement SET DATASET. If neither of the additions is used, the line end marker also cannot be changed using SET DATASET.
    Notes
    : Without the use of an addition WITH LINEFEED, the line end marker is dependent on diverse implicit factors such as the operating system of the application server, a profile parameter, and line end markings that are already used. For this reason, the explicit use of WITH LINEFEED is recommended, which renders the use of the addition TYPE for setting the line end marker obsolete.
    The line end marker that is currently used can be determined for every open file using GET DATASET.
    Alternative 1
    ... WITH NATIVE LINEFEED
    Effect
    : This addition defines the line end marker independently of the access type according to the operating system of the application server, i.e. "LF" for Unix OS390 or OS400, and "CRLF" for MS Windows.
    The line end marker is interpreted according to the current codepage. If a code page is explicitly specified using the addition CODE PAGE, the characters of the line end marker must exist be available or be written in accordance with this code page.
    Note
    : The addition WITH NATIVE LINEFEED is intended for editing files on an application server that can also be accessed by other means. The addition receives the appropriate line end marker without the program needing to know the operating system.
    Alternative 2
    ... WITH SMART LINEFEED
    Effect
    : This addition depends on the access type:
    In files that are opened for reading using FOR INPUT, both "LF" and "CRLF are interpreted as a line end marker. When opening an EBCDIC file with the addition CODEPAGE, in addition to "LF", "CRLF", and the EBCDIC character strings, the corresponding ASCII character strings are also recognized. In addition, the EBCDIC character "NL" (line separator) is also interpreted as a line end marker.
    In files opened for appending or changing with FOR APPENDING or FOR UPDATE, the program searches for a line end marker that is already used in the file. In this process, first the end of the file is identified. If no line end marker is found there, a certain number of characters at the beginning is analyzed. If a line end marker is found, this is used when writing to the file. This is also affected by the addition CODE PAGE. For example, ASCII line end markers are recognized and used in a file opened with EBCDIC, but not the other way round. If no line end marker is found or no search is possible (for example, if the file is opened with the addition FILTER), the line end marker is determined according to the operating system of the application server, as with the addition WITH NATIVE LINEFEED.
    In files opened for writing using FOR OUTPUT, the line end marker is determined according the operating system of the application server, as with the addition WITH NATIVE LINEFEED.
    Note
    : The addition WITH SMART LINEFEED is intended for the generic editing of files in heterogeneous environments. The line end marker is recognized and set for different formats. The use of this addition is the best solution for most application cases.
    Alternative 3
    ... WITH UNIX LINEFEED
    Effect
    : The line end marker is set to "LF" regardless of the access type and operating system of the application server.
    The line end marker is interpreted according to the current code page. If a code page is specified explicitly using the addition CODE PAGE, the characters of the line end marker must be available or be written according to this code page.
    Note
    : The addition WITH UNIX LINEFEED is intended for editing Unix files in which the specific line end markers are to be retained, even if the operating system of the current application server is MS Windows.
    Alternative 4
    ... WITH WINDOWS LINEFEED
    Effect
    : The line end marker is set to "CRLF" regardless of the access type and operating system of the application server.
    The line end marker is interpreted according to the current code page. If a code page is specified explicitly using the addition CODE PAGE, the characters of the line end marker must be available and be written according to this code page.
    Note
    : The addition WITH WINDOWS LINEFEED is intended for use with MS Windows files in which the specific line end marker is to be retained, even if the operating system of the current application server is Unix, OS390 or OS400.

  • DPM is out of disk space for the replica

    Trying to make a bare metal backup of a phyiscal server running 2008 R2 SP1 . I've checked im not out of space. I've uninstalled and reinstalled the agent, I've manually tried to make the disk allocation larger same error.
     DPM is out of disk space for the replica. (ID 58 Details: Internal error code: 0x809909FF)
    This is in the event log on the Client machine
    The backup operation attempted  has failed to start, error code '2155348040' (There is not enough free space on the backup storage location to back up the data.). Please review the event details for a solution, and then rerun the backup operation once
    the issue is resolved.
    I have several other machines doing bare metal backups they are virtual but I can't see why that would be any different. They have no problems doing this. I have seen hacks on the internet editing xml files to get this to work changing allcritical to "C:".
    I'd like an actual fix for this please?

    Mike quick question. How can I determine which share my particular server is using to backup to? Here is what I get when I try to do a DIR on the folder as system
    C:\Windows\system32>whoami
    nt authority\system
    C:\Windows\system32>dir
    \\kdnap-util1\0ae3c77eaab54ea09b0724737a125f48
    Access is denied.
    C:\Windows\system32>dir
    \\kdnap-util1\12068c1992634c92addf44bfbee5cada
    Access is denied.
    I was just trying to poke around to browse the folder to see which one to back it up to . But with the access denied error this isn't helpful :)
    Here is my list of shares
    C:\Windows\system32>net view \\kdnap-util1
    Shared resources at \\kdnap-util1
    I also tried doing a DIR from a server that is backing up correctly on any of those shares listed above after running psexec and I get access denied from them as well so I guess thats normal
    Share
    name                        Type  Used as  Comment
    0ae3c77eaab54ea09b0724737a125f48  Disk           0ae3c77eaab54ea09b0724737a125f4
    8
    12068c1992634c92addf44bfbee5cada  Disk           12068c1992634c92addf44bfbee5cad
    a
    32d87ea3f0ea4570bd1ae215c818686d  Disk           32d87ea3f0ea4570bd1ae215c818686
    d
    3429bef9926347babbf20bbb258fdec0  Disk           3429bef9926347babbf20bbb258fdec
    0
    5c9c98bbc69c4f0ab75df48e89f52fc3  Disk           5c9c98bbc69c4f0ab75df48e89f52fc
    3
    600460aa29bb4f198d0d0fb6b1636068  Disk           600460aa29bb4f198d0d0fb6b163606
    8
    62abc840b38444abaa9d8dc9bd43b852  Disk           62abc840b38444abaa9d8dc9bd43b85
    2
    6833cf7dec3e4f19a3bf7961d53c5ced  Disk           6833cf7dec3e4f19a3bf7961d53c5ce
    d
    68437b942573463b9437a15056bccf7c  Disk           68437b942573463b9437a15056bccf7
    c
    805320dcb886401fa3dc6a8213b3deec  Disk           805320dcb886401fa3dc6a8213b3dee
    c
    8404f7468dea47ce9e92a99536ebe13d  Disk           8404f7468dea47ce9e92a99536ebe13
    d
    8bcbc4deae44458da77fbe59661f60fb  Disk           8bcbc4deae44458da77fbe59661f60f
    b
    9bc5182a9d6b43478b7c09062ee1c9b0  Disk           9bc5182a9d6b43478b7c09062ee1c9b
    0
    b588fc67397e4a5a81a15bb5b52dbe31  Disk           b588fc67397e4a5a81a15bb5b52dbe3
    1
    Backups                           Disk
    bf941a02f6e847a095b03d01963b8df1  Disk           bf941a02f6e847a095b03d01963b8df
    1
    bfc06209ce514b939098a9fd701e05d7  Disk           bfc06209ce514b939098a9fd701e05d
    7
    BLAZELG                           Disk
    d35de342510248a0a34dac84ecd55d08  Disk           d35de342510248a0a34dac84ecd55d0
    8
    df1658496f364923b25f615625254195  Disk           df1658496f364923b25f61562525419
    5
    dfc6d6061f314fabbed0fb144c18df7c  Disk           dfc6d6061f314fabbed0fb144c18df7
    c
    e8fcdd5155c940bb8ecddd0e7a99be7b  Disk           e8fcdd5155c940bb8ecddd0e7a99be7
    b
    ee23ec6bc709410a9cfce4759c935f8f  Disk           ee23ec6bc709410a9cfce4759c935f8
    f
    f0f1272aeab7417d82a6473b3f8b3a91  Disk           f0f1272aeab7417d82a6473b3f8b3a9
    1
    library.old                       Disk
    The command completed successfully.
    OK figured out which share it is by viewing the sharename in the shared folders snap-in (mmc) it listed my server name which access on the share. its "600460aa29bb4f198d0d0fb6b1636068"

  • Increase  Free disk space for "rac1:/tmp"

    Hello All,
    I am trying to install Oracle 11gR2 RAC on Linux 5.5 32 bit.
    when i run to check the prerequisite steps i am getting the below error:
    Check: Free disk space for "rac2:/tmp"
      Path              Node Name     Mount point   Available     Required      Comment    
      /tmp              rac2          /             486MB         1GB           failed     
    Result: Free disk space check failed for "rac2:/tmp"
    Check: Free disk space for "rac1:/tmp"
      Path              Node Name     Mount point   Available     Required      Comment    
      /tmp              rac1          /             470.89MB      1GB           failed please can you help to increase the /tmp to 1 GB.
    Regards,

    NB wrote:
    Hello All,
    I am trying to install Oracle 11gR2 RAC on Linux 5.5 32 bit.
    when i run to check the prerequisite steps i am getting the below error:
    Check: Free disk space for "rac2:/tmp"
    Path              Node Name     Mount point   Available     Required      Comment    
    /tmp              rac2          /             486MB         1GB           failed     
    Result: Free disk space check failed for "rac2:/tmp"
    Check: Free disk space for "rac1:/tmp"
    Path              Node Name     Mount point   Available     Required      Comment    
    /tmp              rac1          /             470.89MB      1GB           failed please can you help to increase the /tmp to 1 GB.
    Regards,Set different directory for TMP and TMPDIR environment variables:
    TMP=/tmp_directory; export TMP
    TMPDIR=$TMP; export TMPDIR

  • Insufficient disk space for encoding?

    Hello, when I burn my DVD in DVDSP I get this message:
    "Insufficient disk space for encoding. Please free up disk space on your encoding target drive. Build cancelled"
    I couldn't find anything in the documentation about this. I have 26 GB on my hard drive, which is set in the Encoding dropdown of the Destinations preference tab.
    My project is showing 3.0 GB as the size.
    Any idea what's going on?
    thanks
    Scott

    Michael Trauffer wrote:
    How big is your source file?
    Not large, less than 3 gigs. It turns out the problem was the disk where the quicktime movie lived was short on disk space. I would think the encoding would happen on the drive specified in the Encoding preferences, but DVDSP must think otherwise. Anyway problem solved.
    Personally, I prefer to use Compressor to encode my video and audio to m2v and ac3 before going into DVDSP.
    Yes, me too, but I had some old QT movies I needed to get onto a DVD and it was easier just to drag and drop than recompress.
    Thanks for the response.
    Scott

  • Not Enough Disk Space for Rendering

    I am trying to edit a QuickTime file that I exported out of iPhoto, which contains about one hour of a slide show. The QuickTime file is only 741 MB. All I wanted to do is add music and titles using FCP. So I created a new project, imported the QuickTime file into FCP and inserted the entire one hour clip to sequence. When I rendered the sequence, FCP not only indicated it would take 4 hours to render but also said there is no enough disk space available to complete the rendering. I have about 60GB space left in my hard drive. How could the 741MB file take up more than 60GB of disk space for rendering? I haven't even put any video effects or music on the sequence yet. Can anyone tell me what's going on? Can I simply edit the 741MB file without changing the file size?

    Why not add the music and titles in iPhoto? The music is easy(just set up an iTunes playlist) If you need title slides just create them in an image editor(you could even use Textedit), save as a jpeg, import to iPhoto and incorporate them into the show.
    Thanks for your suggestion, but I'm not interested in using iPhoto to add the music and titles when I can use FCP to easily create better effects.
    If you then export the slideshow as a Quicktime movie then you can just pull it into iDVD. But if DVD is the intended end format your QT export needs to be 1024 or 720 x 576(thats for PAL TV) depending on the aspect ratio you're going for. I'd export it as DV.
    I've used the iDVD slideshow function before. I was frustrated by the limitation the function offers. I just wanted to simply edit the QuickTime movie I exported from iPhoto using FCP. I don't know why it's so hard and no one can seems to assist me. Any suggestion would be appreciated, though. Thanks.

  • DPM is out of disk space for the replica. (ID 58 Details: There is not enough space on the disk (0x80070070))

    I constantly get these message on laptop backup, what actually does it mean?
    DPM is out of disk space for the replica. (ID 58 Details: There is not enough space on the disk (0x80070070))
    I set automatic growth on protection group and there is plenty space.

    Auto-grow Key Points
    1.) Auto-grow needs to be enabled for the datasource.
    2.) We grow the replica/recovery point volume by 10gigs or by 25% whichever is higher.
    3.) To prevent race conditions, we do not grow within 15 minutes of the last growth.
    http://social.technet.microsoft.com/Forums/ru-RU/6c70079e-6d90-42e2-89c4-9ddc7fcf11f4/dpm-2012-is-out-of-disk-space-auto-growth-does-not-work
    https://blogs.technet.com/b/dpm/archive/2011/06/06/how-to-use-and-troubleshoot-the-auto-heal-features-in-dpm-2010.aspx
    http://robertanddpm.blogspot.ru/2010/09/shrink-volumes-auto-grow.html
    Have a nice day !!!

  • IDVD error msg Not enough free disk space for encoding the remaining assets

    I get this error message on iDVD, does this mean I need to free up hard disc space... "Not enough free disk space for encoding the remaining assets"

    How full is your Mac's hard drive?
    Locate your iMac's hard drive icon on the OS X desktop. Click the icon once, then use the keyboard key combination Command-I. This will give you additonal info about your iMac's internal hard drive.  

  • How to get mobile model name for different types mobile devices

    Hi,
    I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
    HttpConnection connection = null;           connection = (HttpConnection)Connector.open(url);          connection.setRequestMethod(HttpConnection.POST);          connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
    i retrieve the header information from servlet like below :-
    String userAgent = request.getHeader("User-Agent");
    How to get mobile model name for different model devices , not by manually adding the model name in midlet?
    Thanks in advance :-)

    Hi,
    In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header.

  • I have purchased a macbook air with 64 gb hard disk. the available space is only 10gb. With this available space, i can't use the system effectively. kindly advise.

    I have purchased a macbook air with 64 gb hard disk. the available space is only 10gb. With this available space, i can't use the system effectively. kindly advise.

    You should have bought one with a larger SSD. You can regain some space by disabling the sleepimage file:
    To disable safe sleep, run the two following commands in Terminal:
    $ sudo pmset -a hibernatemode 0
    $ sudo nvram "use-nvramrc?"=false
    When done, restart your computer. Now go delete the file "/private/var/vm/sleepimage" to free up some hard drive space. When you put your computer to sleep it, should happen in under five seconds; my MacBook now goes to sleep in two seconds.
    [robg adds: To state the obvious, with safe sleep disabled, a total power loss will wipe out whatever was open on your machine. To enable safe sleep mode again, repeat the above commands, but change hibernatemode 0 on the first line to hibernatemode 3, and =false to =true on the second line. You'll then need to reboot again. Personally, I prefer the safe sleep mode, even with the slower sleep time and hard drive consumption -- even if for no other reason than it's great when changing batteries on a flight.]
    You can also delete unneeded files:
    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion's Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • Can I move cache to external hard drive to save disk space for photoshop and bridge?

    Can I move cache to external hard drive to save disk space for photoshop and bridge?

    So could I take everything off my external hard drive, save it to my Mac, then re-format it for my Mac and move everything back to the external hard drive?
    Yes. Keep in mind that you need to back up all data, including the data on an external drive. So if you're going to use the external drive to store original data, as opposed to backups, then you really need another one to back up the first one. You also need to back up the data on your internal drive, of course. This isn't optional. You must do it, or you'll lose everything sooner or later. All disk drives fail eventually, often with no warning.
    If I do that how do I format the external hard drive for my Mac?
    Launch the Disk Utility application and search the built-in help for "erase."
    Would it be easier to just buy a external hard drive that is for a Mac?
    All external hard drives work with Macs. Some might come pre-formatted for use with Macs, but it only takes a few minutes to do that yourself.

Maybe you are looking for