Thursday, September 11, 2014

Having fun with docbook

For some reason you need to apply the dbfo at different level to apply properties to an element:
<example>
<?dbfo pgwide="1"?> <!-- example level -->
<title>
Full example
</title>
<programlisting language="csharp">
<?dbfo keep-together="auto" ?> <!-- at programlisting level -->
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="MyCode.cs" parse="text"/></programlisting>
</example>
Reference: http://www.sagehill.net/docbookxsl/PageBreaking.html

Don't ask...

Monday, July 7, 2014

Error starting domain: internal error Network 'default' is not active.

# virsh net-start default
ref:
http://wiki.libvirt.org/page/Virtual_network_'default'_has_not_been_started

Friday, June 6, 2014

virt-manager: Can't choose ISO-image (remote connection, ssh)

While reading: https://bugs.debian.org/512253

I discovered that one need to restart virt-manager to get it to scan for new iso on the remote ssh.

Eg:

$ virt-manager
^C
$ scp *.iso remote:/var/lib/libvirt/images/
$ virt-manager
-> Browse -> "Locate ISO media volume"

Wednesday, April 30, 2014

Duplicating a repository on github

When following instructions from: https://help.github.com/articles/duplicating-a-repository

You need to change:

git remote set-url --push origin https://github.com/exampleuser/mirrored
into
git remote set-url --push origin git@github.com:exampleuser/mirrored

Otherwise you'll be asked for your Username:

$ git push --mirror
Username for 'https://github.com': 

Tuesday, April 29, 2014

usbmount: exfat !

Problem:

[1219466.592053] usb 8-1: new high-speed USB device number 5 using ehci_hcd
[1219466.725259] usb 8-1: New USB device found, idVendor=1b1c, idProduct=1a0a
[1219466.725264] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1219466.725268] usb 8-1: Product: Survivor 3.0
[1219466.725271] usb 8-1: Manufacturer: Corsair
[1219466.725273] usb 8-1: SerialNumber: 12345678000098765432
[1219466.744063] scsi10 : usb-storage 8-1:1.0
[1219467.756551] scsi 10:0:0:0: Direct-Access     Corsair  Survivor 3.0     1.00 PQ: 0 ANSI: 6
[1219467.757266] sd 10:0:0:0: Attached scsi generic sg7 type 0
[1219467.757784] sd 10:0:0:0: [sdh] 125132800 512-byte logical blocks: (64.0 GB/59.6 GiB)
[1219467.758154] sd 10:0:0:0: [sdh] Write Protect is off
[1219467.758159] sd 10:0:0:0: [sdh] Mode Sense: bf 00 00 00
[1219467.758526] sd 10:0:0:0: [sdh] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[1219467.761548]  sdh: sdh1
[1219467.763400] sd 10:0:0:0: [sdh] Attached SCSI removable disk

-> unknown filesystem type 'exfat'

Solution:

$ sudo apt-get install exfat-fuse
$ grep exfat /etc/usbmount/usbmount.conf
FILESYSTEMS="vfat ext2 ext3 ext4 ntfs-3g ntfs exfat hfsplus fuseblk"


mount/unmount the usb key !

Thursday, April 10, 2014

EXT4 / kimsufi

Server is not responding today. dmesg reveals:

ata1.00: exception Emask 0x0 SAct 0xf SErr 0x0 action 0x6 frozen
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/08:00:30:1e:34/00:00:01:00:00/40 tag 0 ncq 4096 out
         res 40/00:00:09:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/08:08:c0:78:24/00:00:01:00:00/40 tag 1 ncq 4096 out
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/68:10:50:f3:46/00:00:01:00:00/40 tag 2 ncq 53248 out
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/08:18:10:30:c4/00:00:00:00:00/40 tag 3 ncq 4096 out
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: link is slow to respond, please be patient (ready=0)
ata1: COMRESET failed (errno=-16)
ata1: hard resetting link
ata1: link is slow to respond, please be patient (ready=0)
ata1: COMRESET failed (errno=-16)
ata1: hard resetting link
ata1: link is slow to respond, please be patient (ready=0)
ata1: COMRESET failed (errno=-16)
ata1: limiting SATA link speed to 1.5 Gbps
ata1: hard resetting link
ata1: COMRESET failed (errno=-16)
ata1: reset failed, giving up
ata1.00: disabled
ata1.00: device reported invalid CHS sector 0
ata1.00: device reported invalid CHS sector 0
ata1.00: device reported invalid CHS sector 0
ata1: EH complete
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 c4 30 10 00 00 08 00
end_request: I/O error, dev sda, sector 12857360
Buffer I/O error on device sda1, logical block 1606658
EXT4-fs warning (device sda1): ext4_end_bio:244: I/O error writing to inode 393237 (offset 0 size 4096 starting block 1607171)
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 01 46 f3 50 00 00 68 00
end_request: I/O error, dev sda, sector 21427024
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 01 24 78 c0 00 00 08 00
end_request: I/O error, dev sda, sector 19167424
Buffer I/O error on device sda1, logical block 2395416
lost page write due to I/O error on sda1
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 01 34 1e 30 00 00 08 00
end_request: I/O error, dev sda, sector 20192816
Buffer I/O error on device sda1, logical block 2523590
lost page write due to I/O error on sda1
JBD2: Detected IO errors while flushing file data on sda1-8
Aborting journal on device sda1-8.
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10)
sd 0:0:0:0: [sda] Unhandled error code
: 2a 00 01 44 30 08 00 00 08 00
end_request: I/O error, dev sda, sector 21245960
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 00 10 00 00 00 08 00
end_request: I/O error, dev sda, sector 4096
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1
EXT4-fs (sda1): previous I/O error to superblock detected
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 00 10 00 00 00 08 00
end_request: I/O error, dev sda, sector 4096
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1
EXT4-fs error (device sda1): ext4_journal_start_sb:327: Detected aborted journal
EXT4-fs (sda1): Remounting filesystem read-only
------------[ cut here ]------------
WARNING: at fs/buffer.c:1153 mark_buffer_dirty+0x93/0xa0()
Hardware name: X8STi
Pid: 23035, comm: python Not tainted 3.2.13-grsec-xxxx-grs-ipv6-64 #1
Call Trace:
sd 0:0:0:0: [sda] Unhandled error code
 [<ffffffff81160bd3>] ? mark_buffer_dirty+0x93/0xa0
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
 [<ffffffff81089f3b>] warn_slowpath_common+0x7b/0xc0
sd 0:0:0:0: [sda] CDB: Write(10) [<ffffffff81089f95>] warn_slowpath_null+0x15/0x20
: 2a [<ffffffff81160bd3>] mark_buffer_dirty+0x93/0xa0
 00 00 [<ffffffff81229f82>] ext4_commit_super+0x172/0x240
 00 10 [<ffffffff8122b83e>] save_error_info+0x1e/0x30
 00 00 [<ffffffff8122bede>] __ext4_abort+0x12e/0x150
 00 08 [<ffffffff810f581c>] ? release_pages+0x23c/0x270
 00
 [<ffffffff810e9ba9>] ? find_get_pages+0x39/0x150
end_request: I/O error, dev sda, sector 4096
 [<ffffffff8122c78d>] ext4_journal_start_sb+0x8d/0x150
Buffer I/O error on device sda1, logical block 0
 [<ffffffff810f4e7f>] ? pagevec_lookup+0x1f/0x30
lost page write due to I/O error on sda1
 [<ffffffff8121ae2d>] ? ext4_meta_trans_blocks+0xad/0xc0
 [<ffffffff81234177>] ext4_ext_truncate+0x37/0x6a0
 [<ffffffff8110a8fc>] ? unmap_mapping_range+0x8c/0x190
 [<ffffffff8121c6e8>] ext4_truncate+0x78/0x80
 [<ffffffff8121c85e>] ext4_setattr+0x16e/0x550
 [<ffffffff8114e56e>] notify_change+0x10e/0x2d0
 [<ffffffff8113169f>] do_truncate+0x5f/0x90
 [<ffffffff811428f1>] do_last+0x891/0x920
 [<ffffffff81142a4f>] path_openat+0xcf/0x450
 [<ffffffff81142ee3>] do_filp_open+0x43/0xa0
 [<ffffffff8114f324>] ? expand_files+0x44/0x1e0
 [<ffffffff8114f50a>] ? alloc_fd+0x4a/0x140
 [<ffffffff81130612>] do_sys_open+0x152/0x1f0
 [<ffffffff811306db>] sys_open+0x1b/0x20
 [<ffffffff81b4c6b6>] system_call_fastpath+0x18/0x1d
---[ end trace 337b32de0e5629ad ]---
Buffer I/O error on device sda1, logical block 2655233
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 00 10 00 00 00 08 00
end_request: I/O error, dev sda, sector 4096
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1
EXT4-fs error (device sda1): ext4_journal_start_sb:327:
EXT4-fs error (device sda1): ext4_journal_start_sb:327: Detected aborted journalDetected aborted journal

lost page write due to I/O error on sda1
JBD2: I/O error detected when updating journal superblock for sda1-8.
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 75 84 ff 39 00 00 18 00
end_request: I/O error, dev sda, sector 1971650361
Aborting journal on device sda2-8.
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 75 84 10 01 00 00 08 00
end_request: I/O error, dev sda, sector 1971589121
Buffer I/O error on device sda2, logical block 241205248
lost page write due to I/O error on sda2
JBD2: I/O error detected when updating journal superblock for sda2-8.
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 01 87 2f f0 00 00 20 00
end_request: I/O error, dev sda, sector 25636848
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 01 87 2f f0 00 00 08 00
end_request: I/O error, dev sda, sector 25636848
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda]  Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 01 87 2f f0 00 00 08 00
end_request: I/O error, dev sda, sector 25636848

Wednesday, February 12, 2014

Multi arched wine !

Finally !

$ apt-cache  policy wine32 wine64
wine32:i386:
  Installed: 1.6.2-6
  Candidate: 1.6.2-6
  Version table:
 *** 1.6.2-6 0
        500 http://ftp.fr.debian.org/debian/ sid/main i386 Packages
        100 /var/lib/dpkg/status
wine64:
  Installed: 1.6.2-6
  Candidate: 1.6.2-6
  Version table:
 *** 1.6.2-6 0
        500 http://ftp.fr.debian.org/debian/ sid/main amd64 Packages
        100 /var/lib/dpkg/status