cd /path/where/iso/is
dd if=image.iso of=/dev/sdc (without options)dedanna1029 wrote:Have you tried:?
- Code: Select all
cd /path/where/iso/is
dd if=image.iso of=/dev/sdc (without options)
The next question I suppose would be if you run df -h, is that the drive you want to dd to? Mine had to dd to /dev/sdb1. If you dd to the wrong place, it will do some rather quirky things.
The only other thing I can think is maybe the usb stick is bunk. It should also be umounted when you perform the dd.
dd if=image.iso of=/dev/sdc bs=4ksyncdoktor5000 wrote:A bootable ISO is always to be dumped onto the device itself, as it contains partitions.
Out of memory: Kill process 2149 (plasma-desktop) score 9 or sacrifice child linuxero wrote:Just curious; are you dumping the ISO onto the device itself /dev/sdc? Why aren''t you dumping it to a partition?
oflag=direct iflag=directMayavimmer wrote:Trikki, let me see if I understand you: you say that since the logs contain a "dizzying" amount of stuff and it's "probably pointless to drop the whole mess of output here" then you are not going to give us ANY diagnostic message, not even ONE line, except for a line of gibberish, admittedly "not a real example from actual log". I tried, but I can't figure you out.
Apr 27 20:21:35 localhost kernel: [ 3952.382219] dd invoked oom-killer: gfp_mask=0x10200d0, order=0, oom_adj=0, oom_score_adj=0
Apr 27 20:21:35 localhost kernel: [ 3952.382230] dd cpuset=/ mems_allowed=0
Apr 27 20:21:35 localhost kernel: [ 3952.382236] Pid: 5375, comm: dd Tainted: G C O 3.4.34-desktop-1.mga2 #1
Apr 27 20:21:35 localhost kernel: [ 3952.382240] Call Trace:
Apr 27 20:21:35 localhost kernel: [ 3952.382254] [<ffffffff810bfce1>] ? cpuset_print_task_mems_allowed+0x91/0xa0
Apr 27 20:21:35 localhost kernel: [ 3952.382262] [<ffffffff8110c356>] dump_header.isra.10+0x76/0x1a0
Apr 27 20:21:35 localhost kernel: [ 3952.382270] [<ffffffff8123fe60>] ? ___ratelimit+0xa0/0x120
Apr 27 20:21:35 localhost kernel: [ 3952.382276] [<ffffffff8110c6f5>] oom_kill_process.part.12.constprop.13+0x135/0x270
Apr 27 20:21:35 localhost kernel: [ 3952.382283] [<ffffffff811f88f5>] ? security_capable_noaudit+0x15/0x20
Apr 27 20:21:35 localhost kernel: [ 3952.382291] [<ffffffff8105bb97>] ? has_capability_noaudit+0x17/0x20
Apr 27 20:21:35 localhost kernel: [ 3952.382296] [<ffffffff8110cd07>] out_of_memory+0x367/0x540
Apr 27 20:21:35 localhost kernel: [ 3952.382303] [<ffffffff81112316>] __alloc_pages_nodemask+0x916/0x930
Apr 27 20:21:35 localhost kernel: [ 3952.382311] [<ffffffff8118fe72>] ? alloc_buffer_head+0x22/0x50
Apr 27 20:21:35 localhost kernel: [ 3952.382318] [<ffffffff81148426>] alloc_pages_current+0xb6/0x120
Apr 27 20:21:35 localhost kernel: [ 3952.382323] [<ffffffff8110881f>] __page_cache_alloc+0xcf/0xf0
Apr 27 20:21:35 localhost kernel: [ 3952.382328] [<ffffffff811095e9>] grab_cache_page_write_begin+0x79/0xf0
Apr 27 20:21:35 localhost kernel: [ 3952.382334] [<ffffffff811971e0>] ? blkdev_get_blocks+0xd0/0xd0
Apr 27 20:21:35 localhost kernel: [ 3952.382339] [<ffffffff81192d98>] block_write_begin+0x38/0xa0
Apr 27 20:21:35 localhost kernel: [ 3952.382343] [<ffffffff8110865a>] ? unlock_page+0x2a/0x40
Apr 27 20:21:35 localhost kernel: [ 3952.382348] [<ffffffff81196783>] blkdev_write_begin+0x23/0x30
Apr 27 20:21:35 localhost kernel: [ 3952.382353] [<ffffffff81108bc2>] generic_file_buffered_write+0x112/0x290
Apr 27 20:21:35 localhost kernel: [ 3952.382359] [<ffffffff8110a291>] __generic_file_aio_write+0x231/0x440
Apr 27 20:21:35 localhost kernel: [ 3952.382364] [<ffffffff81196f33>] blkdev_aio_write+0x33/0x90
Apr 27 20:21:35 localhost kernel: [ 3952.382370] [<ffffffff811608ba>] do_sync_write+0xda/0x120
Apr 27 20:21:35 localhost kernel: [ 3952.382375] [<ffffffff81077dc5>] ? __srcu_read_lock+0x25/0x30
Apr 27 20:21:35 localhost kernel: [ 3952.382382] [<ffffffff8108795d>] ? set_next_entity+0x9d/0xb0
Apr 27 20:21:35 localhost kernel: [ 3952.382388] [<ffffffff811f90ac>] ? security_file_permission+0x2c/0xb0
Apr 27 20:21:35 localhost kernel: [ 3952.382394] [<ffffffff81160e51>] ? rw_verify_area+0x61/0xf0
Apr 27 20:21:35 localhost kernel: [ 3952.382399] [<ffffffff811611b3>] vfs_write+0xb3/0x180
Apr 27 20:21:35 localhost kernel: [ 3952.382403] [<ffffffff811614da>] sys_write+0x4a/0x90
Apr 27 20:21:35 localhost kernel: [ 3952.382410] [<ffffffff814672bd>] system_call_fastpath+0x1a/0x1f
Apr 27 20:21:35 localhost kernel: [ 3952.382413] Mem-Info:
Apr 27 20:21:35 localhost kernel: [ 3952.382416] Node 0 DMA per-cpu:
Apr 27 20:21:35 localhost kernel: [ 3952.382421] CPU 0: hi: 0, btch: 1 usd: 0
Apr 27 20:21:35 localhost kernel: [ 3952.382425] CPU 1: hi: 0, btch: 1 usd: 0
Apr 27 20:21:35 localhost kernel: [ 3952.382428] Node 0 DMA32 per-cpu:
Apr 27 20:21:35 localhost kernel: [ 3952.382432] CPU 0: hi: 186, btch: 31 usd: 2
Apr 27 20:21:35 localhost kernel: [ 3952.382435] CPU 1: hi: 186, btch: 31 usd: 0
Apr 27 20:21:35 localhost kernel: [ 3952.382438] Node 0 Normal per-cpu:
Apr 27 20:21:35 localhost kernel: [ 3952.382442] CPU 0: hi: 42, btch: 7 usd: 29
Apr 27 20:21:35 localhost kernel: [ 3952.382446] CPU 1: hi: 42, btch: 7 usd: 0
Apr 27 20:21:35 localhost kernel: [ 3952.382454] active_anon:89269 inactive_anon:18166 isolated_anon:0
Apr 27 20:21:35 localhost kernel: [ 3952.382456] active_file:331799 inactive_file:401339 isolated_file:2
Apr 27 20:21:35 localhost kernel: [ 3952.382458] unevictable:0 dirty:396295 writeback:5042 unstable:0
Apr 27 20:21:35 localhost kernel: [ 3952.382459] free:20607 slab_reclaimable:24545 slab_unreclaimable:6337
Apr 27 20:21:35 localhost kernel: [ 3952.382461] mapped:16263 shmem:2826 pagetables:6623 bounce:0
Apr 27 20:21:35 localhost kernel: [ 3952.382465] Node 0 DMA free:14708kB min:284kB low:352kB high:424kB active_anon:0kB inactive_anon:0kB active_file:440kB inactive_file:696kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15656kB mlocked:0kB dirty:696kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:60kB slab_unreclaimable:8kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:2085 all_unreclaimable? yes
Apr 27 20:21:35 localhost kernel: [ 3952.382482] lowmem_reserve[]: 0 3499 3609 3609
Apr 27 20:21:35 localhost kernel: [ 3952.382488] Node 0 DMA32 free:65680kB min:65240kB low:81548kB high:97860kB active_anon:356060kB inactive_anon:71496kB active_file:1322112kB inactive_file:1596044kB unevictable:0kB isolated(anon):0kB isolated(file):8kB present:3583528kB mlocked:0kB dirty:1576464kB writeback:19564kB mapped:62352kB shmem:11268kB slab_reclaimable:90924kB slab_unreclaimable:18744kB kernel_stack:2056kB pagetables:25564kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:5099394 all_unreclaimable? yes
Apr 27 20:21:35 localhost kernel: [ 3952.382506] lowmem_reserve[]: 0 0 110 110
Apr 27 20:21:35 localhost kernel: [ 3952.382511] Node 0 Normal free:2040kB min:2052kB low:2564kB high:3076kB active_anon:1016kB inactive_anon:1168kB active_file:4644kB inactive_file:8616kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:112896kB mlocked:0kB dirty:8020kB writeback:604kB mapped:2700kB shmem:36kB slab_reclaimable:7196kB slab_unreclaimable:6596kB kernel_stack:384kB pagetables:928kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:25351 all_unreclaimable? yes
Apr 27 20:21:35 localhost kernel: [ 3952.382527] lowmem_reserve[]: 0 0 0 0
Apr 27 20:21:35 localhost kernel: [ 3952.382533] Node 0 DMA: 3*4kB 3*8kB 1*16kB 2*32kB 4*64kB 2*128kB 3*256kB 4*512kB 1*1024kB 3*2048kB 1*4096kB = 14708kB
Apr 27 20:21:35 localhost kernel: [ 3952.382547] Node 0 DMA32: 10638*4kB 2123*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 1*4096kB = 65680kB
Apr 27 20:21:35 localhost kernel: [ 3952.382561] Node 0 Normal: 278*4kB 0*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 2040kB
Apr 27 20:21:35 localhost kernel: [ 3952.382574] 751417 total pagecache pages
Apr 27 20:21:35 localhost kernel: [ 3952.382577] 15430 pages in swap cache
Apr 27 20:21:35 localhost kernel: [ 3952.382580] Swap cache stats: add 16336, delete 906, find 408/409
Apr 27 20:21:35 localhost kernel: [ 3952.382583] Free swap = 4022268kB
Apr 27 20:21:35 localhost kernel: [ 3952.382585] Total swap = 4087272kB
Apr 27 20:21:35 localhost kernel: [ 3952.412350] 946160 pages RAM
Apr 27 20:21:35 localhost kernel: [ 3952.412358] 34927 pages reserved
Apr 27 20:21:35 localhost kernel: [ 3952.412363] 828490 pages shared
Apr 27 20:21:35 localhost kernel: [ 3952.412368] 182036 pages non-shared
Apr 27 20:21:35 localhost kernel: [ 3952.412919] Out of memory: Kill process 2149 (plasma-desktop) score 9 or sacrifice child
Apr 27 20:21:35 localhost kernel: [ 3952.412927] Killed process 2154 (ksysguardd) total-vm:9256kB, anon-rss:524kB, file-rss:768kB
Apr 27 20:21:35 localhost kernel: [ 3952.451838] X invoked oom-killer: gfp_mask=0x280d0, order=0, oom_adj=0, oom_score_adj=0
Apr 27 20:21:35 localhost kernel: [ 3952.451848] X cpuset=/ mems_allowed=0
Apr 27 20:21:35 localhost kernel: [ 3952.451854] Pid: 812, comm: X Tainted: G C O 3.4.34-desktop-1.mga2 #1 Out of memory: Kill process 2149 (plasma-desktop) score 9 or sacrifice child doktor5000 wrote:If your system kills processes due to OOM (out of memory) when using dd, then you can try to use some flags for dd.
That is what i do at work when writing bigger images (>10GB) to flash drives, as otherwise dd tries to read as much of the source image
file into free system RAM, which really gives huge performance hits.
Use dd as you would normally, but append
- Code: Select all
oflag=direct iflag=direct
Apr 27 20:21:35 localhost kernel: [ 3952.382219] dd invoked oom-killer: gfp_mask=0x10200d0, order=0, oom_adj=0, oom_score_adj=0 oflag=direct iflag=direct[doktor5000@Mageia2 ~]$ free -m
total used free shared buffers cached
Mem: 3923 2836 1086 0 1174 450
-/+ buffers/cache: 1211 2712
Swap: 0 0 0logger STARTING && dd ...Mayavimmer wrote:About logs and "learning to understand their meanings in general" I have to insist that there is no such thing. The reason is that logs are unsystematic dumps of any useful bits of information the program happens to have on hand at the moment of crash. No grand systematic procedure can be followed by a bit of code that is falling into the abyss... Logs may be produced by thousands of different softwares written by thousands of different programmers under billions of different sets of circumstances. No "generic" ways to understand error messages is possible.
Mayavimmer wrote:Trikki, thanks for the useful logs. As a general rule, and probably the only useful thing one can learn about understanding log files, is that usually errors produce avalanches of other errors, therefore only the first few lines are meaningful. In this case only the first line is meaningful, that is the message about dd calling oom_killer.
I don't know why this should happen when you have 4GB RAM and only 2.4GB image written at 1MB blocksize. I would guess some kind of hardware problem. Check the RAM. Try different USB ports -- one shorted out on me a while back. Try a different (live) OS. Try different stick.
One more thing would be moderately useful: I'd like to know the time elapsed between the dd invocation and the first error message. Use the logger command like:
- Code: Select all
logger STARTING && dd ...
...so you can compare times in the /var/log/messages output.
Apr 27 20:21:35 localhost kernel: [ 3952.382219] dd invoked oom-killer: gfp_mask=0x10200d0, order=0, oom_adj=0, oom_score_adj=0 Apr 27 20:20:53 localhost kernel: [ 3909.681864] usb 2-1: new high-speed USB device number 2 using ehci_hcd su -su -watch -n 5 kill -USR1 0000linuxero wrote:@Trikki;
You got me really lost in your problem
Trikki wrote:About logs in general: ... ... Does anybody know of any source (book or website) where one could start studying and learning to understand their meanings in general?" I did not mean that I wanted you to hand me over the dictionary that has answers to every question. As to your point about trying to find some error mesages and start from there, that is just what I have tryed to do so far, but would wish to find out more.
Users browsing this forum: No registered users and 1 guest