Re: /etc/fstab rootfs options vs grub2 rootflags cmdline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Niccolò Belli posted on Wed, 04 May 2016 15:52:39 +0200 as excerpted:

> Thanks,
> Now my fstab option are
> rw,noatime,compress=lzo,discard,autodefrag,subvolid=257,subvol=/@
> I tried to add rootflags=noatime,compress=lzo,discard,autodefrag to
> GRUB_CMDLINE_LINUX in /etc/default/grub as you suggested but my system
> didn't manage to boot, probably because grub automatically adds
> rootflags=subvol=@ and only a single rootflags can be taken into
> account.
> Do you have any suggestion?

What about the subvol=/@?

I think if you specifically add your own rootflags, grub won't add its 
own, and you said

noatime,compress=lzo,discard,autodefrag

but left off the subvol=/@ (unless you simply forgot to put it in the 
posting), and without that, it would have mounted the btrfs default 
subvolume, which would be (the filesystem's) / (subvolid=5) if you 
haven't changed it, and would have failed to boot as a result.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux