DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th May 2020
dchmelik's Avatar
dchmelik dchmelik is offline
Real Name: David Chmelik
Port Guard
 
Join Date: Oct 2017
Location: USA
Posts: 28
Question FreeBSD Unix & SlackwareGNU/Linux shared ZFS /home & swap?

Originally I tried asking this on news://comp.unix.bsd.misc , news://list.freebsd.questions , news://list.freebsd-questions , news://mailing.freebsd.questions , news://alt.os.linux.slackware.

I dual-boot FreeBSD Unix & Slackware GNU/Linux (on solid state drive, SSD) and would like to share ZFS /home (separate hard disc drive, HDD,) and, on secondary/laptop PC, same except one drive w/shared ZFS swap & /home. I only need a safely-writable journalling fileystem, so wish it was as simple as newfs/mkfs.

I did once in '10s but was extremely difficult (almost like an operating system, OS its own) and forgot everything. Well, I know I need to dump list of option sets ZFS packages support, then can only use options in set intersection... when I did that, despite using same options (I tried on FreeBSD first) it only worked to make it on Slackware first then add in FreeBSD: not vice-versa.

People in main Slackware forums (Usenet, LinuxQuestions.org) just change topic or say read OpenZFS documentation (only documents newer, non-Unix-like GNU/Linux) which is a different package than ZFSOnLinux. I have no idea there may be differences or how to do this.

A Slackware site does have tutorial/HOWTO to use QEMU emulator/virtual-machine (emu/VM) to run Slackware and setup ZFS /: much more complicated than I want.

Of course, I probably should hear advice what options to use (no compression, nor snapshots) but wish there were simpler tutorials/HOWTOs, just for /home, and in case of dual-boot, and other text for swap,

FreeBSD was first other OS I used, in college (freshman,) then Slackware/etc. desktops that year (too difficult a while) but NetBSD in early-to-mid '00s (while trying to transition from DOS/Win9x)... soon because NetBSD missed drivers, I switched back to Slackware, but I no longer use that hardware. Of course, I installed/tried all oeprating system ( classic *BSD (and some other GNU/Linux) over years (variously for PC or server) but now have come to firstly like FreeBSD. However, after 15+ years of Slackware usage, I maintain 10+ unoffical packages, and may not want to stop. I do, however, want to transition back to FreeBSD.

While I wish any/all *BSDs would create some .ISOs as large as Slackware--so 'make' would almost never halt then you install development dependencies/tools/languages (they're mostly all there)--having to maybe often install those would be small price to pay for cleaner/stable kernel even that was largely planned ahead of time (not GNU/Linux 'make up as you go along') and similarly-designed 'userland' code.

I don't know why some years ago FreeBSD added XFS then removed (really to attract Linux users/programmers? I was a *BSD user/programmer first and regularly, but now a few GNU/Linux have a few other things.) As for Linux kernel, they keep/add support for devices/systems almost no one uses (like building the kernel, everyone sees option for Google employees only, for secret company-built servers) but even since 1990s, they don't have safe UFS writing support. If only that or EXT4 had safe writing support on the other, I wouldn't need to struggle through ZFS... but basically, that's all there is, right? (NTFS isn't safe option.)

I hope some people did something such as that and could document. If NetBSD or OpenBSD use same and it'd work the same, that'd be fine... I know FreeBSD in future will switch to ZFSOnLinux... but FreeBSD 13-CURRENT has OpenZFS so guess that's required.

Of course, these days, people shouldn't often have to dual-boot just to program, because of virtualization. I've heard it's possible to run a GNU/Linux jail? I also heard 'Xen is second-class on FreeBSD' but Xen sounds nicer in the sense (as Qubes does) you can open programs from a Xen guest OS X session as if part of host OS X session, without having to select in & out of inset emu/VM window (without Qubes you might have to be an advanced Xen hacker to setup.) So in the future I'd like Slackware as a guest OS... even then, ZFS /home might still be only option.

I vaguely recall, it's not really that hard: you install ZFS/dependencies, dump option lists, choose options, create some sort of weird ZFS 'partition,' create one or more filesystems in that (in my first case, only one,) do more than usual to mount & unmount, add partition/filesystem(s) in other OS, mount, copy in user data from backups, unmount, recheck other OS. Sounds like only 15 steps (considering two installations & option list dumps) but when you forgot most, sounds extremely difficult.

In fact, last time, it took days/weeks/months research, and days setup, but things changed, so it might again. Last time I got help on Internet Relay Chat (IRC) and probably should've documented what I did (but things changed.) These years I avoid IRC science/engineering/programming/technology channels because I think that IRC might've gotten worse (and I spend more time on other IRC.)

On original topic, I know (from experience) the two OSes might write different configurations, but I really/truly don't care: I recall shells were fine, since I use several... even if using the same, usually similar/same version; not a big deal... if not, just use different. People who didn't grow up before graphical user interfaces (GUIs) were OSes will say that will probably mess up your GUI. So what? GUI is just an optional program; use a simpler one than window manager (WM) or desktop environment (DE) of complicated files. Eventually one would mainly use one OS, maybe for nicer X WM/DE, and only minimalist X on other. However, really, I don't program X stuff for Slackware; only command-line (well, I program mathics.SlackBuild, which can be command-line or in a web browser, so that's okay I guess, and I program Dungeon Crawl stone_soup.SlackBuild, which recently can run in X, but doesn't need WM or DE, nor do similar roguelike games recently for X, which is optional anyway... someone else could take over if necessary.)

So I'm going to have to transition back to FreeBSD on main desktop (not just some servers) but want to slowly... because originally I mainly used it as a lab user/programmer (though we did learn to install) not system administrator (sysadmin) so need to be able to use something else if I make a critical mistake when still learning things (even if some program works on both, but I'm learning setup on *BSD.)

__________________
David
homesite mirror (most uptime) / homesite (updated first)

Last edited by dchmelik; 25th May 2020 at 01:48 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Solaris (or any other commercial UNIX) for home use? DaBSD Other BSD and UNIX/UNIX-like 23 17th January 2015 02:15 PM
FreeBSD 10.1 /etc/fstab error for swap in a KVM VM J65nko FreeBSD Installation and Upgrading 1 15th November 2014 04:25 AM
Linux veteran hopping to UNIX 0xicl33n OpenBSD General 3 8th April 2012 03:20 AM
New linux & unix installs with old raid/lvm set-up th3professor Other BSD and UNIX/UNIX-like 2 7th July 2010 10:08 AM
shared libraries and linux emulation Business_woman FreeBSD General 4 16th November 2008 10:03 AM


All times are GMT. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick