What's mounting this partition?
My x86 system, built with Yocto Fido, boots from /dev/sda2 on a USB flash drive. There's another partition on /dev/sda1 which I wish to mount with a systemd mount unit, or with a line in /etc/fstab. But either way is failing because /dev/sda1 is already mounted on /media/sda1. Lennart over at the systemd list suggested it might be udisks doing this, but I don't see any files matching *udisks* anywhere in my file system, or even in my build tree.
An older version of this system, built two years ago with Dylan, doesn't have this problem. Nothing relevant changed in my meta-data, so somewhere else in this gigantic universe something has changed. Does anyone know what bit of software would be responsible for automounting my /dev/sda1 partition, which is not my root file system, and doing so before fstab or systemd mounts are processed?
Also, when /dev/sda2 (my root file system) is mounted, it gets certain default options. Is there a way to modify these options? I'd like to include noatime, to avoid needless writes to my flash drive.
Signature · 2 lines
Ciao, Paul D. DeRocco Paul mailto:[email protected]
Quoted 11 lines · Paul D. DeRocco
My x86 system, built with Yocto Fido, boots from
/dev/sda2on a USB flash drive. There's another partition on/dev/sda1which I wish to mount with a systemd mount unit, or with a line in/etc/fstab. But either way is failing because/dev/sda1is already mounted on /media/sda1. Lennart over at the systemd list suggested it might be udisks doing this, but I don't see any files matching *udisks* anywhere in my file system, or even in my build tree.
Quoted 6 lines
An older version of this system, built two years ago with Dylan, doesn't have this problem. Nothing relevant changed in my meta-data, so somewhere else in this gigantic universe something has changed. Does anyone know what bit of software would be responsible for automounting my
/dev/sda1partition, which is not my root file system, and doing so before fstab or systemd mounts are processed?
are you installing udev-extraconf into image? IIRC that was doing it in my cases some time ago.
Quoted 15 lines
Also, when
/dev/sda2(my root file system) is mounted, it gets certain default options. Is there a way to modify these options? I'd like to include noatime, to avoid needless writes to my flash drive.--
Ciao, Paul D. DeRocco
Paul mailto:[email protected]--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 4 lines
From: Khem Raj [mailto:[email protected]]
are you installing udev-extraconf into image? IIRC that was doing it in my cases some time ago.
That adds some rules to /etc/udev/rules.d, including automounting. I had that in there for a day or so, because I also need to access an external flash drive sometimes, but it had some insoluble issues, so I took it out again. So none of those rules are present now, nor is the mount.sh script. There are a bunch more rules in /lib/udev/rules.d, but none have anything to do with mounting, as far as I can see.
I wish there was a way I could see this mysterious mounting happen. Nothing shows up in dmesg or in journalctl.
Signature · 2 lines
Ciao, Paul D. DeRocco Paul mailto:[email protected]
If you have a sda1 drive, you can do:
udevadm test /sys/class/block/sda1
to get debug info.
________________________________________
From: [email protected] <[email protected]> on behalf of Paul D. DeRocco <[email protected]>
Sent: Sunday, September 27, 2015 2:52 AM
To: 'Khem Raj'
Cc: [email protected]
Subject: Re: [yocto] What's mounting this partition?
Quoted 4 lines
From: Khem Raj [mailto:[email protected]]
are you installing udev-extraconf into image? IIRC that was doing it in my cases some time ago.
That adds some rules to /etc/udev/rules.d, including automounting. I had that in there for a day or so, because I also need to access an external flash drive sometimes, but it had some insoluble issues, so I took it out again. So none of those rules are present now, nor is the mount.sh script. There are a bunch more rules in /lib/udev/rules.d, but none have anything to do with mounting, as far as I can see.
I wish there was a way I could see this mysterious mounting happen. Nothing shows up in dmesg or in journalctl.
--
Ciao, Paul D. DeRocco
Paul mailto:[email protected]
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: What's mounting this partition? (answered)
In reply to Paul D. DeRoccoQuoted 8 lines
From: Paul D. DeRocco
My x86 system, built with Yocto Fido, boots from
/dev/sda2on a USB flash drive. There's another partition on/dev/sda1which I wish to mount with a systemd mount unit, or with a line in/etc/fstab. But either way is failing because/dev/sda1is already mounted on /media/sda1.
Quoted 8 lines
Does anyone know what bit of software would be responsible for automounting my
/dev/sda1partition, which is not my root file system, and doing so before fstab or systemd mounts are processed?Also, when
/dev/sda2(my root file system) is mounted, it gets certain default options. Is there a way to modify these options? I'd like to include noatime, to avoid needless writes to my flash drive.
Well, it's my initramfs that's attaching everything. Although I left udef-extraconf out of my build, it's included in the initramfs, and the automounts that it does survive the switch_root.
My bottom line is that I need to use different mount options. Rather than try to prevent my initramfs from automounting, I think I'll just supply my own replacement mount.sh script, which uses the options I want, and adapt the rest of my system to use the default mount locations /media/sda1, etc.
Signature · 2 lines
Ciao, Paul D. DeRocco Paul mailto:[email protected]