Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: "Пламен Петров" <plamen@petrovi.no-ip.info>
To: "'Marc MERLIN'" <marc@merlins.org>
Cc: <linux-btrfs@vger.kernel.org>
Subject: RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?
Date: Thu, 24 Apr 2014 01:20:01 +0300	[thread overview]
Message-ID: <000a01cf5f42$2b180b30$81482190$@petrovi.no-ip.info> (raw)
In-Reply-To: <20140423220312.GK26949@merlins.org>

> -----Original Message-----
> From: Marc MERLIN [mailto:marc@merlins.org]
> Sent: Thursday, April 24, 2014 1:03 AM
> To: Пламен Петров
> Cc: linux-btrfs@vger.kernel.org
> Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or
> newer?
> 
> On Thu, Apr 24, 2014 at 12:54:57AM +0300, Пламен Петров wrote:
> > > It may help to look up what error -38 translates into for that mount error.
> >
> > My searches so far failed to return anything useful to solving this problem.
> 
> Yeah, I searched before you :) this would require reading the kernel source
> to track down -38.
> (not hard, I just didn't do it)(
> 
> > The initrd way will require some reading up on my part - so will have to wait
> for tomorrow.
> 
> On debian, I just have to run this:
> update-initramfs -v -c -k `grep linux-source debian/changelog  | awk '{ print
> $1 }' | sed "s/linux-source-//"`
> 

Well, I'm using a source based distro - ever heard of CRUX - http://crux.nu/ ?

> Then see /etc/initramfs-tools/initramfs.conf
> but the defaults should work
> 
> Running update-grub2 should give you something like this:
>                 echo    'Loading Linux 3.12.7-amd64-i915-preempt-20131107 ...'
>                 linux   /vmlinuz-3.12.7-amd64-i915-preempt-20131107
> root=/dev/mapper/cryptroot ro rootflags=subvol=root
> cryptopts=source=/dev/sda4,keyscript=/sbin/cryptgetpw,discard
> usbcore.autosuspend=1 pcie_aspm=force i915.i915_enable_rc6 =7
> i915.i915_enable_fbc=1 i915.semaphores=1 i915.lvds_downclock=1
> acpi_osi=Linux acpi_backlight=vendor
>                 echo    'Loading initial ramdisk ...'
>                 initrd  /initrd.img-3.12.7-amd64-i915-preempt-20131107
> 

Never got to understand GRUB2 inner workings... so I keep to what works for me - GRUB Legacy here!

> > > You don't have to build a
> > > new kernel or make btrfs a module, just mounting a working initrd
> > > and then trying this again with userland tools will help debug.
> > > (alternatively, rescue boot media with your kernel would work too,
> > > but that's likely more work to build than an initrd)
> >
> > Not more work - just replaced the kernel on the setup/rescue media with
> mine and the result is the same - see attached image file.
> 
> That's not what I meant, I meant a rescue media that boots another
> filesystem than you root filesystem.
> Then from there, you can use normal userland tools to manually mount your
> root filesystem and/or see errors.
> 
> Marc
> --
> "A mouse is a device used to point at the xterm you want to type in" - A.S.R.
> Microsoft is to operating systems ....
>                                       .... what McDonalds is to gourmet cooking Home page:
> http://marc.merlins.org/

I'm trying to boot into the rescue media's environment with my own kernel, but it fails now that my monolithic kernel has no support for initrd whatsoever (or something else missing)!
I guess I’ll leave this testing for tomorrow - getting tired and sleepy now...
Thanks!
---------------------------------
Plamen Petrov


  reply	other threads:[~2014-04-23 22:20 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 17:30 Can anyone boot a system using btrfs root with linux 3.14 or newer? Пламен Петров
2014-04-23 18:33 ` Swâmi Petaramesh
2014-04-23 18:54 ` Marc MERLIN
2014-04-23 19:02   ` Hugo Mills
2014-04-23 19:06   ` Пламен Петров
2014-04-23 19:15     ` Marc MERLIN
2014-04-23 19:37       ` Пламен Петров
2014-04-23 20:58         ` Marc MERLIN
2014-04-23 21:54           ` Пламен Петров
2014-04-23 22:03             ` Marc MERLIN
2014-04-23 22:20               ` Пламен Петров [this message]
2014-04-23 22:40                 ` Chris Murphy
2014-04-23 22:43                   ` Hugo Mills
2014-04-23 22:50                     ` Marc MERLIN
2014-04-23 22:53                       ` Hugo Mills
2014-04-23 22:41               ` Hugo Mills
2014-04-24 12:34           ` Chris Mason
2014-04-24 12:36             ` Chris Mason
2014-04-24 17:08               ` Пламен Петров
2014-04-24 17:19       ` Пламен Петров
2014-04-24 17:33         ` Marc MERLIN
2014-04-24 17:44           ` Пламен Петров
2014-04-24 18:51           ` Пламен Петров
2014-04-24 19:31             ` Marc MERLIN
2014-04-24 20:26               ` Пламен Петров
2014-04-24 21:47                 ` Chris Murphy
2014-04-24 21:06             ` Chris Murphy
2014-04-24 21:23               ` Пламен Петров
     [not found]               ` <000c01cf600b$b01f6cf0$105e46d0$@petrovi.no-ip.info>
2014-04-24 23:07                 ` Marc MERLIN
2014-04-25  0:04                   ` Chris Murphy
2014-04-25  0:08                     ` Chris Mason
2014-04-25  5:04                       ` Пламен Петров
2014-04-25  7:02                       ` Duncan
2014-04-25  5:03                     ` Пламен Петров
2014-04-23 19:06 ` Kai Krakow
2014-04-23 20:25   ` Calvin Walton
2014-04-23 22:34   ` Chris Murphy
2014-04-24  3:23 ` Chris Murphy
2014-04-24  6:27   ` Fajar A. Nugraha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000a01cf5f42$2b180b30$81482190$@petrovi.no-ip.info' \
    --to=plamen@petrovi.no-ip.info \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=marc@merlins.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox