Read Hard Drive

Hi all im a new programmer and i wanted to make a computer compression program, i think i can get up to a constant 50% compression. I was wondering as to whether java had syntax for reading raw hexadecimal from the hard drive. If you do know the code could you post it and be very explicit as to what things do.

Do you mean low-level access to blocks, sectors,etc?
If so, you're probably out of luck.
Or did you just mean reading "raw" bytes from files?
If so, then...
http://java.sun.com/docs/books/tutorial/essential/io/in
ex.htmlWhats the difference from the two?"Write 0xABCD at sector 7G" vs. "open C:/foo.txt and write 0xABCD"
The file system is a service or layer provided by the OS for programs to use. Almost all programs, whether written in Java, C/C++, C#, Perl, shell script, Python, etc. do I/O through the file system, letting the OS worry about the lower level stuff. Programs like Norton Disk Doctor, or some databases, etc. might use the lower level stuff either out of necessity to perform their task, or for performance reasons.
For the lower level access, you'd have to go through JNI, or find some third-party tool that does.

Similar Messages

  • Read Hard Drive Serial No

    Hi All!
    I want to read hard drive serial no using Forms 6i.
    Thanks in advance
    Waqas,

    you mean how can I read it without forms?
    Yes I know Steps:
    Open Command Prompt
    Type Dir Press Enter
    Information will be shown like this
    C:\Documents and Settings\Administrator>dir
    Volume in drive C has no label.
    Volume Serial Number is "D41C-94E3"
    Waqas,

  • T400 keeps on reading hard drive in regular intervals (no programs running)

    Hi
    I have been using my T400 for some time now and what is annoying me is the sound of hard drive even ehen I am just reading word or a webpage or not even doing anything (no programs running).
    I had an HP laptop before and it would not touch hard drive under mentioned conditions...
    But my T400 keeps on touching the hard drive in relatively regular wai - on/off, on/off - each second - this is driving me crazy...
    I hope I described it correctly ;-) - hope you understand.
    Any suggestions how to solve it or I have to get used?
    Moderator Note; please update your profile with your correct country location as per the forum rules. Products, options and services vary from market to market. Knowing your location helps us help you
    Message Edited by andyP on 09-27-2008 04:10 PM

    Welcome to the forum!
    Which operating system are you using, and have you turned off file indexing?
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Jane
    2015 X1 Carbon, ThinkPad Slate, T410s, X301, X200 Tablet, T60p, HP TouchPad, iPad Air 2, iPhone 5S, IdeaTab A2107A, Yoga Tablet, Yoga 3 Pro
    I am not a Lenovo Employee.
    I AM one of those crazy ThinkPad zealots!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!

  • Macbook pro not reading hard drive blinking question mark

    Just got a new replacement MacBook Pro.   Did a restore from timemachine and the Apple updates.   Opened a finder and could not find the internal hard drive.  (nothing else connectd to the laptop)   attempted to open the applications folder and got stuck with a spinning wheel.   Re=started 5 minutes later and nothing happened.
    Did a OPTION Key restart, connected to the network and did a disk util.  No internal drive displayed.
    The old laptop's HD died 4 times.  Now this new one dies right out fo the box?   Back to the Apple store tomrrow morning.  
    Any suggestions?

    Got to the Finder? From the Finder menu: Finder>Preferences. Hard Disk box checked?

  • IMac not reading hard drive, spotlight not working, all my files not showing... help!!!

    Hi folks,
    I got home from a three week trip and turned on my imac, at first i realized it was running extremely slow. Then i plugged in my external hard drive, and it didn't read. I checked in disk utilities and profiler, and my hard drive was there, just not appearing in finder or desktop. I couldn't mount (it was grey) the hard drive in disk utilities either. (I tried with other hard drives, same problem; they all worked before)
    Afterwards, I found out that spotlight wasn't working at all, it wasen't even initializing (see attached screenshot). When i opened "all my files", nothing appeared in the window - it was blank. Another thing is, launchpad scares me - it loads incredibly slow and the screen keeps refreshing itself.
    Please help!! I don't want to reinstall the whole system and lose all my file, cause right now, I cannot backup anything since it won't read my hard drives!! Could this be some kind of apple-virus..
    Anyone else with a similar situation? My system is 10.7.5, processor: i3

    This is not related to any kind of malware.
    It sounds like something is going very wrong with your machine, but I'm unsure what that might be that would prevent all external hard drives from working. Are you able to start up in recovery mode (hold down command-R at startup)? If so, from recovery mode, open Disk Utility and select your internal hard drive. What does the SMART Status say?

  • Read hard drive formatted in 10.8 in 10.6 (or Win7)?

    Hello,
    I have recently downgraded my Macbook Pro from Mountain Lion to Snow Leopard. I'm very happy with the change, my only issue is with external hard drive. It's formatted in the new format and 10.6 cannot read.
    Is there any way to read Mountain Lion formatted hard drive either in 10.6 or under PC with Win 7 (I'm willing to pay for some 3rd party app if price is reasonable)? I have like 100 GB of data on that drive I want to copy, but I'm not looking forward to doing it the hard way (reinstall Lion, copy data elsewhere, downgrade again....).
    Thanks for any advice.

    The question really is one about which format the disk is actually using. That might provide a clue.
    Open /Applications/Utilities/Disk Utility and select the drive. The info pane at the bottom should indicate the drive format. It's been a while, but the only differences I can think of beetween 10.6 and 10.7 are ExFAT support (added in 10.6.5) and encrypted volumes.
    Either that, or just find a friend (or local Apple Store Genius) who has a 10.7 system you can attach the drive to temporarily.

  • Pavillion g6-1107tx CANNT READ HARD DRIVE AND CD DRIVE

    HI ... 
    SUDDENLY MY LAPTOB Pavillion-g6-1107tx  WHEN BOOTING CANNT READ ANY DRIVES ON IT (HDD OR CD DRIVE) .. I REPLACED  NEW HARDDRIVE AND NO  CHANGES .. 
    PLZ I NEED HELP

    Hi @NADER85 
    Welcome to the HP Support forums!
    I am happy to assist you with your hard drive/cd/dvd issue. However I have a few questions.
    What operating system are you currently using?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Have you made and changes recently to your notebook? New drivers or devices, or a BIOS change?
    What exact errors are you seeing when you start your computer?
    Here are some pages I found that should cover the mostly likely causes of the problem. It would be best to have your original hard drive in the system for now. Otherwise part of the problem with the new one would be more related to not having a bootable partition or operating system installed. If we can access your original drive, then if we can sort out the cause without having to format, or repartition your drive, then any data on the drive should still be there.
    "Non-System Disk Error" or "Disk Error" Appears on Black Screen (Windows 7 and Vista)
    Resolve Boot Device not Found Error Message
    CD/DVD Drive Is Not Detected (Windows 7)
    Let me know what results you get or if you are getting any specific errors.
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Question Mark / not reading hard drives

    I have a flashing question mark /apple icon on the attempts to startup my G4 . Not reading the drives . I have used the startup disk & checed the profile & it reads the drives in the extensions, however not on startup

    http://docs.info.apple.com/article.html?artnum=58042 Macintosh: Flashing Question Mark at Startup
    http://docs.info.apple.com/article.html?artnum=31355 Mac OS: Flashing Globe When Computer Turns On or A folder that has an alternating flashing question mark
    Cheers, Tom

  • G4 Tower not reading Hard Drives

    Hello,
    I'm running a G4 tower w/ dvd-rom/cd-rw,ZIP,20G HD, and a 40GHD. They are all hooked up to the Internal ATA connectors (HD's on one, CD/ZIP on other).
    Yesterday I had to unhook them, now I can't seem to get either of the hard drives to show up.
    I can start up from the OS X DVD, but disk utility shows only the DVD/CD drive. I didn't even bother hooking up ZIP drive yet. I have tried switching cables, switching master/slave/cable select on drives, but no matter what combo only the DVD/CD will show up, never either hard drive. I have also zapped pram and nvram.
    I remember my G4 being picky about IDE combos and jumpers, but never this picky.
    Any hints? suggestions? Is there 1 specific way i should have all this set up?
    please help!!!!
    Thanks
    -Sam
    G5 DP 2ghz, G4 AGP 400MHZ (upgraded 1ghz)   Mac OS X (10.4.9)  
    G4 PCI 400MHZ   Mac OS X (10.3.7)  

    Update:
    I just noticed that some how along the way, I seem to have broken a PIN of the the back off both hard drives. They are both missing 1 pin each (not including the one that is missing by default) it's the pins that the IDE cord plugs directly into. I assume that these missing pins are at the root of my HD troubles.
    So where do I go from now? I could just buy a new HD, but I really need the information on these two drives. One is a Maxtor, and the other is a Quantom Fireball. Is there anyone way to save the data on the drives? Can i get a new connector on back?
    Any tips or links would be helpful.
    Thanks.
    -Sam

  • Not Working Hard Drive

    HI~
    I bought Hp Pavillion 110-014 ( Nov/2013,  Office Depot).
    Not working Hard drive.
    computer is not reading hard drive,
    When I Turn On it, It is preffering Fix Computer......and then after 20 minute, Monitor is Blank  
    I try Hard Drive Connect another Computer(HP 500-056)  but Not working,  
    how can i Fix It? 

    JHLEW, welcome to the forum.
    I suggest running the hard drive diagnostics from the BIOS.  This will tell you if the hard drive has failed.
    Please click the "Thumbs Up+ button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Iomega external hard drive either 'not found' by Time Machine or is now in 'read only' format

    I don't know what's going on with my iomega external hard drive.  Sometimes the HD is recognised by the computer; other times it isn't; if it isn't I can restore to an earlier back up via Time Machine app; but it's like the disk isn't writable.
    Ten days ago, I had trouble backing up my iMac using Time Machine.  After turning it off and restarting my external hard drive, it backed up successfully.
    However, today I am trying to back up my files, and TM tells me it can't find the external hard drive.  Nothing has changed -- I have been out of town this past week -- but somehow my HD now seems to be in 'read only' format.  It does turn on, and I could restore my computer to an earlier back up.
    "Mac OS X can't repair the disk.  You can still open or copy files on the disk, but you can't save changes to files on the disk.  Back up the disk and reformat it as soon as you can."
    Annoyingly, despite my HD not showing in Finder or on my Desktop (as it usually does), when I simply turn it off I get that warning message "The disk was not ejected properly".
    Have tried verifying and repairing using Disk Utility, to no avail. 
    Am prompted to reformat but I don't have a good understanding of what this means and how to do it.  I'm guessing this would wipe the disk clean and I'd have to create the initial back up image all over again -- I'm reluctant to do this since this HD is my only back up and if it all goes tits up I'll be up that famous creek without a paddle.
    Thoughts, suggestions, input all welcome and deeply appreciated -- thank you!

    fzgy wrote:
    "Mac OS X can't repair the disk.  You can still open or copy files on the disk, but you can't save changes to files on the disk.  Back up the disk and reformat it as soon as you can."
    It's possible a heavy-duty 3rd-party disk repair app can fix it, but they're expensive (DiskWarrior is about $100), and there's no guarantee it can do it.
    Am prompted to reformat but I don't have a good understanding of what this means and how to do it.
    That will erase it.  See Time Machine - Frequently Asked Question #5.
    It sounds very much like the disk is beginning to fail, although it's possible there's a bad port, cable, connection or power supply (if it has its own).
    I'd suggest getting a new one, and using it for your Time Machine backups; once you have a good backup there, reformat the old one (and select Security Options to write zeros to the whole drive -- if that fails, you know the drive is toast).  Use it for secondary backups, per FAQ #27.   If it has failed, get a second new one for secondary backups. 

  • IPod cannot be synced because external hard drive could not be read

    I moved my music folder to an external hard drive to create space on my laptop, and changed the location under Preferences / Advanced. Since I did this, my iPod trys to automatically sync but gives the error message "The iPoD "[name]" cannot be synced. The disk could not be read from or written to." The external hard drive is on and working. Is there some reason that the iPod will not sync with this external hard drive? What do I need to do to fix it? Thanks, Bill

    First question, since you made
    the change, can you still play your music from within
    iTunes?
    Patrick
    Sorry for the delay in answering as I have been traveling. Yes, I can play music from iTunes. The music is located on my external hard drive. iTunes software is on my laptop, and the music library points to the music folder on my external hard drive.
    Thanks, Bill
    Dell Laptop   Windows XP  

  • Why can't I read or write from my external hard drive?

    Hey there, I recently borrowed my brother's laptop to use as a media station for listening to music from, and watching movies, in order to free up some space on my main macbook.  In trying to migrate some files over, I discovered that my hard drive, a 320 GB WD Elements drive, is having some problems which I've never encountered before.  It has always worked fine in the past, but now I can't transfer any files to or from it, from either computer.  In all of my troubleshooting, I've gotten various errors, (-36, -50), and various messages saying how the device can't be read or written from, or how some files contian unreadable data, etc.
    Disk Utility found an unused node when verifying the disk, and notified me that the disk needed to be repaired.  I then used Disk Utility, which said it was able to successfully repair it, but the same problem remains, and after verifying the disk, it still says it needs to be repaired.  I've tried to find any files that may be causing the problem, and was finally able to delete a seemingly troublesome file that was stuck in my trash bin from the external drive after trying various apps, (ie Trash It, Cocktail, What's Keeping Me?).  This didn't end up solving anything...I've used terminal to eliminate some other potentially problematic files, with no luck still, and I'm not too confident with Terminal so I don't want to be messing around too much without more guidance.
    Most recently, I've used Disk Warrior to try to solve the problem, but still with no success.  When I use the app to Check All Files and Folders, it does so for only a few seconds, then reports that "An unexpected error ocurred while attempting to perform file operations" for several files, and that several files' "Property list is damaged and cannot be repaired".  When using Disk Warrior to REBUILD the drive, the app pauses for about 15 seconds, then says that it can't be rebuilt because it is in use.  Again, I've used the What's Keeping Me? app to kill any activity with the drive, and the same error occurs.
    I've spent a lot of time trying to sort this out...It's very frustrating, and I have a lot of files that mean a lot to me on my drive, so any help would be greatly appreciated!
    Thanks a lot!
    Ryan

    I have this problem too with my Western Digital 1TB My Passport for Mac.
    Downloaded Card Data Recovery - did not work. The software self terminated itself when the problematic WD is connected. Starts up fine when the WD is not connected by USB.
    Then I downloaded Remo Recovery. Starts up fine, scans fine and appears to save the files but ALL the files 'saved' are unreadable.
    Finally, downloaded Stellar Phoenix in a last ditch attempt to recover my precious video files. Starts fine, saves fine BUT it cannot save files above 200MB because the WD stops working every 10 minutes.So, did not solve my problem totally because I have so many files above 200MB.
    And yes, I PAID for all the software above. And the first two software are reluctant to refund me my money until their development team can ascertain whether it's a software bug, over online web conference. And because of the time differences, I can never get online with them. So, all my money gone.
    Until one day I opened Activity Monitor and noticed this 'fsck_hfs' starting up everytime I connected the problematic WD My Passport for Mac.
    So, tried to Force Quit 'fsck_hfs' and VOILA!
    A dialogue box popped up and says that the Passport for Mac cannot be repaired and that I can move and copy files from it but not save to it.
    PHEW!!
    At least I can access the files and save them to my Seagate 1TB although now I am having a problem opening FCP X project files rescued from the WD.

  • I have moved all my songs onto a new external hard drive but it has wiped my iPod clean. Although when I connect my iPod it's starts teh process of sync'ing - so many songs in I get a pop up advising the siong could not be read or written to?

    I  have moved all my itunes onto a new external hard drive to free up space. It has wiped my ipod clean! I can still see the itunes on the new hard drive so I restored my iPod and tried to sync. Although when I connect my iPod it's in the process of syncing, so many songs in I get a pop up saying could not copy to my iPod as xyz song title could not be read or written. I click ok for this pop up to dissapear and then another pop up appears saying could not coyp to iPod because of unknown error.!!! Help I'm going crazy.

    Did you go into iTunes to change the location of your media files? if not you will need to go into iTunes and click on preference and select the advance tab then click the iTunes Media folder location.  Select the location of your on external hard drive. 

  • Windows Easy Transfer (WET) Issues with External Hard Drive - "Can't read from the source file or disk"

    I work for Office Depot, in the tech department. Basically, one of our associates was supposed to do a data backup, and re-install Windows 7, then transfer the files back. He used Windows Easy Transfer and compacted everything into a 163 GB file. 
    Now comes the hard part. When we try to put it back on his computer ((drag-and-drop to the desktop) which has been wiped back to factory settings using the recovery partition), it stops at 79.5 GB remaining (you know how it doesn't give you a % of completion,
    it just shows how many GB are remaining) and then says "Can't read from the source file or disk" and gives you an option to try again, or cancel. It gets hung up on the same point each time.
    Normally, this wouldn't be a huge issue, but the contents on the drive are his wife's architect blueprints and interior design stuff, along with wedding photos, etc, which are the only copies they have. On top of those, they have court documents and other
    important files that we are unable to access now.
    I wasn't involved with this transfer, so I'm trying to clean up the mess as best I can. I remembered that the customer's wife was Russian, and had some files typed with a Russian keyboard, so on and so forth. I wonder if that's the issue? If not, I really
    have no idea how to manually extract things from a ".mig" file, or how to diagnose what area is potentially corrupted.
    In light of this situation, we tried using "Recuva" to recover the files post-wipe, but everything was corrupted or unable to be opened, and it also extracted and recovered all of the "useless" photos, such as the skype logos, up and
    down arrows for browsers, etc (it was 160,000+ photos).
    Trying to avoid a potential lawsuit, unhappy customer, and costing the company lots of money to see if professionals can get into this external hard drive.
    Other relevant information:
    We used a Toshiba 500 GB (465 GB) external hard drive.
    Customer's computer is an HP Pavilion P6000 Series (Model No. p6520y) running Windows 7 Home Premium 64-bit Service Pack 1.
    Any other information that is needed can be provided, thanks in advance, and hopefully we can find a solution to this issue quickly!
    -John

    I think there's a lack of understanding somewhere.
    "If you even can't start the process, please unplug it from your new PC. Then head back to your new computer and plug
    the external drive back in to your new computer. "
    Unplug from new, head back to new, plug it back in? That doesn't make much sense! Haha.
    I knew what you meant though, somewhat. When I search through the drives after clicking yes (Has windows easy transfer
    already saved your files blah blah blah) I click on the transfer file and it says "Windows Easy Transfer could not open the file".
    Rather than drag-and-drop the file to the desktop, I now tried to double-click on the file itself while it was plugged
    into the computer. It opened, and it started transferring until it was about 70% completed, and then an error popped up saying "WET can't open the easy transfer file, make sure your USB device is plugged in or check your internet connection". 
    I checked, and the USB hard drive's light wasn't on. Now, I unplug it and plug it back in, and the light comes back on,
    so I click Retry, and it resets the bar back to nothing and says "Transfer time: 1 minute".
    Rather than continue trying, I clicked "Cancel" instead of Retry, and it says "Your transfer did not complete successfully."
    It says to click "view report" for more information, but there's no "view report button".
    At the moment, I am scanning the External Drive for bad sectors using the check disk tool in properties. It's frozen
    at "0 USN bytes processed".

Maybe you are looking for

  • Exporting XML from PP CS6 to Resolve. Doesn't work no matter what we try!

    My colorist and I have been pulling our hair out trying to figure out how to get this project into Resolve. I am running the latest version of PP Cs6 on a Windows PC. Edited the feature in native R3D format, 4.5k, everything was smooth as silk. I pre

  • JTable in JInternalFrame

    Hi, I am having a problem with editing cells in a JTable. I have initially created a table using a custom table model in a JFrame. Everything works as expected. Now that I have modified it so that the JFrame becomes a JInternalFrame inside my Desktop

  • Unable to undeploy a dictionary project

    Hi, I have  a DC that is of the type Dictionary project. I have my tables defined in this. How do I undeploy this DC. I tried it from the SDM and it is greyed out and does not allow me to undeploy it. So if I have it in my SDA it does not deploy as i

  • Weird clipping issue..Please help!

    I am recording vocals, and the wave forms are not clipping. They are healthy, good looking waves, but when played at 0 dB, some parts clip in the meter. I can turn the volume down to avoid the clipping, but then the lead vocal get too quiet. What sho

  • Problem in Runinng a report with parameter form through Run_Report_object

    Hi, I am trying to run reports thought RUN_REPORT_OBJECT built-in. It works fine in following cases * Run a report without parameter Form * Run a report with parameter form by passing parameters through parameter List. But it did not o\work in follow