View previous topic :: View next topic |
Author |
Message |
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Tue Oct 21, 2014 10:28 am Post subject: cannot mount ext4 root with user_xattr |
|
|
emerging wireshark tells me I need to set specific capabilities on the binary. IN order to do this, it seems I have to mount my ext4 partition with user_xattr.
In /etc/fstab, I have
Quote: |
#/dev/sdc2
/dev/disk/by-uuid/a3699f8d-c429-49e3-882a-8cd93858cf32 / ext4 rw,noatime,user_xattr,data=ordered,commit=0 0 1
# /dev/sdc5
/dev/disk/by-uuid/3da8d1d7-b223-41e2-866b-7904ef021e7f /mnt/Hermes/Hermes-Data0 ext4 rw,nosuid,nodev,noatime,user_xattr,commit=0 0 2
# /dev/sdc6
/dev/disk/by-uuid/c3aac44e-d065-4e9b-b2ed-a13e3e7cc043 /mnt/Hermes/Hermes-Data1 ext4 rw,noexec,nosuid,nodev,noatime,user_xattr,commit=0 0 2
# /dev/sdd1
/dev/disk/by-uuid/c1add652-874a-44d6-bc16-86ad73f18e20 /mnt/.backupdrive ext4 rw,nosuid,nodev,noatime,user_xattr,errors=continue,barrier=1,data=ordered,commit=0 0 2
|
However, the following is the result after booting:
Quote: | rootfs on / type rootfs (rw)
/dev/sdc2 on / type ext4 (rw,noatime,data=ordered)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,size=200560k,mode=755)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=221254,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
/dev/sdd1 on /mnt/.backupdrive type ext4 (rw,nosuid,nodev,noatime,data=ordered)
/dev/sdc5 on /mnt/Hermes/Hermes-Data0 type ext4 (rw,nosuid,nodev,noatime,user_xattr,commit=0)
/dev/sdc6 on /mnt/Hermes/Hermes-Data1 type ext4 (rw,noexec,nosuid,nodev,noatime,user_xattr,commit=0)
|
As can be seen, the non-root partitions have no problem with user_xattr (so the feature is available in the kernel), whereas the root partition does. Do I need to do something special to enable user_xattr on the root drive ?
dmesg gives me the following:
Quote: | [di okt 21 09:25:05 2014] EXT4-fs (sdc2): mounted filesystem with ordered data mode. Opts: user_xattr
[di okt 21 09:25:12 2014] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
[di okt 21 09:25:16 2014] EXT4-fs (sdc2): re-mounted. Opts: user_xattr,data=ordered,commit=0
[di okt 21 09:25:16 2014] EXT4-fs (sdd1): re-mounted. Opts: user_xattr,errors=continue,barrier=1,data=ordered,commit=0
[di okt 21 09:25:17 2014] EXT4-fs (sdc5): mounted filesystem with ordered data mode. Opts: user_xattr,commit=0
[di okt 21 09:25:17 2014] EXT4-fs (sdc6): mounted filesystem with ordered data mode. Opts: user_xattr,commit=0 |
|
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Oct 21, 2014 7:50 pm Post subject: |
|
|
Try adding rootflags=user_xattr to the kernel boot command line. |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Thu Oct 23, 2014 4:46 pm Post subject: |
|
|
Tried it in grub.cfg --> No effect on the mount. |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Thu Oct 23, 2014 5:26 pm Post subject: |
|
|
Is this ext_attr related?
# tune2fs -l /dev/sda3 |grep ext_attr
Filesystem features: has_journal ext_attr resize_inode dir_index filet.... |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Fri Oct 24, 2014 11:57 am Post subject: |
|
|
## SDC2 is the root device
tune2fs -l /dev/sdc2 |grep attr
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Default mount options: user_xattr acl
## SDC5 is a data partition, and I can mounting with user_xattr succeeds
# tune2fs -l /dev/sdc5 |grep attr
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Default mount options: user_xattr acl
=> As you see, I already tried setting the default mount option as defined in the superblock to use user_xattr, also without success on the root device |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|