You are not logged in.
Hello!
I have a macbook 8.2 running arch linux and mac os x. To make transitions easy between both os's, and because space is premium on ssds, i mount my arch /home folder to my mac os home folder.
Here is my fstab:
PARTUUID=78c932c3-d8f0-450b-b370-686ebe2abdc2 / ext4 discard,relatime,data=ordered 0 1
/dev/sda2 /media/mac hfsplus relatime 0 0
/media/mac/Users/silverone /home/silverone none bind 0 0I've noticed that sometimes disks are fchecked on boot, sometimes only the mac os x drive is mounted read only because it was incorrectly unmounted and i have to check it my self. Recently though, this has corrupted my mac os drive.
sudo fsck.hfsplus /dev/sda2
** /dev/sda2
** Checking HFS Plus volume.
Invalid extent entry
(8, 0)
** Volume check failed.i also happen to have this Damaged Files folder on my mac os partition : http://d.pr/i/fr5 one of them CurrentSession seems to be from chromium.
I also found this thread: Unmounting Filesystem Failing i cannot follow the same debugging route because it's an old thread based on rc.d. I too have laptop mode tools installed but without hdparm.
Last edited by SilverOne (2013-09-16 23:56:19)
Best Regards,
SilverOne
Offline
If you are using an hfs+ filesystem, I hope you have turned off the journaling. If not, then filesystem corruption is a known consequence using hfsprogs.
You might want to try one of Paragon's tools to make things more reliable. They have the (free but proprietary) ufsd module which is capable of reading/writing both NTFS and HFS+ apparently. On the OSX side of things, there is the Paragon ExtFS driver as well… at least I think that one is for OSX (also free but proprietary).
I think the best way to handle this though would be to not use a shared /home between OSX and Linux. Instead, just put the most space filling data on a filesystem both OSes can read and write to, and then mount it as something like /data and symlink or bind mount into your $HOME. If you really want decent performance out of a setup like this though, and want to avoid the limitations of FAT32, then you are likely going to have to use one of those Paragon tools anyway, as ntfs-3g, although reliable, is still pretty slow since it is a userspace driver (the same applies for OSX's ntfs-3g).
Offline
Hey there WonderWoofy,
Journaling is indeed off because the native drivers do not support write with journaling on. I'll see if the Paragon's Tools driver makes it better!
is it weird though because it feels like arch shuts down without un mounting the drive. It does shutdown pretty quick.
Best Regards,
SilverOne
Offline
No, that is just systemd's parallelization of the procedure that makes it fast. If it weren't able to unmount your /home, you would know, as it would delay the shutdown. There would also be an indication of this in the journal as well.
Offline
Hello,
i checked the journal, there's nothing there, the last lines are :
Sep 10 05:32:50 silver-arch gnome-session[2088]: (gnome-settings-daemon:2128): wacom-plugin-CRITICAL **: gsd_wacom_device_get_device_type: assertion `GSD_IS_WACOM_DEVICE (device)' faile
Sep 10 05:32:50 silver-arch gnome-session[2088]: PolicyKit daemon disconnected from the bus.
Sep 10 05:32:50 silver-arch gnome-session[2088]: We are no longer a registered authentication agent.
Sep 10 05:32:50 silver-arch gnome-session[2088]: Window manager warning: Log level 8: gtk_tree_path_get_depth: assertion `path != NULL' failed
Sep 10 05:32:50 silver-arch gnome-session[2088]: Window manager warning: Log level 8: gtk_tree_path_get_depth: assertion `path != NULL' failed
-- Reboot --
Sep 10 05:50:03 silver-arch /etc/gdm/Xsession[2251]: /etc/gdm/Xsession: Beginning session setup...
Sep 10 05:50:03 silver-arch /etc/gdm/Xsession[2251]: localuser:silverone being added to access control list
Sep 10 05:50:03 silver-arch /etc/gdm/Xsession[2251]: /etc/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- gnome-session
Sep 10 05:50:03 silver-arch gnome-session[2251]: gnome-session[2251]: WARNING: IceLockAuthFile failed: Read-only file system
Sep 10 05:50:03 silver-arch gnome-session[2251]: WARNING: IceLockAuthFile failed: Read-only file systemOh and the Paragons thinghy won't install, it seems pretty outdated.
maybe it would be best to link only the folders inside home and not home itself.
Best Regards,
SilverOne
Offline
Get the course from Paragon's site. Then download either the ufsd-module or ufsd-dkms tarball from the AUR. Stick the Paragon file in the same dir as the PKGBUILD and patches. Build with makepkg as usual.
Also, that is not the system journal. That is your user journal. The beginning of the journal probably should have told you as much. In order to see the full journal, you either need to run journalctl as root or put your user in the systemd-journal group.
Offline
I really think trying to share a single home directory between two different OSs is asking for trouble. If they were completely different, it might work better. But they are going to be trying to use some of the same dot files in your home directory and that is going to screw things up. (How much of a problem this is will depend partly on how you use the system but, for example, I personally would want different settings and environment for bash or any other shell on OS X than I use on Linux.)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Though I fully agree with you cfr, I think that your example can be refuted. It is pretty simple to have one shell config file that sets different things depending on what OS the system is booting to. I think that difference is pretty easily detected.
But OP, I want to suggest again that you should just have both of you home directories on either separate partitions or connected to the root partitions, then have a common data partition. This just seems to much more sane than what you are trying to do. It is almost gauranteed that you are going to run into issues down the road.
Also, I think the more sustainable solution would be to make the shared filesystem (no matter how you decide to split things up) as ext4. Then use the Paragon ExtFS driver on OSX. That way, you are running the cross system filesystem compatibility software on the install that changes far less. It is pretty easy to imagine that a future kernel update will cause breakage of the ufsd module on Arch since out packages are constantly changing.
Offline
True. It isn't the best example. I just wasn't sure what OS X might or might not be using right now (but was pretty sure it would still use a shell).
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Hello all !
thank you for being so attentive WonderWoofy! I inspected the journalctl but didn't find anything that caught the eye.
cfr, thank on your input as well! I ran this crazy setup for almost a week and besides the issue listed here, there seemed to be no dire consequences except sharing bash history. Mac OS X tends to keep things in the ~/Library folder while arch seems to set hidden files on ~/.
I kinda wanted to avoid extra and proprietary drivers because of support. For now i linked the /Documents /Downloads etc folders on fstab. I' haven't had a single issue since then.
For now mac os x is just a safety measure. Hopefully in the future i'll feel comfortable enough to pass os x into an external.
Best Regards,
SilverOne
Offline
But you are using an extra diver anyway by using hfsprogs, right?
It would seem to me that if your ultimate goal is to rid yourself of OSX on the machine, that it would make a whole hell of a lot more sense to use ext4 for your /home and then use the Paragon ExtFS driver in OSX. As I said earlier, I think this method would be much more stable simply because the OS itself changes a lot less, and functionality and compatibility is something that is going to affect far far more people.
If it were me, I would be a hell of a lot more okay with losing access to $HOME on OSX than I would on Linux. But that is just me…
Edit: BTW, I was able to get away with a super tiny OSX partition when I was still using a Mac. I kept it around for the longest time simply because it provided the userspace tools to deal with the machine itself (such as the bless utility). By using the filesystem compression introduced in 10.6, I was able to get that mofo down to some 4GB or something ridiculous. So I think I had something like an 8GB partition for OSX. Of course, if you have any expectation of having large applications like iLife or Office on there, then you would have to have more. But you might even be able to get away with simply leaving the rescue partition, as that provides you with a working terminal and all the commands.
Last edited by WonderWoofy (2013-09-12 04:14:08)
Offline
Hello again!
You make a good argument ! I might shrink my os x partition and use gparted to enlarge archs.
hfs was working even before i installed hfsprogs, though it needs journaling off to write. Did i install a different driver when i downloaded hfsprogs from the aur ?
I do need hfsprogs to run fsck.hfsplus though.
EDIT:
Yeah the recovery partition is only 600MB. These days USB drives are cheap enough that keeping os x on one is worth it since I only have 120GB disk space.
Last edited by SilverOne (2013-09-12 04:19:44)
Best Regards,
SilverOne
Offline
hfs was working even before i installed hfsprogs, though it needs journaling off to write. Did i install a different driver when i downloaded hfsprogs from the aur ?
No, but you are relying on userspace tools that are not officially supported. If you were using something like Debian, where they are provided as an official package, and where the system stayed a bit more static, then I would say you would be pretty okay. But you are already making the sacrifice of disabling journaling, so it just seems as though you are just stacking one risk on top of another.
Offline
I don't understand what you mean when you say that you "linked the /Documents /Downloads etc folders on fstab". fstab is concerned with mounting file systems - nothing to do with directories (assuming that's what you mean by "folders").
If you are sharing home, don't get too enthusiastic about the command line in OS X or you will end up in trouble. My OS X home contained a whole bunch of stuff which would have conflicted if I'd shared the home with Linux.
I tend to agree with WonderWoofy here - especially if you are aiming to move away from OS X, I'd think you would be better served putting home on ext4. I don't know about the drivers available, but I would definitely do this if it allowed me to use journalling.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I don't understand what you mean when you say that you "linked the /Documents /Downloads etc folders on fstab". fstab is concerned with mounting file systems - nothing to do with directories (assuming that's what you mean by "folders").
Since it does not seem as though the OP is crazy about the idea of creating numerous partitions, I would have to guess that this would mean that the $HOME from OSX is mounted somewhere, and then the mentioned directories are bind mounted to $HOME/D{irectories,downloads}. This is the only way I can think of that would involve the fstab and "folders" directly.
But I am not sure if this is what is actually being expressed and am similarly confused here as well.
I tend to agree with WonderWoofy here - especially if you are aiming to move away from OS X, I'd think you would be better served putting home on ext4. I don't know about the drivers available, but I would definitely do this if it allowed me to use journalling.
Yeah, that is what I was thinking. Journaling has become a standard in modern filesystems for a reason. So the option that a) allows you to keep journaling turned on in all cases, and b) lets you reply primarily on the Linux filesystems which you hope to move towards, seems like the much more sane way to go.
I used to use the Paragon ExtFS driver in OSX, and now I just looked and it costs money. I could have sworn that it was free (as in beer) when I used it before. But that was some time ago, so I may have paid for it… or I may have found it… elsewhere. In any case, I believe that there is a Fuse version that allows for R/W ext4 support, though it would obviously come with the speed limitations imposed on userspace filesystems.
In any case, I remember the ExtFS driver working quite well, and being incredibly stable. I never ran any speed comparisons, for at the time I must have been on spinning disks still. But I also have vague memories of it not being noticeably hindered in its use.
Offline
WonderWoofy is correct in his assumption.
Here is the crazy op fstab:
PARTUUID=78c932c3-d8f0-450b-b370-686ebe2abdc2 / ext4 discard,relatime,data=ordered 0 1
UUID=956c7127-1bde-348b-9fb5-1b79cd05a4ad /media/mac hfsplus relatime 0 0
/media/mac/Users/silverone/Desktop /home/silverone/Desktop none bind 0 0
/media/mac/Users/silverone/Documents /home/silverone/Documents none bind 0 0
... it has afew more entriesThank you both for your input i'll just shrink the mac os x partition and grow this one.
I suppose it is safe to shrink mac os partition in diskutil then enlarge archs in gparted ? Hugh, i hope that hidden partition keeps close to mac os, it's always after it.
Last edited by SilverOne (2013-09-13 03:07:16)
Best Regards,
SilverOne
Offline
The thing is, if you shrink the OSX partition you are moving the Linux partition to the "left" (if you were to assume that the left is the start of the disk and the right is the end). Although gparted makes this seem like it is no big deal, it really is pretty dangerous. There is no safe way to make this work with normal partitions.
If you are moving things far enough over (shrinking the OSX partition enough) to fit your linux / into the newly created space, I would probably make a new partition out of the new space, then rsync everything over (or tar), then delete the old / and expand into it. But I am also totally comfortable doing such things.
As far as shrinking the OSX filesystem, I think you have to use diskutil as there is no linux tool to do this… I don't think. Even if there was, I would probabyl still use diskutil. OSX will let you shrink the partition of a running filesystem, and it does it quite stably from my memory.
Offline
Done, i shrank it via live re-size on OSX. and then just live booted fedora, installed gparted and re-sized the linux partition.
Everything went smoothly!
marking as solved.
Best Regards,
SilverOne
Offline