I still haven't managed to fix the problem/problems, and now I cant mount the partition. I have attached the portion from kern.log that I think is relevant. I also tried btrfsck, but it segfaulted, the log (btrfsck.log) is attached. When I try mounting now, the command doesn't end. Any tips, Thanks, Chris
Jan 18 12:38:55 chris-desktop kernel: [ 1975.129832] btrfs bad tree block start 714438135808 714427781120 Jan 18 12:38:55 chris-desktop kernel: [ 1975.145372] btrfs bad tree block start 714438135808 714427781120 Jan 18 12:38:55 chris-desktop kernel: [ 1975.145502] btrfs bad tree block start 714438135808 714427781120 Jan 18 12:38:55 chris-desktop kernel: [ 1975.145643] btrfs bad tree block start 714438135808 714427781120 Jan 18 12:38:55 chris-desktop kernel: [ 1975.145757] btrfs bad tree block start 714438135808 714427781120 Jan 18 12:38:55 chris-desktop kernel: [ 1975.145872] btrfs bad tree block start 714438135808 714427781120 Jan 18 12:38:55 chris-desktop kernel: [ 1975.145992] btrfs bad tree block start 714438135808 714427781120 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146104] btrfs bad tree block start 714438135808 714427781120 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146122] ------------[ cut here ]------------ Jan 18 12:38:55 chris-desktop kernel: [ 1975.146140] WARNING: at /home/blank/debian/kernel/release/linux-2.6/linux-2.6-3.2~rc7/debian/build/source_amd64_none/fs/btrfs/extent-tree.c:4771 __btrfs_free_extent+0x293/0x5c8 [btrfs]() Jan 18 12:38:55 chris-desktop kernel: [ 1975.146142] Hardware name: MS-7681 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146143] Modules linked in: webcamstudio(O) videodev v4l2_compat_ioctl32 media hmac nls_utf8 cifs fscache pci_stub vboxpci(O) acpi_cpufreq mperf vboxnetadp(O) cpufreq_userspace vboxnetflt(O) cpufreq_stats vboxdrv(O) binfmt_misc cpufreq_conservative parport_pc ppdev lp parport decnet cpufreq_powersave snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi nvidia(P) snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd mxm_wmi soundcore shpchp pci_hotplug evdev psmouse iTCO_wdt wmi processor thermal_sys iTCO_vendor_support i2c_i801 serio_raw pcspkr kvm f71882fg lm78 hwmon_vid i2c_core coretemp loop firewire_sbp2 autofs4 ext4 mbcache jbd2 crc16 btrfs zlib_deflate crc32c libcrc32c sr_mod usbhid hid cdrom sd_mod crc_t10dif ata_generic ata_piix firewire_ohci firewire_core crc_itu_t ahci libahci r8169 mii libata scsi_mod xhci_hcd ehci_hcd button usbcore usb_common [last unloaded: scsi Jan 18 12:38:55 chris-desktop kernel: _wait_scan] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146178] Pid: 32739, comm: mount Tainted: P O 3.2.0-rc7-amd64 #1 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146179] Call Trace: Jan 18 12:38:55 chris-desktop kernel: [ 1975.146184] [<ffffffff810457ed>] ? warn_slowpath_common+0x78/0x8c Jan 18 12:38:55 chris-desktop kernel: [ 1975.146191] [<ffffffffa014ece0>] ? __btrfs_free_extent+0x293/0x5c8 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146198] [<ffffffffa0151fdd>] ? run_clustered_refs+0x672/0x6aa [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146204] [<ffffffffa0151fc9>] ? run_clustered_refs+0x65e/0x6aa [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146211] [<ffffffffa01520de>] ? btrfs_run_delayed_refs+0xc9/0x176 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146214] [<ffffffff810e85e7>] ? kmem_cache_free+0x2d/0x69 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146222] [<ffffffffa015f868>] ? __btrfs_end_transaction+0x90/0x1dd [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146231] [<ffffffffa01673e9>] ? btrfs_evict_inode+0x24b/0x26c [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146235] [<ffffffff81109e1c>] ? evict+0x96/0x148 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146243] [<ffffffffa0167c0b>] ? btrfs_orphan_cleanup+0x309/0x405 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146250] [<ffffffffa015dece>] ? open_ctree+0x124a/0x14bc [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146252] [<ffffffff810e85e7>] ? kmem_cache_free+0x2d/0x69 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146258] [<ffffffffa0144828>] ? btrfs_mount+0x39d/0x516 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146261] [<ffffffff810353ab>] ? should_resched+0x5/0x23 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146263] [<ffffffff810ca055>] ? pcpu_next_pop+0x35/0x41 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146265] [<ffffffff810c9fdd>] ? cpumask_next+0x16/0x18 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146267] [<ffffffff810e9a97>] ? __kmalloc_track_caller+0xfe/0x110 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146270] [<ffffffff810fa110>] ? mount_fs+0x61/0x145 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146272] [<ffffffff8110cf16>] ? vfs_kern_mount+0x5f/0x99 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146275] [<ffffffff8110d300>] ? do_kern_mount+0x49/0xd8 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146277] [<ffffffff8110e971>] ? do_mount+0x660/0x6c6 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146278] [<ffffffff810c724a>] ? memdup_user+0x36/0x5b Jan 18 12:38:55 chris-desktop kernel: [ 1975.146280] [<ffffffff8110ec7f>] ? sys_mount+0x88/0xc3 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146283] [<ffffffff8133e692>] ? system_call_fastpath+0x16/0x1b Jan 18 12:38:55 chris-desktop kernel: [ 1975.146284] ---[ end trace 5c7c99de1f30327a ]--- Jan 18 12:38:55 chris-desktop kernel: [ 1975.146286] btrfs unable to find ref byte nr 714422018048 parent 0 root 2 owner 0 offset 0 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146292] BUG: unable to handle kernel NULL pointer dereference at (null) Jan 18 12:38:55 chris-desktop kernel: [ 1975.146294] IP: [<ffffffffa01784e9>] map_private_extent_buffer+0xf/0xec [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146304] PGD ab419067 PUD ab550067 PMD 0 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146306] Oops: 0000 [#1] SMP Jan 18 12:38:55 chris-desktop kernel: [ 1975.146308] CPU 2 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146309] Modules linked in: webcamstudio(O) videodev v4l2_compat_ioctl32 media hmac nls_utf8 cifs fscache pci_stub vboxpci(O) acpi_cpufreq mperf vboxnetadp(O) cpufreq_userspace vboxnetflt(O) cpufreq_stats vboxdrv(O) binfmt_misc cpufreq_conservative parport_pc ppdev lp parport decnet cpufreq_powersave snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi nvidia(P) snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd mxm_wmi soundcore shpchp pci_hotplug evdev psmouse iTCO_wdt wmi processor thermal_sys iTCO_vendor_support i2c_i801 serio_raw pcspkr kvm f71882fg lm78 hwmon_vid i2c_core coretemp loop firewire_sbp2 autofs4 ext4 mbcache jbd2 crc16 btrfs zlib_deflate crc32c libcrc32c sr_mod usbhid hid cdrom sd_mod crc_t10dif ata_generic ata_piix firewire_ohci firewire_core crc_itu_t ahci libahci r8169 mii libata scsi_mod xhci_hcd ehci_hcd button usbcore usb_common [last unloaded: scsi Jan 18 12:38:55 chris-desktop kernel: _wait_scan] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146340] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146341] Pid: 32739, comm: mount Tainted: P W O 3.2.0-rc7-amd64 #1 MSI MS-7681/P67A-GD65 (MS-7681) Jan 18 12:38:55 chris-desktop kernel: [ 1975.146344] RIP: 0010:[<ffffffffa01784e9>] [<ffffffffa01784e9>] map_private_extent_buffer+0xf/0xec [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146352] RSP: 0018:ffff8800a9a217f8 EFLAGS: 00010292 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146353] RAX: 0000000000000000 RBX: ffff8800a9a21828 RCX: ffff8800a9a21828 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146354] RDX: 0000000000000004 RSI: 000000000000007a RDI: 0000000000000000 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146355] RBP: 0000000000000065 R08: ffff8800a9a21830 R09: ffff8800a9a21838 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146357] R10: 000000000000007a R11: 0000000000000004 R12: 000000000000007a Jan 18 12:38:55 chris-desktop kernel: [ 1975.146358] R13: 0000000000000000 R14: ffff880136999c00 R15: 0000000000000000 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146359] FS: 00007f4d582e37e0(0000) GS:ffff88013f500000(0000) knlGS:0000000000000000 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146361] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b Jan 18 12:38:55 chris-desktop kernel: [ 1975.146362] CR2: 0000000000000000 CR3: 00000000ab476000 CR4: 00000000000406e0 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146364] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146365] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146366] Process mount (pid: 32739, threadinfo ffff8800a9a20000, task ffff8800b081c340) Jan 18 12:38:55 chris-desktop kernel: [ 1975.146367] Stack: Jan 18 12:38:55 chris-desktop kernel: [ 1975.146368] 0000000000000000 ffffffff813339c0 0000000000000000 0000000000000000 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146371] 0000000000000065 ffffffffa0170779 0000000000000000 000000a656dee000 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146373] 0000000000000000 0000000000000002 ffff88006c83cf40 00000000fffffffb Jan 18 12:38:55 chris-desktop kernel: [ 1975.146375] Call Trace: Jan 18 12:38:55 chris-desktop kernel: [ 1975.146377] [<ffffffff813339c0>] ? printk+0x43/0x48 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146387] [<ffffffffa0170779>] ? btrfs_item_size+0x2c/0x61 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146393] [<ffffffffa014ed20>] ? __btrfs_free_extent+0x2d3/0x5c8 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146400] [<ffffffffa0151fdd>] ? run_clustered_refs+0x672/0x6aa [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146407] [<ffffffffa0151fc9>] ? run_clustered_refs+0x65e/0x6aa [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146413] [<ffffffffa01520de>] ? btrfs_run_delayed_refs+0xc9/0x176 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146415] [<ffffffff810e85e7>] ? kmem_cache_free+0x2d/0x69 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146423] [<ffffffffa015f868>] ? __btrfs_end_transaction+0x90/0x1dd [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146431] [<ffffffffa01673e9>] ? btrfs_evict_inode+0x24b/0x26c [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146434] [<ffffffff81109e1c>] ? evict+0x96/0x148 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146441] [<ffffffffa0167c0b>] ? btrfs_orphan_cleanup+0x309/0x405 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146449] [<ffffffffa015dece>] ? open_ctree+0x124a/0x14bc [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146451] [<ffffffff810e85e7>] ? kmem_cache_free+0x2d/0x69 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146457] [<ffffffffa0144828>] ? btrfs_mount+0x39d/0x516 [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146459] [<ffffffff810353ab>] ? should_resched+0x5/0x23 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146461] [<ffffffff810ca055>] ? pcpu_next_pop+0x35/0x41 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146463] [<ffffffff810c9fdd>] ? cpumask_next+0x16/0x18 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146465] [<ffffffff810e9a97>] ? __kmalloc_track_caller+0xfe/0x110 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146467] [<ffffffff810fa110>] ? mount_fs+0x61/0x145 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146469] [<ffffffff8110cf16>] ? vfs_kern_mount+0x5f/0x99 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146472] [<ffffffff8110d300>] ? do_kern_mount+0x49/0xd8 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146474] [<ffffffff8110e971>] ? do_mount+0x660/0x6c6 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146475] [<ffffffff810c724a>] ? memdup_user+0x36/0x5b Jan 18 12:38:55 chris-desktop kernel: [ 1975.146477] [<ffffffff8110ec7f>] ? sys_mount+0x88/0xc3 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146479] [<ffffffff8133e692>] ? system_call_fastpath+0x16/0x1b Jan 18 12:38:55 chris-desktop kernel: [ 1975.146480] Code: 00 00 e8 19 cc ff ff 48 81 c4 88 00 00 00 44 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 55 49 89 d3 49 89 f2 53 48 89 cb 48 83 ec 18 <48> 8b 2f 81 e5 ff 0f 00 00 48 8d 04 2e 48 8d 54 10 ff 48 89 c6 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146498] RIP [<ffffffffa01784e9>] map_private_extent_buffer+0xf/0xec [btrfs] Jan 18 12:38:55 chris-desktop kernel: [ 1975.146506] RSP <ffff8800a9a217f8> Jan 18 12:38:55 chris-desktop kernel: [ 1975.146506] CR2: 0000000000000000 Jan 18 12:38:55 chris-desktop kernel: [ 1975.146508] ---[ end trace 5c7c99de1f30327b ]---
failed to read /dev/sr0: No medium found failed to read /dev/sr0: No medium found Check tree block failed, want=714427781120, have=714438135808 Check tree block failed, want=714427781120, have=714438135808 Check tree block failed, want=714427781120, have=714438135808 Check tree block failed, want=714427781120, have=714438135808 Check tree block failed, want=714427781120, have=714438135808 read block failed check_tree_block Segmentation fault
