[SOLVED] dd doesn't copy from /dev/null

To compile a large application using IPO I need a lot of memory, more than the 1 GB RAM + 1 GB swap on my system. In order to create an extra (temporary) swap file I need to create a large, empty file. For this purpose I did
# dd if=/dev/null of=/large_partition/swapfile bs=1K count=1024G
But dd always returns
0+0 records in
0+0 records out
0 bytes (0 B) copied, 2.7727e-05 s, 0.0 kB/s
(time may vary.) Copying an ordinary file using dd works as expected.
What could be wrong (with /dev/null)?
Last edited by Marcel- (2010-03-31 22:10:42)

/dev/null is a 'black hole', it discards every data and you can't use it this way. I think you should try /dev/zero instead.

Similar Messages

  • What is the best methid to do copy from dev to qas with min downtime

    hi
               can any one tel the best(i mean with min downtime) for copying from dev to qas plsss

    Hi,
    If it is Oracle then Backup/Restore and if MSSQL then Homogenious system copy Attach/Detach
    Hope this will help.
    Best Regards,
    Sachin.

  • [solved] systemd times out waiting for dev-null.device on encrypted fs

    I have a relatively new install of Arch on my laptop. The relevant sections of the drive setup are a luks encrypted root device (with associated unencrypted /boot), and a large ntfs device encrypted with truecrypt. That contains my home directory, which is shared with the Windows 8 dual-boot on the machine.
    I have all this mounted on boot, so my typical usage is to enter my password for the encrypted root, followed by the password for the truecrypt-encrypted data drive, then normal login.
    This has been working fine for a couple of weeks. This afternoon I rebooted my machine from Windows to Linux, at which point the secondary encrypted drive failed to mount. The root device mounts fine.
    On further examination, in the form of journalctl -xb, I'm getting the following errors after mounting the encrypted root device:
    Feb 12 21:29:54 kafka systemd[1]: Job dev-null.device/start timed out.
    Feb 12 21:29:54 kafka systemd[1]: Timed out waiting for device dev-null.device.
    -- Subject: Unit dev-null.device has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/li … temd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Softwar … e9d022f03d
    -- Unit dev-null.device has failed.
    -- The result is timeout.
    Feb 12 21:29:54 kafka systemd[1]: Dependency failed for Cryptography Setup for cryptdata.
    -- Subject: Unit [email protected] has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/li … temd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Softwar … e9d022f03d
    -- Unit [email protected] has failed.
    As my root home directory is on the root filesystem, I can still log in as root. If I try to mount or unmount the truecrypt device (located at /data) the command hangs. After removing "auto,x-systemd.automount" from that device from /etc/fstab and rebooting, I have a significant delay at boot, but I can then mount the /data device as normal.
    I can't find anything related to this either here or on Google. Any ideas?
    Last edited by tealeaf (2014-02-13 12:01:55)

    WonderWoofy wrote:A bit OT, but I just want to mention that having your $HOME on ntfs is probably not the best idea either.  It may work, but because it is not a POSIX compliant filesystem, there is a good chance you might run into some issues.
    Thanks for the warning. Sadly, as there are applications I need for work that only run in Windows, I need to dual boot this machine with Windows 8.1. This is the best option I can find for sharing my home directory, which is also a necessity due to the amount of data I have to share between the systems. I would much rather trust to ntfs-3g-ar and its UserMapping (and all the fiddling with ACLs that I had to do) than to the Windows ext2 drivers I can find. They all seem to be several years out of date. Linux is much better at talking NTFS than Windows is at talking EXT. (To be honest, I'm actually quite impressed with Windows 8 since the upgrade to 8.1. As a long term Arch user and a fan of tiling window managers it's interesting to see Windows moving in the right direction. )
    With 'permissions' in the /etc/fstab and the .NTFS-3G/UserMapping file in place it works almost seamlessly. (It took a lot of tinkering with ACLs in Windows and Linux, but it's working very well now. One tip that I'll write here in case it's of use is that you want the last line of the UserMapping file to be a 'generic' mapping. When I didn't have that there were very strange things going on.)
    The only two minor problems I have now are:
    1) A few applications don't like FUSE filesystems. Steam worked for a while and then broke; reinstalling it failed at every stage. When I checked, it seems that FUSE is a known problem for Steam. (I don't think it's restricted to NTFS.) My response to that was to create /home/.local/$HOME on my root (ext4) filesystem and symlink out to it for troublesome applications.
    2) There are a few characters for filenames that Windows doesn't like, making those files inaccessible in Windows. (Colons are the major culprit.) They're usually quite easily renamed. (The exception being my .maildir folder, which I have had to duplicate natively in cygwin.)
    Neither of these are anything more than minor niggles. I appreciate the warning, though.
    Having said that, if you have an alternative that lets me share a truecrypt-encrypted drive between Linux and Windows that is better than the NTFS-3G approach, I'd love to hear it for future reference.

  • [solved]How can I copy from urxvt and paste in firefox?

    I can't copy anything from urxvt to firefox,but I can copy from firefox to urxvt.
    I use fluxbox,anyone can help me?

    zen_guerrilla wrote:
    Add these lines to your .Xdefaults:
    URxvt*perl-ext: default,mark-urls
    URxvt*urlLauncher: firefox
    and source it with xrdb ~/.Xdefaults. Then double-click on the url on urxvt, press Ctrl and right click the url. Select 'run firefox' and you're good to go.
    ...or you can just middle-click the link and it'll open in firefox.

  • Hyperion Planning Copy from Dev to QA

    Hi
    Is there a procedure to copy a Planning apps from one envoirement (Dev) having EPMA/Shared Services/Planning to another envoirnment (QA) having the same components ? If anybody has done this please let us know the procedure ?
    Thanks
    V

    Hi,
    First of all you never mentioned the version of planning.
    Second have you had a search of this forum to find the answers yet?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • [SOLVED] iPod doesn't appear in /dev/ when plugged in

    I've been trying to get my iPod touch to work, but I can't even find it inside /dev/. I'm supposed to be able to mount it manually if I see it as /dev/sdx# but I only see my hard drive's devices.
    I know it is recognized by the system,
    when I try lsusb, I get this line (among others):
    Bus 001 Device 010: ID 05ac:1299 Apple, Inc.
    also, with usb-devices I get the following:
    T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 10 Spd=480 MxCh= 0
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  3
    P:  Vendor=05ac ProdID=1299 Rev=00.01
    S:  Manufacturer=Apple Inc.
    S:  Product=iPod
    S:  SerialNumber=2b032b9c4f73f37786c4fb2cf3a0e15bc75a0331
    C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=500mA
    I:  If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)
    I don't know if  the <<Driver=(none)>> part is normal here, I can mount/automount whatever other usb devices, like usb flash, or external hdd's, but not the iPod.
    Any help would be very much appreciated
    Last edited by KBM (2010-07-10 06:29:06)

    hey guys. I know this thread was "solved", but it didn't solve my problems.
    I also got my ipod touch mounted using ifuse and was able to use gtkpod to transfer my files. However, since all of my files ended in .mp3, and the ipod didn't strip the extensions off, I decided to clear them from the ipod and start again.
    In the middle of a sync I forgot about it, unplugged the ipod, and now ifuse gives me the message:
    No device found, is it connected?
    If it is make sure that your user has permissions to access the raw usb device.
    If you're still having issues try unplugging the device and reconnecting it.
    whenever I try to mount it.
    I did the view-the-log thing, and when I plug it in I get this:
    Oct 11 08:00:10 localhost usbmuxd[22304]: [2] Could not open device 1-4: -3
    So it seems to be a problem with usbmuxd. Any ideas guys?
    One more thing, I think I may have accidentally deleted some files from the ipod ("HashTable" comes to mind...), but I did a software update. Would that rebuild the filesystem?
    Thanks.

  • Majority of GPS data Doesn't copy from iPhoto to Aperture 3

    Having spent lots of time and effort geo tagging old photos Apertures ability to use this seemed very useful. Having left my iMac copying all my pics to a new Aperture Library for a day (17,000 images) not all of my geotagged pictures are still geotagged in Aperture.
    Of 5934 pictures appearing in "Places" on iPhoto, only 1746 appear in "Places" on Aperture.
    From what I can tell, the 1746 photos are those photos that were geotagged when imported into iPhoto (iPhone pictures plus some more recent DSLR pics that I synced with a gps tracker using GPSPhotolinker).
    All the manually assigned photos - some 4200 odd - only have GPS data assigned to the iPhoto database reference of the photo, not the image itself. I tested this:
    1. In iPhoto, choose a manually tagged pic and goto Photos>Show Extended Photo Info. In the extended info are latitude and longitude references (the manual pin drop does collect this info)
    2. Download "GPS-info". This will display any GPS data stored in a file when selected in the Finder
    3. back to iPhoto, and with the same phoo selected in step 1, right click and select Show File. This will bring up the image location in a finder window
    4. Now open GPS-info, downloaded in step 2. This will show there is no GPS info stored in the image
    Repating the above steps for a photo tagged outside of iPhoto and GPS data is assigned and the image does appear in "Places" in Aperture.
    So basically, I'm a little hacked off the all my hard work seems to have been wasted. I'm hoping someone will read this and tell my how I'm being a prat and I should have done x, y and z, but please post your experiences with importing geotagged iphoto photos.
    Thanks!

    If anyone else was having this problem, my resolution is on here:
    http://discussions.apple.com/message.jspa?messageID=11151194#11151194

  • Query Favourites copy from Dev to Prd System

    Hello,
    Is there is any option or program or FM to copy Query Favourites ?
    we have two BW and BI Systems,
    My customer is keeping some of 30 querys in favorites in one BW System and now we need to copy that same queries in BI System, Any possibiliteis ?
    Regards,
    Ranga
    Edited by: Ranga123 on Aug 10, 2010 12:36 PM

    Hi
    You can use the Function Module FAVOS_EVENT_ADD_TO_USER_SHELF for this. SAP_GUID is the WBID, TEXT is the fav text and REPORT_NAME as RRMX
    To add new folders
    You can either use BEx Browser or login into your BW system using SAP Logon, go to your sap easy access menu (TCODE:SMEN), right click the folders you want to manage and add your subfolders.
    Also go through these
    For
    Working with reusable items
    http://help.sap.com/saphelp_nw04s/helpdata/en/4e/0f813b420ce60ee10000000a114084/frameset.htm
    Santosh

  • [Solved]lxde doesn't start from xinitrc

    So I'm setting up arch in virtualbox to play with it and I've setup the system and partition(s) but upon trying to use lxde as a DE I'm strugling. I've added
    exec startlxde
    to ~/.xinitrc and upon reboot I'm greeted with the regualar terminal prompt. Is the command wrong or is there more that I'm missing? I've install xorg and startx doesn't seem to have issues and I've installed lxde-common & xdterminal.
    Let me know if I should give more specific info for anything. Thanks
    Last edited by cj360 (2014-10-08 23:22:24)

    .xinitrc gets executed when you run startx, not automatically at boot. Sounds like you're looking for LXDM?
    https://wiki.archlinux.org/index.php/Display_manager
    https://wiki.archlinux.org/index.php/LXDM
    Last edited by Scimmia (2013-10-14 02:03:32)

  • How to use the repository; uploading reports from DEV to PROD...

    Hello...
    I'm fairly new to CR-XIr2 (SP3) but have worked with Crystal Reports since v6.0.  I'm trying to figure out how to create a dynamic parameter list that someone can select an item from, which will get sent as an input parameter to the SQL Server 2005 stored proc that populates the report.  I'm also trying to figure out if there's an easy way to copy reports from a DEV environment into PROD.  We have BOE.
    Basically, I would like to find out resources online or in books on how to use the BOE repository for dynamic and/or cascading parameters (i.e. pulling a list of text values & their associated IDs from a lookup table that won't be used in the report), images (i.e. corporate logo), etc..  What complicates things for us is that IT is now requiring us to use a DEV environmentit was really easy when we had unlimited access in PROD!  We also need to put together a process where reports & other repository objects that are copied from DEV to PROD access the correct db, etc.  (Crystal Report in DEV accesses DEV db/repository/etc.when copied to PROD it accesses PROD db/repository/etc.)
    Anyway, I'm just looking for info on where to begin--whether it be a book, a BO/SAP knowledge base article, in-class training from a specific company, etc.  Thanks!

    Hey Markian,
    Can you let me know the process you have followed to migrate from Dev to Prod.
    We can migrate all the reports and objects and database fields through migrate wizard where you can import all the objects, reports and database fields and users to production enterprise.
    Just follow the above scenario and let us know if you are facing any error.
    Try  publish the reports using import wizard and run it in the crystal designer.
    Regards,
    Naveen.

  • LCM - copy (promote) jobs from DEV to TEST

    Hi all!
    I am searching for a way to copy the LCM jobs (to promote objects from DEV to TEST) from the DEV environment to the TEST environment.
    Is there a way to do so? Or do I need to recreate the jobs on the TEST new, when I want to transfer the same objects from TEST to PROD?
    Thanks,
    Hakan

    And do you know, how an existing job can be refreshed?
    I can create a job where a report is promoted from DEV to TEST. When the report now changes, so that a universe used is changed, the job itself is not updated.
    The only way I found is to recreate the job again. If I can solve the refresh problem of a job, I could copy the jobs from DEV to TEST and exchange the logins from DEV -> TEST and from TEST -> PROD.
    ciao Hakan

  • Copying from Oracle SQL Developer to Microsoft Word doesn't retain formatting (Font,colors etc)

    Copying from Oracle SQL Developer Worksheet doesn't retain formatting (font,color etc...)in Microsoft Word but copying from other programs such as
    visual studio, chrome browser etc works fine. This doesn't work even after changed the setting to Keep Source formatting of Options-> Copy and Paste Settings

    Hi,
    I notice that you have cross posted in Answers forum and Oracle forum. Have you tried Mr. Peter's suggestion?
    Then, I recommend we check the Word settings:
    1. Go to: Options > Advanced > Cut, Copy and Paste
    2.  Make sure that Use smart cut and paste is ticked. 
    3. Click the Settings button next to this option
    4. Make sure that Smart Style
    Behavior is checked.
    If the issue still exists, please upload a sample through One Drive, I want to test.
    Regards,
    George Zhao
    TechNet Community Support

  • I want to automatically have my pictures copied from my iphone to my computer into "my pictures" into a dated folder.  My phone did this at first and now it doesn't.  How do I set this up?

    I want to automatically have my pictures copied from my iphone to my computer into "my pictures" into a dated folder.  My phone did this at first and now it doesn't.  How do I set this up?  Thank you.

    What does the family WiFi have to do with iCloud? iCloud is on Apple's servers.
    If it is a shared computer what you can do is create a new user ID on the computer. Log in with the new ID. This will give you a "clean" iTunes library that you can use for backing up the the old phone and syncing the new phone.

  • [SOLVED] /dev/null: Permission Denied

    just tryin to run makechrootpkg, and was working fine 'till something happened recently.. now I get this:
    /usr/bin/makepkg: line 390: /dev/null: Permission denied
    ==> Retrieving Sources...
    /usr/bin/makepkg: line 461: /dev/null: Permission denied
    can anyone make sense of it? =/
    EDIT: nvm.. thankies #archlinux =P
    Last edited by Stythys (2010-06-05 17:33:33)

    I know it's solved, but I had the same issue today and fixed it like this:
    Add the following to the "mem" section in /usr/lib/udev/rules.d/50-udev-default.rules:
    SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666"

  • Mac OS: sapgui java 7.10 rev6 copy from ALV works but paste.... doesn't!

    Dear all,
    some times ago I had problems in copying cell contents from ALV reports. java gui 7.10 rev 6 solved the issue but....
    ... I still cannot paste it in SAPGUI.
    I mean:
    - I can paste it in other OSX application (like textedit)
    - I cannot paste it in an input field of sapgui
    to copy/paste from sapgui to sapgui I have to copy from sapgui, paste it to textedit, copy from textedit and paste it into sapgui.
    No problem if I copy the value from a "normal" field. The only issue is if I copy from ALV reports.
    Any hint?
    Lorenzo
    My gui:
    SAPGUI for Java 7.10 rev 6
    (Version ID 071000040600)
    Tue Sep 2 16:17:38 MEST 2008
    uw1059, 710_REL, 1009179
    Java VM: Apple Inc. Version 1.5.0_16
    OS: Mac OS X(i386) Version 10.5.5

    Hello Lorenzo,
    this sounds like a bug we have fixed recently (assuming that I get your description correctly).
    The forthcoming SAP GUI for Java 7.10 rev 7 should solve the issue.
    Best regards
    Rolf-Martin
    Update: The version is now [available|ANN: SAP GUI for Java 7.10 rev 7 available for download;.
    Edited by: Rolf-Martin Woersinger  on Dec 12, 2008 11:26 AM

Maybe you are looking for

  • ALV GRID short dump issue

    could anybody advice, ALV GRID FM(field catalog issue)is getting short dump, but workig fine for ALV LIST. PERFORM create_field_catalog USING:     'TRAFFIC_LIGHT' ' ' 15 'Status'   'Status' ' ',     'VKORG'     ' ' 15 'Sales Org'    'Sales Org' ' ',

  • Getting problem when retriving Table name

    Hi, I'm having problem when i trying to get the table name from database. I'm using NetBeans 6.0, And It does n't show any error during compile and run time. I could n't find where the problem is? Code:_ DatabaseMetaData dbm=conn.getMetaData(); Strin

  • Traversing a binary tree

    Hi I've written the following code for converting Postfix to Infix,it reads a string then reads it letter by letter ,a stack and a Tree is used,and I want to traverse the last object that has poped from the stack,in the following code I used this lin

  • Link doesn't work in safari landscape mode

    Hi All! Sometime I have problems with links in Safari. If I click on a link, it doesn't work, only when the iPhone is in landscape mode. If I turn the iPhone in portrait mode, I can click on the link correctly. Is there anyone with this problem? than

  • 'Changes to reposotory or cross client custimizing is not permitted'.

    Hi, I am trying to activate datasources at r/3 side. I am getting message that 'Changes to reposotory or cross client custimizing is not permitted'. I cant understand that why this is happening. I feel that it is because of cleint is lock or not chan