Hum, I could rescue the disk after all:

# virt-rescue -a /var/lib/libvirt/images/outdisk
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-4-amd64
(debian-ker...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14)
) #1 SMP Debian 3.2.57-3+deb7u2
[    0.000000] Command line: panic=1 console=ttyS0 udevtimeout=300
no_timer_check acpi=off printk.time=1 cgroup_disable=memory selinux=0
TERM=xterm guestfs_rescue=1
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009bc00 (usable)
[    0.000000]  BIOS-e820: 000000000009bc00 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000001f3fe000 (usable)
[    0.000000]  BIOS-e820: 000000001f3fe000 - 000000001f400000 (reserved)
[    0.000000]  BIOS-e820: 00000000feffc000 - 00000000ff000000 (reserved)
[    0.000000]  BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.4 present.
[    0.000000] No AGP bridge found
[    0.000000] last_pfn = 0x1f3fe max_arch_pfn = 0x400000000
[    0.000000] PAT not supported by CPU.
[    0.000000] found SMP MP-table at [ffff8800000fdaf0] fdaf0
[    0.000000] init_memory_mapping: 0000000000000000-000000001f3fe000
[    0.000000] RAMDISK: 1f137000 - 1f3f0000
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at 0000000000000000-000000001f3fe000
[    0.000000] Initmem setup node 0 0000000000000000-000000001f3fe000
[    0.000000]   NODE_DATA [000000001f3f6000 - 000000001f3fafff]
[    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[    0.000000] kvm-clock: cpu 0, msr 0:16a9701, boot clock
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000010 -> 0x00001000
[    0.000000]   DMA32    0x00001000 -> 0x00100000
[    0.000000]   Normal   empty
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000010 -> 0x0000009b
[    0.000000]     0: 0x00000100 -> 0x0001f3fe
[    0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[    0.000000] Intel MultiProcessor Specification v1.4
[    0.000000] MPTABLE: OEM ID: BOCHSCPU
[    0.000000] MPTABLE: Product ID: 0.1
[    0.000000] MPTABLE: APIC at: 0xFEE00000
[    0.000000] Processor #0 (Bootup-CPU)
[    0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
[    0.000000] Processors: 1
[    0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] PM: Registered nosave memory: 000000000009b000 - 000000000009c000
[    0.000000] PM: Registered nosave memory: 000000000009c000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[    0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[    0.000000] Allocating PCI resources starting at 1f400000 (gap:
1f400000:dfbfc000)
[    0.000000] Booting paravirtualized kernel on KVM
[    0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512
nr_cpu_ids:1 nr_node_ids:1
[    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88001ee00000 s82944
r8192 d23552 u2097152
[    0.000000] kvm-clock: cpu 0, msr 0:1ee13701, primary cpu clock
[    0.000000] KVM setup async PF for cpu 0
[    0.000000] kvm-stealtime: cpu 0, msr 1ee0dfc0
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.
Total pages: 126126
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: panic=1 console=ttyS0
udevtimeout=300 no_timer_check acpi=off printk.time=1
cgroup_disable=memory selinux=0  TERM=xterm guestfs_rescue=1
[    0.000000] Disabling memory control group subsystem
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Memory: 491932k/511992k available (3429k kernel code,
468k absent, 19592k reserved, 3310k data, 580k init)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] NR_IRQS:33024 nr_irqs:256 16
[    0.000000] Console: colour *CGA 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] Detected 1862.048 MHz processor.
[    0.008000] Calibrating delay loop (skipped) preset value.. 3724.09
BogoMIPS (lpj=7448192)
[    0.008009] pid_max: default: 32768 minimum: 301
[    0.009641] Security Framework initialized
[    0.011029] AppArmor: AppArmor disabled by boot time parameter
[    0.012143] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.016575] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.019299] Mount-cache hash table entries: 256
[    0.020447] Initializing cgroup subsys cpuacct
[    0.021937] Initializing cgroup subsys memory
[    0.024050] Initializing cgroup subsys devices
[    0.025519] Initializing cgroup subsys freezer
[    0.026979] Initializing cgroup subsys net_cls
[    0.028025] Initializing cgroup subsys blkio
[    0.029461] Initializing cgroup subsys perf_event
[    0.031199] mce: CPU supports 10 MCE banks
[    0.032307] SMP alternatives: switching to UP code
[    0.085546] Freeing SMP alternatives: 8k freed
[    0.089959] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.091952] CPU0: Intel QEMU Virtual CPU version 1.1.2 stepping 03
[    0.200110] Performance Events: unsupported p6 CPU model 2 no PMU
driver, software events only.
[    0.203471] NMI watchdog disabled (cpu0): hardware events not enabled
[    0.204062] Brought up 1 CPUs
[    0.205039] Total of 1 processors activated (3724.09 BogoMIPS).
[    0.209454] devtmpfs: initialized
[    0.214806] print_constraints: dummy:
[    0.216108] NET: Registered protocol family 16
[    0.217871] PCI: Using configuration type 1 for base access
[    0.220591] bio: create slab <bio-0> at 0
[    0.222011] ACPI: Interpreter disabled.
[    0.223369] vgaarb: loaded
[    0.224069] PCI: Probing PCI hardware
[    0.231312] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by
PIIX4 ACPI
[    0.232037] pci 0000:00:01.3: quirk: [io  0xb100-0xb10f] claimed by PIIX4 SMB
[    0.257120] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[    0.259455] Switching to clocksource kvm-clock
[    0.264258] pnp: PnP ACPI: disabled
[    0.267940] NET: Registered protocol family 2
[    0.269487] IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.272038] TCP established hash table entries: 16384 (order: 6,
262144 bytes)
[    0.274594] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.276946] TCP: Hash tables configured (established 16384 bind 16384)
[    0.279074] TCP reno registered
[    0.280133] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.282036] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.284181] NET: Registered protocol family 1
[    0.285610] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.287547] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.289465] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.291596] Unpacking initramfs...
[    0.300491] Freeing initrd memory: 2788k freed
[    0.303522] platform rtc_cmos: registered platform RTC device (no
PNP device found)
[    0.306665] audit: initializing netlink socket (disabled)
[    0.308479] type=2000 audit(1403165820.308:1): initialized
[    0.333473] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.335986] VFS: Disk quotas dquot_6.5.2
[    0.337345] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.339543] msgmni has been set to 966
[    0.341156] alg: No test for stdrng (krng)
[    0.342531] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 253)
[    0.344947] io scheduler noop registered
[    0.346226] io scheduler deadline registered
[    0.347639] io scheduler cfq registered (default)
[    0.349312] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.351155] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.353315] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.355616] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.380980] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.383515] Linux agpgart interface v0.103
[    0.385083] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    0.388517] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.390134] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.391990] mousedev: PS/2 mouse device common for all mice
[    0.394340] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input0
[    0.397760] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    0.399963] rtc0: alarms up to one day, 114 bytes nvram
[    0.401711] cpuidle: using governor ladder
[    0.403050] cpuidle: using governor menu
[    0.404560] TCP cubic registered
[    0.405674] NET: Registered protocol family 10
[    0.407733] Mobile IPv6
[    0.408585] NET: Registered protocol family 17
[    0.410032] Registering the dns_resolver key type
[    0.411795] registered taskstats version 1
[    0.413635] rtc_cmos rtc_cmos: setting system clock to 2014-06-19
08:16:59 UTC (1403165819)
[    0.416404] Initializing network drop monitor service
[    0.420165] Freeing unused kernel memory: 580k freed
[    0.421996] Write protecting the kernel read-only data: 6144k
[    0.427369] Freeing unused kernel memory: 648k freed
[    0.432955] Freeing unused kernel memory: 688k freed
febootstrap: mounting /proc
febootstrap: uptime: 0.43 0.08
febootstrap: ext2 mini initrd starting up: 3.17
febootstrap: cmdline: panic=1 console=ttyS0 udevtimeout=300
no_timer_check acpi=off printk.time=1 cgroup_disable=memory selinux=0
TERM=xterm guestfs_rescue=1
febootstrap: mounting /sys
febootstrap: internal insmod libcrc32c.ko
insmod: init_module: libcrc32c.ko: Unknown symbol in module
febootstrap: internal insmod crc32c-intel.ko
insmod: init_module: crc32c-intel.ko: No such device
febootstrap: internal insmod crc16.ko
febootstrap: internal insmod crc-itu-t.ko
febootstrap: internal insmod crc32c.ko
febootstrap: internal insmod crc-ccitt.ko
febootstrap: internal insmod crc7.ko
febootstrap: internal insmod crc8.ko
febootstrap: internal insmod crc-t10dif.ko
febootstrap: internal insmod mbcache.ko
febootstrap: internal insmod scsi_mod.ko
[    0.467451] SCSI subsystem initialized
febootstrap: internal insmod cdrom.ko
febootstrap: internal insmod sr_mod.ko
febootstrap: internal insmod libata.ko
febootstrap: internal insmod ata_piix.ko
[    0.479974] scsi0 : ata_piix
[    0.481116] scsi1 : ata_piix
[    0.482141] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0 irq 14
[    0.484378] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8 irq 15
febootstrap: internal insmod scsi_transport_spi.ko
febootstrap: internal insmod sym53c8xx.ko
febootstrap: internal insmod sd_mod.ko
febootstrap: internal insmod rfkill.ko
febootstrap: internal insmod sparse-keymap.ko
febootstrap: internal insmod ideapad-laptop.ko
insmod: init_module: ideapad-laptop.ko: No such device
febootstrap: internal insmod virtio.ko
febootstrap: internal insmod virtio_ring.ko
febootstrap: internal insmod virtio_console.ko
febootstrap: internal insmod rng-core.ko
febootstrap: internal insmod virtio-rng.ko
febootstrap: internal insmod virtio_blk.ko
febootstrap: internal insmod virtio_net.ko
febootstrap: internal insmod virtio_pci.ko
[    0.668830] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 34
[    0.694673] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 35
[    0.710739]  vda: vda1 vda2
[    0.712541] virtio-pci 0000:00:04.0: PCI->APIC IRQ transform: INT A -> IRQ 35
[    0.717278]  vdb: unknown partition table
febootstrap: internal insmod virtio_balloon.ko
febootstrap: internal insmod virtio_scsi.ko
febootstrap: internal insmod jbd2.ko
febootstrap: internal insmod ext4.ko
febootstrap: internal insmod ext2.ko
febootstrap: picked /sys/block/vdb/dev as root device
febootstrap: creating /dev/root as block special 254:16
febootstrap: mounting new root on /root
febootstrap: chroot
Starting /init script ...
Starting the hotplug events dispatcher: udevd.
[    1.040390] udevd[67]: starting version 175
udevd[67]: specified group 'fuse' unknown

udevd[67]: specified group 'disk' unknown

udevd[67]: specified group 'floppy' unknown

udevd[67]: specified group 'cdrom' unknown

udevd[67]: specified group 'tape' unknown

udevd[67]: specified group 'lp' unknown

udevd[67]: specified group 'dialout' unknown

udevd[67]: specified group 'tty' unknown

udevd[67]: specified group 'video' unknown

udevd[67]: specified group 'kmem' unknown

udevd[67]: specified group 'audio' unknown

udevd[67]: specified group 'fuse' unknown

udevd[67]: specified group 'disk' unknown

udevd[67]: specified group 'floppy' unknown

udevd[67]: specified group 'cdrom' unknown

udevd[67]: specified group 'tape' unknown

udevd[67]: specified group 'lp' unknown

udevd[67]: specified group 'dialout' unknown

udevd[67]: specified group 'tty' unknown

udevd[67]: specified group 'video' unknown
Synthesizing the initial hotplug events...
udevd[67]: specified group 'kmem' unknown

udevd[67]: specified group 'audio' unknown

done.
Waiting for /dev to be fully populated...[    1.321725] piix4_smbus
0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
[    1.367670] input: PC Speaker as /devices/platform/pcspkr/input/input1
[    1.467422] Error: Driver 'pcspkr' is already registered, aborting...
done.
[    2.052312] input: ImExPS/2 Generic Explorer Mouse as
/devices/platform/i8042/serio1/input/input2
Cannot find device "eth0"
Cannot find device "eth0"
RTNETLINK answers: No such process
/init: 87: /init: mdadm: not found
[    2.141238] device-mapper: uevent: version 1.0.3
[    2.143426] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
initialised: dm-de...@redhat.com
  Reading all physical volumes.  This may take a while...
  No volume groups found
  No volume groups found

------------------------------------------------------------

Welcome to virt-rescue, the libguestfs rescue shell.

Note: The contents of / are the rescue appliance.
You have to mount the guest's partitions under /sysroot
before you can examine them.

bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
I have no name!@(none):/# ntfsresize /dev/vda2
ntfsresize v2012.1.15AR.5 (libntfs-3g)
Device name        : /dev/vda2
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 32105099776 bytes (32106 MB)
Current device size: 42842521600 bytes (42843 MB)
New volume size    : 42842518016 bytes (42843 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use       : 30114 MB (93.8%)
Collecting resizing constraints ...
WARNING: Every sanity check passed and only the dangerous operations left.
Make sure that important data has been backed up! Power outage or computer
crash may result major data loss!
Are you sure you want to proceed (y/[n])?
OK quitting. NO CHANGES have been made to your NTFS volume.
I have no name!@(none):/# ntfsresize /dev/vda2
ntfsresize v2012.1.15AR.5 (libntfs-3g)
Device name        : /dev/vda2
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 32105099776 bytes (32106 MB)
Current device size: 42842521600 bytes (42843 MB)
New volume size    : 42842518016 bytes (42843 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use       : 30114 MB (93.8%)
Collecting resizing constraints ...
WARNING: Every sanity check passed and only the dangerous operations left.
Make sure that important data has been backed up! Power outage or computer
crash may result major data loss!
Are you sure you want to proceed (y/[n])? y
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device '/dev/vda2'.
I have no name!@(none):/# exit

virt-rescue: Syncing the disk now before exiting ...

/init: 159: /init: reboot: not found
[   72.963475] Kernel panic - not syncing: Attempted to kill init!
[   72.964885] Pid: 1, comm: init Not tainted 3.2.0-4-amd64 #1 Debian
3.2.57-3+deb7u2
[   72.966644] Call Trace:
[   72.967272]  [<ffffffff813492d8>] ? panic+0x95/0x1a2
[   72.968474]  [<ffffffff81049da7>] ? do_exit+0x95/0x713
[   72.969665]  [<ffffffff8104a6a5>] ? do_group_exit+0x74/0x9e
[   72.971255]  [<ffffffff8104a6de>] ? sys_exit_group+0xf/0xf
[   72.973075]  [<ffffffff81354c12>] ? system_call_fastpath+0x16/0x1b
[   72.975198] Rebooting in 1 seconds..


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

  • Bug#752062: Mathieu Malaterre
    • Bug#752062: Mathieu Malaterre

Reply via email to