-
daneurysm
/join #linux
-
daneurysm
eek
-
stellarskylark
Hey folks; is there any way for me to start a steam process as my steam user without completely closing my wayland session and relogging?
-
stellarskylark
I'm running wayland btw so xhost doesn't seem to be working
-
magnahelix
wayland is not x11/xorg.
-
magnahelix
That's why xhost does nothing in this case.
-
stellarskylark
yeh I was just guessing that steam might be running in xwayland
-
stellarskylark
it does work if I totally relog into my steam account but ideally I wouldn't have to do that every time I want to launch steam
-
stellarskylark
er steam user, per the linuxulator-steam-utils instructions
-
linext
is there a way to benchmark whether running freebsd from a usb 3.0 stick compares with running from sata ssd
-
rwp
The mostly ad-hoc standard file system benchmark tool is "fio". You could benchmark both and compare them.
-
rwp
-
VimDiesel
Title: 1. fio - Flexible I/O tester rev. 3.35 — fio 3.35-6-g1b4b-dirty documentation
-
rwp
Maybe something similar to this type of command: fio --name=random-write --ioengine=posixaio --rw=randwrite --bs=1m --numjobs=1 --size=4g --iodepth=1 --runtime=60 --time_based --end_fsync=1
-
stellarskylark
I realized I can just use another vtty
-
Macer
can anybody shine light on why there is samba413 and samba416 in the pkg repo?
-
Macer
are the two fundamentally different?
-
voy4g3r2
anyone ever experience a machine shutdown, a nfs fstab not being valid and not being able to access the client afterwards?
-
voy4g3r2
i had a major power failure, killed my synology and now one of my computers won't boot.. because nfs shares no longer exist
-
voy4g3r2
i take it the only real way to fix it, is a physical connection to the machine.. as i can not ssh in. unless anyone has ideas?
-
RhodiumToad
what is it actually stopping on?
-
voy4g3r2
nfs
-
voy4g3r2
it is a rasbperry pi headless.. it looks like i have to go this route to fix:
forums.freebsd.org/threads/etc-fsta…-error-now-dont-start-freebsd.11348
-
VimDiesel
Title: /etc/fstab error, now don't start freebsd. | The FreeBSD Forums
-
voy4g3r2
note to self.. make sure to START labelling machines, so i know which one to unplug..
-
parv
Oh no!
-
ZedHedTed
ugh
-
voy4g3r2
yup, lesson learned
-
voy4g3r2
it looks like partion is not aligned.. last thing the machine does is detect keyboard
-
voy4g3r2
start_init: trying /sbin/init and that is it
-
RhodiumToad
did you forget to (or choose not to) use 'bg' in the fstab entry?
-
voy4g3r2
i will default to not use bg as i was not aware
-
voy4g3r2
i did the 192.168.0.220:/volume1/ports /usr/ports nfs rw 0 0
-
voy4g3r2
but the machine attached to that ip is dead and looks like machine won't boot now.. so i got into The "boot" loader
-
RhodiumToad
without bg, it'll wait forever for a server
-
voy4g3r2
i can see the file.. i can not edit the file as there appears to be no commands i can use
-
voy4g3r2
well that explains that and something i should resolve, in the future
-
RhodiumToad
if you can get the loader prompt or menu, you may be able to boot to single-user
-
RhodiumToad
on the single-user console, you can fsck -p / && mount -u -w / and then edit the fstab (e.g. using ed)
-
RhodiumToad
however, this depends on loader and kernel agreeing on where the console is
-
voy4g3r2
okay, let me see if i can get it to boot into single user mode
-
voy4g3r2
i did a boot -s and i am stuck at same spot
-
voy4g3r2
let me slap a boot -sv to get a littel more verbose and see if that brings up anything
-
voy4g3r2
i wonder if this dumb uboot thing hsa something to do with it
-
RhodiumToad
if console output stops when init is started, it usually means the kernel console and user console are pointing to different places
-
RhodiumToad
since init will do input and output on the user console
-
voy4g3r2
let me try another hdmi port
-
RhodiumToad
user console might be set to the serial port
-
RhodiumToad
do you have a console setting in loader.conf ?
-
voy4g3r2
let me check, my gut says no.. but better to confimr
-
voy4g3r2
trying to see content of file.. in this boot
-
voy4g3r2
i do have video output and if i move to another hdmi port, i get no output.. so i "believe" i have the right one
-
voy4g3r2
-
VimDiesel
Title: The U-Boot Documentation — Das U-Boot unknown version documentation
-
voy4g3r2
well just joy. this is probably not going to be easy
-
voy4g3r2
part of me just wants to reimage this machine
-
RhodiumToad
you can show loader vars at the boot prompt
-
RhodiumToad
just 'show' will show all vars, 'show console' to show just the value of the 'console' setting
-
voy4g3r2
Dual Console: Serial Primary, Video Secondary
-
RhodiumToad
ok. problem is that the user console is only the primary one
-
RhodiumToad
how are you doing input? usb keyboard?
-
voy4g3r2
yes
-
voy4g3r2
i can interact with the system, through the usb keyboard
-
RhodiumToad
I don't recall if that even qualifies for console input, but I guess you can try it
-
RhodiumToad
user console input, that is
-
RhodiumToad
anyway, try swapping the primary/secondary consoles
-
voy4g3r2
okay, let me see what duckduckgo brings back
-
RhodiumToad
set console=vidconsole,comconsole
-
RhodiumToad
boot -s
-
voy4g3r2
booting..
-
voy4g3r2
never gets got the single user mode...
-
voy4g3r2
frustrating part i can see it load /boot stuff
-
voy4g3r2
but no edit tools available yet...
-
RhodiumToad
what fbsd version?
-
voy4g3r2
13.2
-
voy4g3r2
hardware is a raspberry pi 4 with 4 gigs of ram.. using the image from freebsd.org
-
RhodiumToad
what's the last thing you see on the console?
-
voy4g3r2
detection of the usb keyboard
-
RhodiumToad
and before that?
-
voy4g3r2
but before that the loading of my nic card genet0
-
RhodiumToad
and before that?
-
voy4g3r2
hold on, let me boot again
-
voy4g3r2
Dual Console: Serial Primary, Video Secondary
-
voy4g3r2
before that Warning: no time-of-day clock registered, system time will not be set acurately
-
RhodiumToad
even after setting console in the loader?
-
voy4g3r2
let me try again to double check
-
RhodiumToad
or just set console=vidconsole if you don't have anything attached to the serial port
-
voy4g3r2
booting with that
-
voy4g3r2
still saying the Dual Console thingie
-
voy4g3r2
it appears to ignore my console variable all together
-
RhodiumToad
what exactly did you do
-
voy4g3r2
i waited till i got Hit [Enter] to boot immediately, or any other key for command prompt
-
voy4g3r2
i stop the process
-
voy4g3r2
Then i am presented with: Type '?' for a list of commands, 'help' for more detailed help
-
voy4g3r2
with a prompt that says OK
-
» tmp_ uses console="efi"
-
RhodiumToad
does that work on rpi?
-
» RhodiumToad only has old rpis
-
tmp_
I'm using that on a RPi3.
-
RhodiumToad
ok, worth a try then.
-
tmp_
I have a RPi2 with a serial console.
-
» RhodiumToad has only rpi2s
-
voy4g3r2
okay
-
voy4g3r2
i will try that
-
voy4g3r2
i take it set console=efi
-
voy4g3r2
boot -s ?
-
voy4g3r2
stops still
-
voy4g3r2
err
-
voy4g3r2
i am about to just reflash this toy sd card
-
voy4g3r2
and lesson here.. be better at nfs mounts
-
RhodiumToad
you could pull the sd card, mount it on something else, edit it, and put it back
-
tmp_
I've also commented out boot_multicons and boot_serial.
-
voy4g3r2
i am going to get crap for this..
-
voy4g3r2
i only have a mac
-
voy4g3r2
lets see what hapens
-
voy4g3r2
hrm an only get to the MSDOSBOOT partition
-
voy4g3r2
but i do have this config.txt file
-
RhodiumToad
that's for uboot, iirc, I don't recall exactly what you can do there
-
voy4g3r2
-
VimDiesel
Title: Raspberry Pi Documentation - The config.txt file
-
voy4g3r2
but it is locked
-
voy4g3r2
hrm.. i wonder if i can find that file on this raspberry pi that IS working
-
voy4g3r2
RhodiumToad: thank you for your patience
-
voy4g3r2
and your assistance, i think i am going to go to the reimage route
-
voy4g3r2
and just use this one to build out the newly reimaged one
-
RhodiumToad
config.txt won't help you
-
RhodiumToad
yeah, a new image may be your best bet
-
voy4g3r2
writing now..
-
voy4g3r2
lesson learned.. do better with NFS shares when i get the new server operational
-
voy4g3r2
second one.. do not assume a synology will last more than 12 years :)
-
voy4g3r2
the interesting project.. have one in the house (setup as a NFS server) then have one in another building on property for backups
-
voy4g3r2
but thanks again, learned some tricks on boot menus and loaders which i did not know about before
-
voy4g3r2
she is now booting up again
-
RhodiumToad
'bg' is almost always your friend when it comes to nfs mounts. the only thing to watch is if you have services that have data on the nfs partition and which will re-initialize if they find it missing.
-
RhodiumToad
since if the mount becomes available after boot, that can lead to it mounting over already-open data, which can become messy
-
voy4g3r2
yeah, i was using mounts for git blink video backups and /usr/ports hierarchy
-
voy4g3r2
nothing too fancy
-
voy4g3r2
we got ssh operational, time to move back to "server room"
-
voy4g3r2
at least i did not lose my tmux nvim settings
-
voy4g3r2
that would of been painful
-
voy4g3r2
freebsd-update ..
-
voy4g3r2
does a lot of checking.. definitely not like apt-get update && apt-get upgrade -y
-
voy4g3r2
tmp_: have you ever had "weird" reporting of cpu speed for your raspberry pi.. mine keeps default to 600mhx and NOT 1500mhz
-
CueXXIII
apt-get upgrade -Uy is more like pkg upgrade, freebsd-update is for the freebsd system that is not in a pkg
-
Macer
so i'm trying to mount smb using rclone in fstab and i can't seem to figure out how the helper is supposed to work
-
Macer
in linux you'd just symlink rclone to /sbin/mount.rclone
-
Macer
but the same trick does not seem to wrok by symlinking rclone to /sbin/mount_rclone to act as a helper. or is my understanding wrong here on how fbsd does it?
-
tmp_
voy4g3r2: I have a RPi3 report dev.cpu.0.freq_levels: 1200/-1 600/-1 and flips between them as expected with powerd running.
-
voy4g3r2
tmp_: so it is always dependent on load when it flips back and forth?
-
tmp_
Essentially. I haven't looked into powerd for a very long time. I've just been making sure it runs.
-
voy4g3r2
ah
-
voy4g3r2
-
VimDiesel
Title: Raspberry PI 4 Release 13.2 and dev.cpu.0.freq changes | The FreeBSD Forums
-
voy4g3r2
it is running.. so i guess i just have to trust it is working..
-
tmp_
Compare "sysctl dev.cpu.0.freq" with "sysctl -a | grep dev.cpu.0.freq ; sysctl dev.cpu.0.freq"
-
tmp_
Or some other command followed by " ; sysctl dev.cpu.0.freq"
-
voy4g3r2
oh interesting.. now showing 1500
-
voy4g3r2
i guess i will just shutup and close that thread out
-
tmp_
One of the notable features of arm is how easily it is to get to its idle frequency. So, some load in the background, or immediately after enough loads ends will still have it at its performance frequency. Otherwise, you'll generally just see the idle frequency.
-
voy4g3r2
good to know
-
voy4g3r2
but as i got this machine operational again.. i think the "cloning" pkg between both can wait till another day
-
voy4g3r2
thank you again for your help tmp_ and RhodiumToad
-
rtprio
is there a disadvantage or advantage to having your graphical terminals (foot, xterm, etc) be login shells vs not
-
armin
rtprio: these graphical terminals aren't shells, they're terminal emulators (that run a shell).
-
armin
rtprio: people usually don't run their shells as a login shell inside of them, there's not much of a benefit in doing so.
-
armin
rtprio: the advantage is that you start with a clean environment. the disadvantage is that you start with a clean environment. :)
-
armin
rtprio: anyways, unless you KNOW you want a fresh login shell, don't use one.
-
armin
rtprio: A login shell reads /etc/profile and one of ~/.bash_profile or ~/.bash_login or ~/.profile - what you usually want to run when opening a new terminal window is just ~/.bashrc in contrast.
-
armin
rtprio: (That's for bash, not csh, but you get the idea)
-
xcfa7b
anyone encounter zerotier 401 error on freebsd 14.0? service zerotier start ok,i can see the zerotier on top
-
sdmm
hi, I'm new to freebsd, I'm using gpg-agent with pinentry and I would like to use the qt program, I've installed it but when I execute it always shows the cli version. I've followed the doc and created a symlink to it but seems not to work
-
tmp_
sdmm: The path to the pinentry program is about the only thing FreeBSD specific here. You'll need the file ~/.gnupg/gpg-agent.conf to have a line to set the default, such as: pinentry-program /usr/local/bin/pinentry-qt5
-
tmp_
IIRC, it defaults to "/usr/local/bin/pinentry", which comes from the pinentry package, which in turn uses "pinentry-curses".
-
sdmm
tmp_: thanks, I couldn't find that on the docs, I will check but I'm sure it works, I did it on linux time ago but I forgot
-
tmp_
np. I've had the qt5 and gtk2 versions installed and have been using gtk2 when something broke in qt5 a while back (early 2019, apparently). I meant to switch back, but never got around to it. And a quick check just now has the qt5 version working (probably fixed long ago), although it started up minimized.
-
voy4g3r2
cyberciti.biz/faq/how-to-backup-res…-list-of-installed-freebsd-packages <-- if anyone has a machine that goes down and want to replicate package list from other machines, great article!
-
sdmm
tmp_: working here too, thanks!
-
tmp_
Did yours start up minimized? Or is that just me?
-
Macer
there's no pkg method to install kernel headers?
-
meena
Macer: the publicly used kernel headers are installed by default.
-
Macer
meena: i believe i unchecked that box because i wasn't expecting to build
-
Macer
but now i am and i can't seem to figure out a sane way to install the src
-
meena
Macer: nah, that's src
-
Macer
hm
-
meena
-
VimDiesel
Title: Index of /ftp/releases/amd64/13.2-RELEASE/
-
meena
replace architecture and version as appropriate.
-
Macer
ok
-
Macer
guess my actual problem is... fatal error: 'fuse.h' file not found
-
Macer
trying to build rclone so i can manage to get mount_rclone to work in fbsd
-
Macer
and mount from fstab
-
meena
have you tried pkg install rclone?
-
Macer
yes but i have to change the src to get it to work
-
Macer
because putting it in helper mode is hard coded into rclone
-
Macer
-
VimDiesel
Title: Unable to create FreeBSD helper for fstab mount · Issue #7432 · rclone/rclone · GitHub
-
VimDiesel
-
Macer
but i guess i need fuse dev headers and there doesn't seem to be a pkg in the repo for that
-
drobban
Anyone in here been running FreeBSD on Adlink's COM-HPC Ampere Altra?
-
Macer
oh. guess fuse.h is actually part of kernel src / base
-
Macer
ok still not working
-
Macer
:|
-
Macer
maybe i can just report it as a bug for the pkg. it seems like an easy fix but i guess i just don't have the developer skills to build it myself with cmount
-
Macer
ok. RIP patience heh
-
» Macer goes to make a debian img
-
Macer
-
VimDiesel
Title: rclone does not mount on freebsd-14-current · Issue #5843 · rclone/rclone · GitHub
-
VimDiesel
5843 – `mount -p' did not report the MNT_NOATIME flag
bugs.freebsd.org/bugzilla/show_bug.cgi?id=5843
-
voy4g3r2
if you did a pkg install, there should be no need to change anything
-
voy4g3r2
it is a binary package
-
Macer
guess they disabled it by default and requires a cmount flag for building but for the life of me i can't get it to build with cmount
-
Macer
voy4g3r2: mounting in fstab doesn't work
-
Macer
it is hard coded for mount.rclone and i guess fbsd looks for mount_rclone
-
voy4g3r2
okay.. ln -s mount_clone mount.rclone
-
Macer
nope. tried all that :)
-
voy4g3r2
just a thought, if it is looking for a thing, just symbolic link to it
-
Macer
although i went the other way. i symlinked mount.rclone to mount_rclone
-
trillp
d
-
Macer
but i'm guessing that still won't work
-
Macer
yup. same problem.
-
Macer
like i said. the call is actually hard coded to be mount.rclone which you can change in freebsd but i guess freebsd has issues with calling it like that so you need a cmount flag which requires fuse.h which i guess i don't have for whatever reason. this is far too much work anyways just to get smb client support.. i just thought it would be cool if i could finally mount something > smb1 with fbsd since rclone seems to work quite well with unprivileged debian...
-
Macer
... containers
-
trillp
ln -s /usr/local/share/comic-neue/30-comic-sans-aliases.conf /etc/fonts/conf.d/
-
trillp
ln -s /usr/local/share/comic-neue/30-comic-sans-aliases.conf /etc/fonts/conf.d/
-
voy4g3r2
maybe i missed the begining but is it necessary to use rclone?
-
trillp
oops sorry
-
jb1277976
Macer I know what you are going through on discord and IRC feels like your talking to yourself. Only thing you can do is wait or keep googling or ask somewhere else but don't mention freebsd and they probably can help
-
jb1277976
Just saying
-
unixman_home
Macer, have you checked
forums.freebsd.org to see if anyone else has addressed this
-
VimDiesel
Title: The FreeBSD Forums
-
thedaemon
Finally found stable drm-515-kmod drivers for my 6750 XT!
-
rwp
armin, rtprio, People use login shells in terminals because something before that was screwed up. They did not get their profile environment files read at login time. Using a login shell forces that for subsequent shells. It's not needed if people got their login environment read at login time.
-
rwp
Many of us log into a vt console and then the shell reads one of .profile, .bash_profile, .login, dot whatever for the login shell. Then we start X and the environment is inherited. That's the classic way.
-
rwp
But if one is using an xdm X Display Manager then people are logging into X through one of those xdm (gdm, lightdm, slim, etc.) and that does not source any of the files I just mentioned. Logging in through an X Display Manager xdm like say lightdm will read .xsessionrc file instead. So for X logins the .xsessionrc file is somewhat-like a .profile.
-
armin
rwp: +1
-
armin
rwp: Everything you said in the last 3 messages is 100% correct.
-
rwp
Since that is missing for many people they force terminal emulators to start login shells so that the layered on bash will read the .profile at that time, since it missed getting the environment through the more correct chain.
-
rwp
That's also why many people put almost everything into their .bashrc file. Since it was missed in the X login process. And being in the .bashrc then every new shell will get it then. But to me that is not the pedantically correct location to put thign.s
-
armin
Yea exactly, if you bloat up your bashrc then starting a new shell gets slow. So there's likely some stuff you don't want to execute on every single invocation.
-
rwp
I really should spend some time writing up how the login process gets stuff set up and post it so that I can point there rather than ephemeral IRC lines. Ah... That life and time keeps everything from happening all at once problem.
-
armin
You explained this absolutely great, thank you.
-
rwp
Thank you for the kind words armin! They are motivating. :-)
-
armin
:)(
-
Macer
voy4g3r2: mount_smbfs only supports smb1
-
Macer
although .. i'd have to check. i believe they obsoleted it altogether.
-
Macer
ie: removed it from base / existance heh
-
armin
Macer: That's a huge problem for me that I did not find a good solution for.
-
Macer
armin: well.. rclone is a decent solution. you can always do messy ways to daemonize it
-
Macer
but it should work in fstab .. but doesn't. :/
-
armin
Macer: yea I had a look at rclone, it's what me and a good friend currently use for our common SSH share...
-
armin
Macer: When looking at the code I almost had to puke, though.
-
Macer
but as a client. there is no way to use smb2+ in fbsd heh
-
armin
Macer: We've been using sshfs for years. :(
-
Macer
*no good way
-
Macer
i was hoping i'd sort out rclone but it was fail because i guess some awkwardness where fbsd ver needs cmount baked in
-
armin
Macer: Good question, it was one of the 2 reasons why I gave up on FreeBSD on my workstation, the 2nd one was issues with my Focusrite DAC...
-
Macer
i thought not being able to use smb was kind of a big deal. but i guess it's not :)
-
armin
Macer: Which is a bid sad considering that everything else basically was NO PROBLEM AT ALL.
-
Macer
yah
-
Macer
for me the lack of a smb client is sort of a dealbreaker
-
armin
Macer: same
-
Macer
well.. lack of smb mounting
-
Macer
it's the only thing :) the rest is great heh
-
armin
My life depends on that unfortunately, I have macOS and Windows clients so I need exactly that.
-
armin
The cherry on top would be to be able to DJ with FreeBSD, but I guess that will take another decade.
-
Macer
yah. me too.
-
Macer
the smb not the djing
-
armin
hehe
-
Macer
i was pretty excited when i noticed rclone could do it in userland
-
Macer
so today was quite a letdown
-
Macer
i installed fbsd on an atom i decomissioned to try it again and it was fail. no fuse3-dev in pkg repo
-
Macer
so i couldn't build it with cmounts .. by that point i had wasted about 2 hours on something that would take 20 sec in debian so finally gave up :)
-
armin
It's so great otherwise, even Wayland compositors just work, everything works absolutely fast, reliably, boots quick, works like I expect it to, it's accessible, I can even set the console font to be large enough for my old ears, it drives my 43" 4k display at 60Hz perfectly, games just work, everything, I just didn't get my audio hardware and smbv2 to work.
-
Macer
well i mean
-
armin
s/ears/eyes/ damnit
-
Macer
if you have a ui
-
Macer
then they ahve smb baked into those afaik
-
Macer
like the filemanagers i believe
-
Macer
but i could be wrong
-
armin
I have a large 16 channel mixer and a tiny thinclient which plays music so it's no issue, I can use FreeBSD on the desktop, yes. :)
-
armin
but still, these 2 little things, GRRRRRRRRRRRRRRRRR
-
armin
20:50 [ Macer] then they ahve smb baked into those afaik
-
armin
hmmmmmm, Thunar on XFCE has something like that, and I believe KDE's Dolphin supports smb:// but I have absolutely no clue what's happening there under the hood
-
armin
That's a good pointer.
-
armin
Macer: Yea sometimes it's just these little things. The craziest thing is that I get exactly the same issue with sndiod on OpenBSD. I did not have the time (yet) to look further into that issue, but since generally that audio device just works, I'm pretty sure it's just a minor issue.
-
armin
Macer: The other 20EUR USB soundcard I have basically just works, though.
-
jensen_
I've moved from SMB to NFS myself.
-
» tmp_ should get nfs4 set up again.
-
voy4g3r2
has anyon ehere ever worked with a hard drive, that use to be part of a raid5setup synology, and mounting outside on freebsd
-
voy4g3r2
i can see the partitions, that say linux-raid as the file type
-
voy4g3r2
when i do a gpart /dev/da0
-
voy4g3r2
-
VimDiesel
Title: root@generic:/dev # gpart list /dev/da0Geom name: da0modified: falsestate: - Pastebin.com
-
voy4g3r2
this is what it is showing me
-
voy4g3r2
nevermind.. looks it is not out of the box, but synology gives me notes to try and do on linux... errr
-
meena
hrm… why is fuse.h not installed tho?
-
voy4g3r2
Macer: i am going down your rabbit hole.. looks like i need fusefs to mount a ext4 partition...
-
Macer
voy4g3r2: doesn't fbsd have a native ext mounter?
-
Macer
fuse is typically last resort
-
Macer
i already wiped fbsd off of it and started installing debian heh
-
zyxer
Wat
-
zyxer
mount -t ext4 /path/to/partition /mount/path
-
zyxer
shouldn't that work?
-
Macer
i can't remember if fbsd comes with an ext mounter
-
zyxer
or mount -t ext2fs
-
Macer
ah. guess it does but you have to load the module
-
voy4g3r2
hrm..
-
voy4g3r2
when i try that it says it is not a valid filesystem type
-
voy4g3r2
maybe i am losing it but when i do a pkg install fusefs-ext2
-
voy4g3r2
it shows the usually tools e2fsprogs and stuff
-
Macer
they're apples and oranges.. maybe fbsd got rid of ext2 support?
-
Macer
you have to kldload ext2fs first
-
rwp
I am pretty sure that to mount ext4 one must "kldload ext2fs" as described in "man ext4fs".
-
voy4g3r2
and trying to mount
-
voy4g3r2
mounds
-
voy4g3r2
well no it does not.. dmesg is throwing number stuff
-
Macer
number stuff? :)
-
voy4g3r2
freaking synology added stuff to make it work with their device
-
voy4g3r2
ext2fs: da0p2 wrong magic number 0 (expected 0xef53)
-
Macer
i thought synology used mdraid or something
-
voy4g3r2
see number stuff :)
-
voy4g3r2
-
VimDiesel
Title: How can I use a PC to recover data when my Synology NAS malfunctions? - Synology Knowledge Center
-
voy4g3r2
lvm2
-
Macer
oh
-
Macer
then don't you have to go through all that mess prior to being able to mount?
-
Macer
i'd be surprised if it actually managed to work in fbsd heh
-
voy4g3r2
yeah and i just saw this.. Remove the drives from your Synology NAS and install them in your PC. For RAID or SHR configurations, you must install all the drives (excluding hot spare drives) in your PC at the same time.
-
voy4g3r2
it won't because unless i have all 3 drives together.. it won't let me
-
voy4g3r2
i ordered two more external cases.. but i have to wait till tomorrow
-
Macer
yeah. you sort of need the array for it to use the array
-
Macer
you said 3 disks.. so did you use raid5?
-
voy4g3r2
yup
-
Macer
you should be able to just use 2 of them then shouldn't you?
-
Macer
it will be degraded .. but if you're just trying to get the data off of them...
-
thumbs
RAID5 was risking to begin with.
-
Macer
yah heh
-
Macer
this is why i live the zfs only life
-
thumbs
zfs is pretty wonderful and magical.
-
Macer
that it is... that it is
-
rwp
+1 for ZFS raidz2 or raidz3 which has saved me before. -1 for RAID5 which is okay when everything works but in degraded mode have seen it eat other people's data multiple times. RAID6 is the only safe way.
-
voy4g3r2
yeah, you know what is the worse part.. my wife goes, i figured you already had this setup.. whats the problem.. kick the dignity right here
-
thumbs
I usually opt for RAID10 in those cases.
-
rwp
That synology page mentions that data might be either ext4 or btrfs so I am hoping that it is not btrfs or let me caution you to be extremely careful recovering as btrfs is subtle like a cat and quick to anger and will bite back if not treated correctly.
-
rwp
RAID10 is a solid and reliable performer. +1 for RAID10 too.
-
voy4g3r2
after all this mess.. 3 raspberry pis, each will have 1 3TB drive.. and want to have them backup to each other..like a round robin
-
voy4g3r2
but have not gotten there yet
-
rwp
These external cases? I am guessing by the words you used that these are external USB enclosures? Those will work but typically they are not the most reliable things for long term use. Use them. Recover. Then I recommend moving on to something not USB connected for storage.
-
voy4g3r2
i had a backup of all of my dvds on this dang thing..
-
voy4g3r2
that took FOREVER to rip my collection for backup, to this thing.. along with my cd collection..
-
voy4g3r2
rwp: yes, only ooption on raspberry pi.. spend 30 bucks or spend ANOTHER 600 bucks on another synology and i am not going crazy with speeds and such
-
thumbs
The beauty of zfs is that it doesn't matter how you plug in the disks, it will figure out how to re-order them.
-
rwp
Brainstorm: I have contemplated using multiple Banana Pis (they have a SATA port) with one drive and using iSCSI over the netwrok to a ZFS host to homebuild a ceph like redundant SAN.
-
thumbs
With RAID, you have to be careful to attach both sides of stripped arrays.
-
voy4g3r2
rwp: i had a lot of succcess with iscsi on linux hosts.. then i found it WAY easier to just setup nfs on freebsd
-
voy4g3r2
iscsi was nice when i had my postgresql database .. about 65 gig in size, doing its magic
-
voy4g3r2
nfs + linux would just die and corrupt my database
-
voy4g3r2
i lost that play database with the death of synology :(
-
thumbs
Running a rdbms on nfs drives is just a bad idea, in general.
-
rwp
I was proposing iscsci for the raw block storage on the SAN side of things then the ZFS host would then assemble those into an NFS for the NAS side of things.
-
rwp
NFS is reliable for many things but I would also not run a database on it. I would put local storage for a database.
-
voy4g3r2
thumbs: yeah, found out the hard way and discovered iscsi
-
voy4g3r2
but it looks like i lost all this data :(
-
rwp
The advantage of it is the same as with ceph in that there is redundancy to the system hardware level. The disadvantage is that networking, say GigE, is slower than SATA speeds.
-
rwp
voy4g3r2, Why don't you say a few words describing the earlier part of the story about what was working and what went wrong and then maybe someone here might have a suggestion?
-
voy4g3r2
okay, i can do that
-
voy4g3r2
but i think without all 3 drives "connected" this will work
-
voy4g3r2
Use Case: I have a hard drive that was part of a synology RAID5 setup, i can see the partitions on freebsd but when i mount them i get the error message: ext2fs: da0p2 wrong magic number 0 (expected 0xef53) does anyone know how to mount 1 drive of a RAID5 system to be able to "pull" data off them?
-
trench
-
VimDiesel
Title: Index of /releases/ISO-IMAGES/14.0/
-
rwp
You cannot mount one drive of a 3 drive raid! It is not enough data to do so. Need at least 2 of the 3 drives.
-
rwp
And I would NOT recommend trying a recovery with 2 out of 3 if all 3 are available because if anything breaks then you lose it all. Wait until you have all 3 drives available.
-
rwp
For RAID5 that is. If it is a RAID1 mirror then of course any single drive has everything.
-
voy4g3r2
well good thing i have enough usb ports to put it to 1 raspberry
-
voy4g3r2
in the mean time, i can read up on zfs because that is what the goal is going to be after i get this data off... if i can
-
thumbs
You should, yes.
-
voy4g3r2
use case: 3 different devices, in 3 different locations of property.. making them 1 zfs pool is possible?
-
voy4g3r2
i NEVER used more than 2tb of each of these 3tb drives...
-
rwp
I would need to look it up to verify but I think with 3 devices you can do either mirrors or raidz1 but would need 4 devices for raidz2 and I would recommend raidz2.
-
rwp
But actually for a simpler setup mirrors cannot be beat. Any single drive then has everything you need. It is SO MUCH SIMPLER and so probably a very good way to go if you have the space.
-
rwp
If you haven't used more than 2TB then I suggest in the future setting up a mirror of 2x of those 3TB drives. It's simple and rock solid that way.
-
rwp
voy4g3r2, I am still waiting to hear what failed in the Synology NAS where things were at some point presumably working?
-
voy4g3r2
rwp: the device itself died
-
voy4g3r2
after 12 years of use..
-
rwp
So the motherboard on it failed? Gotcha. Well 12 years is a pretty good useful life for such things.
-
thumbs
I have a QNAP older than that.
-
voy4g3r2
yeah the motherboard died.. got the fast blinking blue light :(
-
rwp
In that case we might assume that the 3 drives are all fully functional. You should be able to recover the data.
-
thumbs
I agree with rwp here.
-
voy4g3r2
rwp: that is my working assumption
-
voy4g3r2
i should have the other 2 external devices tomorrow from UPS
-
thumbs
My Q19P is likely going to die soon, that reminds me.
-
rwp
But you will need all three drives all together in order to even make the attempt. Don't try it with one or just two drives. That's starting off at a disadvantage.
-
voy4g3r2
rwp: yup and the dang work is going to get in my way
-
rwp
Dang that work thing! :-)
-
voy4g3r2
as in the source of income to buy said devices :)
-
voy4g3r2
good thing the amazon warehouse is about 30 miles from my house and it can get here tomorrow
-
voy4g3r2
i KNEW i should of just gotten 3.. i was hasty
-
voy4g3r2
but at least i know the enclosure was detected.. now we wait and work on my side project.
-
rwp
In any case I also suggest that when you work the recovery that you work patiently and take your time. If you are careful you should be able to get everything back. But sudden moves made in haste might break things. Be calm. Think twice and then hit Enter once.
-
voy4g3r2
-
VimDiesel
Title: Tarsnap - Online backups for the truly paranoid
-
voy4g3r2
yeah, i never did this before.. so we shall see
-
voy4g3r2
if i can recover my cd collection and dvd collection, awesome.. time machine backup is an added perk
-
voy4g3r2
thank you rwp and thumbs for tips.. looks like openzfs reading is in the future, along with raid5 stuff.. but must go on date night with the wife
-
voy4g3r2
more important than all these things
-
thumbs
Yikes, my bay is from 2009.
-
voy4g3r2
take car!
-
voy4g3r2
care!
-
rwp
Good luck! Let us know how things turn out.
-
thumbs
I should really get a newer unit, and probably a Synology this time.
-
thumbs
voy4g3r2: Yes, let us know.
-
rwp
thumbs, I still have a Hitachi Deskstar running that is showing 11+ years of runtime. It's sibling threw errors earlier this year and I had to retire it though.
-
rwp
I just wish SOHO NAS cases were both more available (there are only a couple of models available at all) and more affordable.
-
thumbs
rwp: Noted. I can't afford to lose that data, would you recommend Synology over QNAP nowadays?
-
rwp
I have only heard good things about Synology and if I recall correctly didn't QNAP just have continuing security vulnerability problems? I need to look that up before I actually say it though.
-
nomia
can i install freebsd from debian?
-
nomia
i can get debian to boot my sd card but not freebsd
-
rwp
thumbs, I have taken to buying used rack mount cases and then replacing the loud datacenter fans with quieter ones suitable for my back room.
-
thumbs
rwp: You have the room for it; I don't. Heh.
-
thumbs
Well, it would sit in the utility room.
-
rwp
nomia, Still trying to get the Banana Pi M3 to boot? Sorry to hear that this has been such a frustrating journey for you.
-
thumbs
Anyhow, back on topic.
-
rwp
Unfortunately I don't think it helps that you have Debian booting. What we need is someone who has booted FreeBSD on a similar ARM and have them help out with the procedure.
-
rwp
Booting Debian does prove that your hardware is okay and working correctly. It's just a matter of getting the FreeBSD image correct.
-
thumbs
You can't just bootstrap BSD from a linux instance.
-
rwp
thumbs, Of my two rackmount cases one power distributer (the cables to the motherboard) is perfect, and the second one I bought the cables are all too short. Drat! So I duct taped a deskside power supply to the side of the case and am using it "temporarily". But the disk hot swap bays are rock solid so that's good.
-
rwp
I need to remove the too short cables and take a scrap power supply with longer cables and remove and replace the cables. But everything is working with the frankenstein arrangement so maybe this winter I will get around to it and then could close up the case.
-
thumbs
rwp: I have an older 1850 with hot swappable bays, I suppose I could revive that, but it sounds like a jet engine.
-
rwp
Must remove and replace the fans with quieter fans! It's the only way to protect sanity.
-
rwp
nomia, I have a Banana Pi M1 (older model of your M3) that would be good if it was running FreeBSD. I don't think I have time today but I will try to make time enough to try a FreeBSD install on it. Have a holiday here this week so maybe will have some time. That might help you out.
-
jb1277976
anyone seen this before
dpaste.org/MvxC2
-
VimDiesel
Title: dpaste/MvxC2 (Python)
-
jb1277976
im trying to delete two boot entries so my boot/bios can go smoothly
-
nomia
rwp: (: ok yay
-
nomia
i am going to try to make a zfs mirror so i can maybe install freebsd onto that
-
meena
I have no idea what Macer was doing, but I just built rclone without trouble…
-
voy4g3r2
time alignment is never the same but came back to this: rwp and thumbs.. this is what gpart says about that one drive
-
voy4g3r2
-
VimDiesel
Title: root@generic:/dev # gpart list /dev/da0Geom name: da0modified: falsestate: - Pastebin.com
-
voy4g3r2
not sure if this info would be of any use but it is interesting
-
rwp
jb1277976, I have not see "efibootmgr: efi_get_variable: Bad address" before from your dpaste.org/MvxC2 above but it looks like your efi vars in non-volatile ram is corrupted.
-
rwp
voy4g3r2, Looks like GPT partitioning with three partitions but the sizes don't make sense to me so I must be interpreting the information wrong.
-
rwp
voy4g3r2, If it were me I would peek at the disks using "smartctl -a /dev/da0" (install sysutils/smartmontools to get smartctl) and see what information it provides about the health of the disks.