Overclock.net banner

Status
Not open for further replies.
1 - 20 of 45 Posts

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #1
I used the btrfs-convert tool on my ext4 volume and while the conversion was a success, now ArchLinux mounts root as read only. (I know the file system is fine as I can remount the file system once the OS has started)<br><br>
I'm using syslinux, but I'm pretty sure it's not the boot menu that's the issue. I think it's a Linux config file I've missed somewhere; likely a really obvious and dumb mistake that I've over looked.<br><br>
I believe the fstab is correct (and I have changed a few settings in there just in case). And I've added btrfs to mkinitcpio.<br><br>
Anyone else have any suggestions?
 

·
 
Joined
·
29,532 Posts
Post fstab (cat /etc/fstab) and post the last 100 lines of dmesg (dmesg | tail -n 100) after boot.
 

·
Registered
Joined
·
560 Posts
You used a file system conversion tool; you are braver than me <img alt="biggrin.gif" class="bbcode_smiley" src="http://files.overclock.net/images/smilies/biggrin.gif">
 

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #5
<div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>particleman72</strong> <a href="/t/1373950/btrfs-root-booting-read-only#post_19580486"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
can you mount rw after boot?<br><br>
# mount -o remount,rw /;</div>
</div>
I did already say I could <img alt="tongue.gif" class="bbcode_smiley" src="http://files.overclock.net/images/smilies/tongue.gif"><br><div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>gonX</strong> <a href="/t/1373950/btrfs-root-booting-read-only#post_19580634"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
Post fstab (cat /etc/fstab) and post the last 100 lines of dmesg (dmesg | tail -n 100) after boot.</div>
</div>
The last 100 lines wouldn't be of much use as that's all just wifi and other such crap. There is this further up though:
<div class="bbcode_code">
<div class="bbcode_code_head">Code:</div>
<pre>
<code>$ dmesg | egrep -i "(btrfs|sda)"
[ 0.000000] Command line: root=/dev/sda1 ro initrd=../initramfs-linux.img BOOT_IMAGE=../vmlinuz-linux
[ 0.000000] Kernel command line: root=/dev/sda1 ro initrd=../initramfs-linux.img BOOT_IMAGE=../vmlinuz-linux
[ 1.412671] sd 0:0:0:0: [sda] 125045424 512-byte logical blocks: (64.0 GB/59.6 GiB)
[ 1.412745] sd 0:0:0:0: [sda] Write Protect is off
[ 1.412749] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.412782] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.414982] sda: sda1
[ 1.415445] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.487440] Btrfs loaded
[ 1.488171] device fsid b9a11d9a-7db6-46c3-b2f4-9b651f3e108b devid 1 transid 395 /dev/sda1
[ 1.806315] device fsid b9a11d9a-7db6-46c3-b2f4-9b651f3e108b devid 1 transid 395 /dev/sda1
[ 2.245862] device fsid b9a11d9a-7db6-46c3-b2f4-9b651f3e108b devid 1 transid 395 /dev/sda1
[ 2.460893] device fsid b9a11d9a-7db6-46c3-b2f4-9b651f3e108b devid 1 transid 395 /dev/sda1
[ 2.461807] btrfs: disk space caching is enabled
[ 2.463332] btrfs: mismatching generation and generation_v2 found in root item. This root was probably mounted with an older kernel. Resetting all new fields.
[ 2.463794] btrfs: mismatching generation and generation_v2 found in root item. This root was probably mounted with an older kernel. Resetting all new fields.
[ 2.480639] Btrfs detected SSD devices, enabling SSD mode
[ 2.481025] btrfs: mismatching generation and generation_v2 found in root item. This root was probably mounted with an older kernel. Resetting all new fields.
[ 5.786825] device fsid b9a11d9a-7db6-46c3-b2f4-9b651f3e108b devid 1 transid 397 /dev/sda1
[ 5.787612] btrfs: disk space caching is enabled
[ 5.809776] Btrfs detected SSD devices, enabling SSD mode
[ 5.809797] btrfs: mismatching generation and generation_v2 found in root item. This root was probably mounted with an older kernel. Resetting all new fields.
[ 6.465721] device fsid b9a11d9a-7db6-46c3-b2f4-9b651f3e108b devid 1 transid 397 /dev/sda1
[ 25.171509] btrfs: disk space caching is enabled</code>
</pre></div>
<div class="bbcode_code">
<div class="bbcode_code_head">Code:</div>
<pre>
<code>#UUID=58a3c64f-ba75-4f44-bad2-a24b05331b6a / btrfs defaults,compress,ssd,discard 0 0
UUID=/dev/sda1 / btrfs defaults,noatime,discard,ssd,compress 0 0</code>
</pre></div>
I've just noticed that I've garbled up the fstab (used a block device against UUID), so going to fix that and reboot<br><br>
[edit]<br>
yeah that fixed it. Dumb mistake. I can't believe I missed that yesterday. Still, I did suspect it was something stupid I'd overlooked.<br><br>
Thanks for your help<br><div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>CaptainBlame</strong> <a href="/t/1373950/btrfs-root-booting-read-only#post_19581785"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
You used a file system conversion tool; you are braver than me <img alt="biggrin.gif" class="bbcode_smiley" src="http://files.overclock.net/images/smilies/biggrin.gif"></div>
</div>
I know what you mean. I'm hoping to convert my work desktop to Btrfs to take advantage of snapshotting, however I thought I'd better check the conversion tool at home (where it matters less) first. Plus I wanted to get the feel of just how mature Btrfs is before committing to it.<br><br>
Honestly though, even just with these little tests (and I'm not in any way blaming the booting in read only on Btrfs), I'm largely unimpressed. It's pretty obvious from using it that it's designed to be a copy of ZFS, yet the CLI tools aren't near as clean and user friendly. I honestly do wish Oracle (or whoever's decision it was) just wrote new ZFS drivers for Linux instead of trying to reinvent a crappier version of ZFS.
 

·
 
Joined
·
29,532 Posts
Good to hear you fixed it. You don't need to use the 'defaults' option in the fstab if you are specifying something else.
 

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #7
<div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>gonX</strong> <a href="/t/1373950/btrfs-root-booting-read-only#post_19582447"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
Good to hear you fixed it. You don't need to use the 'defaults' option in the fstab if you are specifying something else.</div>
</div>
<br>
This is what I thought too, but every single article I found, when googling the problem, did put defaults + other options:<br>
<a href="https://btrfs.wiki.kernel.org/index.php/SysadminGuide" target="_blank">https://btrfs.wiki.kernel.org/index.php/SysadminGuide</a><br>
<a href="https://wiki.archlinux.org/index.php/Installing_on_Btrfs_root#.2Fetc.2Ffstab" target="_blank">https://wiki.archlinux.org/index.php/Installing_on_Btrfs_root#.2Fetc.2Ffstab</a><br>
<a href="http://tincman.wordpress.com/2011/01/20/installing-arch-linux-onto-a-gpt-partitioned-btrfs-root-ssd-on-a-legacy-bios-system/" target="_blank">http://tincman.wordpress.com/2011/01/20/installing-arch-linux-onto-a-gpt-partitioned-btrfs-root-ssd-on-a-legacy-bios-system/</a>
 

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #8
Btrfs is an abomination.<br><br>
Every single thing that ZFS got right, btrfs completely cocked up. There isn't even a simple was to roll back snapshots. Its just the worst.
 

·
Premium Member
Joined
·
8,564 Posts
<div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>Plan9</strong> <a href="/t/1373950/btrfs-root-booting-read-only#post_19582812"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
Btrfs is an abomination.<br><br>
Every single thing that ZFS got right, btrfs completely cocked up. There isn't even a simple was to roll back snapshots. Its just the worst.</div>
</div>
<br>
Wait so snapshots don't work or what? I'm totally confused on Btrfs as when I first used it back in 2010 with MeeGo it was faster than it is now...it also seemed to have less features working. So what's the point in going to btrfs (IIRC isn't it supposed to be the ext4 replacement in the future?) because I'm trying it on one Linux install and it has atrocious slow boots now and shutdowns.
 

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #10
<div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>Rookie1337</strong> <a href="/t/1373950/btrfs-root-booting-read-only#post_19584000"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
Wait so snapshots don't work or what? I'm totally confused on Btrfs as when I first used it back in 2010 with MeeGo it was faster than it is now...it also seemed to have less features working. So what's the point in going to btrfs (IIRC isn't it supposed to be the ext4 replacement in the future?) because I'm trying it on one Linux install and it has atrocious slow boots now and shutdowns.</div>
</div>
<br>
It's snapshots fine. It doesn't have any in built rollback feature (or at least none that I can fine) so you're basically expected to rsync your data manually (as one guide suggests)
 

·
Registered
Joined
·
3,516 Posts
^ snapshoting works, and so do most features found in ZFS, but not nearly as user-friendly or as clean as they do in ZFS.
 

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #12
<div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>jrl1357</strong> <a href="/t/1373950/btrfs-root-booting-read-only/10#post_19584022"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
^ snapshoting works, and so do most features found in ZFS, but not nearly as user-friendly or as clean as they do in ZFS.</div>
</div>
<br>
how do you rollback a snapshot of root? I can't find a single sane method of doing so.
 

·
Registered
Joined
·
3,516 Posts
Never said it was clean, but if you back up your kernel and initramfs you can snap/roll like any other volume... Although theres a package moving in the AUR to fix that.
 

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #14
<div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>jrl1357</strong> <a href="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19584279"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
Never said it was clean, but if you back up your kernel and initramfs you can snap/roll like any other volume... Although theres a package moving in the AUR to fix that.</div>
</div>
<br>
It's the kernel i wanted to rollback.<br><br><br>
Without wanting to start a flamewar, I think I've been falling out of love for Linux in the last few months - and this is just another nudge pushing me towards running FreeBSD. I'm definitely having a crisis of faith lately <img alt="frown.gif" class="bbcode_smiley" src="http://files.overclock.net/images/smilies/frown.gif">
 

·
Registered
Joined
·
3,516 Posts
Why do you care about the kernel? Just chroot if you have a problem. If your compiling your kernel you could just keep the source.<br><br>
But I agree, the latest changes from systemd to whole mir thing is a big negitive to most GNU/Linux distros. I havn't had time to get my FreeBSD install fully up because of school work, but I plan to make it my main install. As a thought though, have you considered trying a GNU/kFreeBSD (I think there is one based on arch now, if unstable) ?
 

·
Premium Member
Joined
·
10,324 Posts
<div class="quote-container"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>Plan9</strong> <a href="/t/1373950/solved-btrfs-root-booting-read-only/0_30#post_19584397"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
It's the kernel i wanted to rollback.<br><br><br>
Without wanting to start a flamewar, I think I've been falling out of love for Linux in the last few months - and this is just another nudge pushing me towards running FreeBSD. I'm definitely having a crisis of faith lately <img alt="frown.gif" class="bbcode_smiley" src="http://files.overclock.net/images/smilies/frown.gif"></div>
</div>
<br>
Don't worry about that crisis, I've been mostly using OpenBSD lately because of some of the way things have been going in Linux generally and in Arch ( the general **** attitude by the dev team and forum, about some of the packages being forced onto us ).
 

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #17
<div class="quote-container" data-huddler-embed="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19584616" data-huddler-embed-placeholder="false"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>jrl1357</strong> <a href="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19584616"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
Why do you care about the kernel? Just chroot if you have a problem. If your compiling your kernel you could just keep the source.</div>
</div>
because the nvidia drivers and what not are tied into the kernel and ABI versions<br><div class="quote-container" data-huddler-embed="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19584616" data-huddler-embed-placeholder="false"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>jrl1357</strong> <a href="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19584616"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
But I agree, the latest changes from systemd to whole mir thing is a big negitive to most GNU/Linux distros. I havn't had time to get my FreeBSD install fully up because of school work, but I plan to make it my main install. As a thought though, have you considered trying a GNU/kFreeBSD (I think there is one based on arch now, if unstable) ?</div>
</div>
I like debian, but i couldnt run that as my desktop and ArchBSD (the Arch / FreeBSD hybrid you mentioned) isn't really mature enough to be used for anything serious.
 

·
Premium Member
Joined
·
8,040 Posts
Discussion Starter #18
<div class="quote-container" data-huddler-embed="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19585498" data-huddler-embed-placeholder="false"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>Shrak</strong> <a href="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19585498"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
Don't worry about that crisis, I've been mostly using OpenBSD lately because of some of the way things have been going in Linux generally and in Arch ( the general **** attitude by the dev team and forum, about some of the packages being forced onto us ).</div>
</div>
I hear you on that.<img alt="thumb.gif" class="bbcode_smiley" src="http://files.overclock.net/images/smilies/thumb.gif">
 

·
Premium Member
Joined
·
8,564 Posts
<div class="quote-container" data-huddler-embed="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19586576" data-huddler-embed-placeholder="false"><span>Quote:</span>
<div class="quote-block">Originally Posted by <strong>Plan9</strong> <a href="/t/1373950/solved-btrfs-root-booting-read-only/10#post_19586576"><img alt="View Post" class="inlineimg" src="/img/forum/go_quote.gif"></a><br><br>
I hear you on that.<img alt="thumb.gif" class="bbcode_smiley" src="http://files.overclock.net/images/smilies/thumb.gif"></div>
</div>
<br>
Kind of OT but why must you guys leave. <img alt="sad-smiley-002.gif" class="bbcode_smiley" src="http://files.overclock.net/images/smilies/sad-smiley-002.gif"> If there aren't the admin orientated users like you around all there's going to be is the general user with a very limited understanding of Linux (AKA me) and we'll end up with a dumb terminal OS like droid.
 

·
Registered
Joined
·
2,667 Posts
<div class="quote-container"><span>Quote:</span>
<div class="quote-block">I like debian, but i couldnt run that as my desktop</div>
</div>
Out of curiosity, why?
 
1 - 20 of 45 Posts
Status
Not open for further replies.
Top