libera/#devuan/ Thursday, 2023-11-23

Necrodiverso i have a question about moving home directory. I currently have my boot and root directories on sda, which is a 500gb ssd04:17
Necrodivermy home dir is on sdb, a 500gb hdd04:17
Necrodiveri wanna move the home dir onto the ssd04:17
Necrodiverand use the hdd as kind of an interal storage04:18
Necrodiveri know i have to go into fstab and make changes there but04:18
djphthen, from a live session, copy the data to SDA, remove the mountpoint of SDB, and then reboot.04:18
Necrodiverduring a liveboot you can just copy the data over and itll automatically recognize the location of /home?04:19
Necrodiverafter the reboot?04:19
Necrodiveror do i still need to go into fstab and redirect it to locate home?04:20
djphwell "/home" is a standard directory in the FHS04:20
djphthe only thing you're doing is mounting a whole drive there (the filesystem doesn't "know" this)04:21
Necrodiveroh04:21
Necrodiverso as long as i remove the mount point of sdb04:21
Necrodiveritll automatically recognize home as on the ssd04:22
djphso you just have to hoik /dev/sdb/yourusernamehere to /dev/sda/home/ ... then fix /etc/fstab and all should be right with the world04:22
Necrodiveroh04:22
djphwell, "recognize" is a bit strong of a term04:22
djphthe machine doesn't /know/ you have a _whole harddrive_ living at "/home"04:22
djph... it just sees "/home"04:22
Necrodiveroh04:23
Necrodiverso by pointing fstab to sda04:23
djphno04:23
djphyou don't change fstab to point to /dev/sda04:23
Necrodiveroh04:23
djphyou just remove the pointer to /dev/sdb04:23
Necrodiveroh04:23
djph"/home" has always been on /dev/sda04:24
djphHOWEVER, you just slapped in a little "detour --> /dev/sdb" sign and pointed all the stuff over there04:24
Necrodiveroh04:24
Necrodiverthats how the file system sees it04:24
djphyep04:24
Necrodiverso all i need to do is copy the data over04:24
Necrodiverremove the pointer04:25
Necrodiverand all is good with the world04:25
djph(for the most part, the filesystem just sees everything "flat" ... but some things care that you're crossing filesystem/partiton boundaries)04:25
djphit's like driving about in the EU or the US -- you might cross a buncha borders, and "for the most part" it doesn't matter04:25
djph(but eventually you might run into a "you can't bring [THING] into/out of [PLACE]"04:26
Necrodiverkinda like if you are from an open carry state in the US04:26
Necrodiverand you try to cross the border into canada04:26
Necrodiver"no ar15s sir"04:27
Necrodiverkidna thing04:27
djphwell, less so, since US to Canada isn't "completely free travel"04:27
Necrodiverwhat kind of file might not play nice with this sort of move?04:27
djphyour separated filesystem was the only one that had caveats04:27
djph(no hardlinks between drives / filesystems)04:28
Necrodiveri dont think ive ever done anything that required a hardlink between systems or drives04:28
Necrodiverunless that happened in one of the directories in root during initial install04:29
Necrodiverwhich i wouldnt know a lot about because i was still only like 3-4 months into using linux04:29
djphyou can't hrdlink between filesystems04:29
Necrodiverah04:30
Necrodiverthis seems much easier than the way it was explained to me before04:31
Necrodiverin the fstab, where is the pointer to /dev/sdb located?04:31
Necrodiveroh the UUID04:32
Necrodiverso do i just comment out the UUID for the /home directory, or copy/paste the ssd UUID to the home dir line?04:33
Necrodiveractually i could compare my thinkpad fstab to this one04:33
Necrodiverand see whats different04:34
djphjust comment it out04:37
djphdon't fuck around wiht the ssd04:37
djphit's already got a mounntpoint at /04:37
Necrodiverokay04:37
Necrodiverthat makes it easy04:37
Necrodiverill give it a try04:38
Necrodiverim gonna first COPY the files to the ssd04:38
Necrodiverand not delete until after i know it works after the move04:38
djphit literally is as dead simple as (1) mount both drives somewhere, (2) copy all "usernamehere" directories off HDD to SDD (/home), (3) comment out HDD mountpoint to /home (in /etc/fstab) (4) reboot04:38
djphwith all steps done in a live session04:39
Necrodiverso take all the files inside the /home in hdd under the /home/username and copy them into the sdd /home04:41
Necrodiverthen comment out the 2nd UUID in fstab04:42
Necrodiverthen reboot04:42
djphno04:43
djphyou will copy JUST "username" to "/home/" on SDA04:44
djphif you have /mnt/sda and /mnt/sdb, you will copy /mnt/sdb/necro to /mnt/sda/home/04:44
djphand end up with /mnt/sda/home/necro04:44
Necrodiverahhh04:45
Necrodivermaybe because im using the pc right now, because of the mount it automatically shows the "username" and directs me to the hdd04:47
Necrodiveri was just checking stuff through thunar04:47
Necrodiverto see how its set up04:47
Necrodiverjust in case, what if it asks me to overwrite "username" directory when i start copying?04:47
Necrodiveri mean based on the way you explained it it shouldnt, but just in case i wanna know04:50
djphyou shouldn't have a /home/necro on /dev/sda if you installed with two drives from the outset04:50
djph(you can always CHECK before you do anything)04:50
Necrodiverwell i know for a fact theyre separate because the amount of space used on each disk is VERY different04:51
Necrodiveri think its like 70 or 80gb on the ssd, and 360 on the hdd04:52
Necrodiveroh wait04:52
Necrodiverlemme look at my partitions again04:52
Necrodiversda is set to boot drive04:53
Necrodiverand sdb is set to /home04:54
Necrodiverlooking in the ssd, the /home directory there shows that its linked to sdb, whereas / is on the sda04:56
Necrodiverjust confirming it through thunar04:57
djphare you in a live-session right now, or no?05:01
Necrodivernah not right now05:02
Necrodiverwatching videos and stuff and trying to get an idea of how this whole thing works before i try it05:02
Necrodiverwatching videos= completely unrelated to this issue05:02
n4diras far i can see not that much can go south, because you will still have got the old /home on sdb (if that was the original).05:07
n4dirso worst thing might happen fstab entry is not correct. Just correct it in that case.05:08
n4dirmight be i oversee something which might go south ...05:08
n4diri'd comment the old entry in fstab, not remove it, until it is known it works05:08
Necrodiveryeah thats what djph said05:09
Necrodivercomment it out05:09
n4diroh, i didn't read that. sorry then05:09
n4dirusually after installation i cp all of /etc to /root. There are better solutions, but that is what i can do without thinking05:09
Necrodiveri see why doing it in a live session is important though05:10
Necrodiverif im in the install of the os05:10
Necrodiverthe /home on the sda shows /home/username there as an active folder because it being linked to the other drive05:11
Necrodiverid have to go a liveboot and check before doing anything05:11
n4dirright down what djph told you, or save it, most of all the order, when to do what. You will get it done. Good luck05:12
Necrodiverthx guys05:12
Necrodiverill take a look at it later today05:14
n4diri wouldn't even know where to start to describe how weird it is here06:14
n4dirdamnit, wrong channel. sorry06:14
Necrodiverlol06:16
al1r4dhello~~~12:30
___usedI see a new? problem, probably snuck in during recent locale update. Beowulf, xfce and cli: wfce calendar widget shows 1dow Sun, same as cli cal. LC_* is all set to us_EN.utf8 . Can anyone confirm? tz update was some weeks ago.16:26
___usedLikely underlying problem: ISO 8861 defines 1dow a Sunday (Gregorian date) but 1st working day a Monday. See bottom here for a hack: https://unix.stackexchange.com/questions/544743/fiddling-with-locale-so-that-weeks-start-on-monday @Eduardo16:28
___used?17:04
gnarface___used: the "date" command even is doing that, you say?17:14
gnarfacenot seeing that here, it'd have to be a recent update17:15
___usedgnarface: date: no; cal yes17:30
___used/usr/bin/cal17:30
fsmithred___used, Sunday is first in xfce calendar and cal, in chimaera and daedalus17:54
fsmithredI wouldn't expect it to be different17:54
fsmithredbeowulf, too, but that hasn't been updated in a long time.17:56
onefangMay depend on your timezone / locale, coz first day of the week is different in different places.17:57
fsmithredThat makes sense17:58
n4dirhow to install cal? i can't figure it out with search or apt-file17:59
n4dirnor with packages.debian.org, lol17:59
n4diri didn't even know you had to install it. It always seemed just there18:00
fsmithredncal maybe18:00
fsmithredyeah, ncal is the package name18:00
fsmithredapt-file find bin/cal18:00
n4diroh, i did apt-file search, not find18:01
fsmithredsame thing18:01
n4diryup, ncal was it. weird. I'd assume if i had to install it, i would have remembered. Anyway, thanks18:01
onefangNot the same, find is shorter to type than search.  B-)18:01
fsmithredexactly18:01
n4dirfsmithred: with apt-file the closest i could get was a plan9 thing18:01
n4dirafter a lot of grep and grep -v18:02
fsmithredyou searched bin/cal or just cal?18:02
n4dirright, just cal18:02
fsmithredafk, looking for food. back soon.18:04
n4diris it only me who knows where his food is?18:06
onefangI have to go hunting for mine sometimes.18:08
___usedfsmithred: thanks, you seem to be right for LC* = us. Here's a world map of this: https://c.tadst.com/gfx/1200x675/map--first-day-of-the-week.png?118:35
___usedNote: I'm in Europe18:35
___usedI have no program called setlocale in Beowulf, yet, it seems to be required.18:51
___used$ LC_ALL="de" cal -> cal: setlocale: No such file or directory\n ... normal cal output follows18:53
___usedoh it's a missing tz spec19:04

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!