Necrodiver | so i have a question about moving home directory. I currently have my boot and root directories on sda, which is a 500gb ssd | 04:17 |
---|---|---|
Necrodiver | my home dir is on sdb, a 500gb hdd | 04:17 |
Necrodiver | i wanna move the home dir onto the ssd | 04:17 |
Necrodiver | and use the hdd as kind of an interal storage | 04:18 |
Necrodiver | i know i have to go into fstab and make changes there but | 04:18 |
djph | then, from a live session, copy the data to SDA, remove the mountpoint of SDB, and then reboot. | 04:18 |
Necrodiver | during a liveboot you can just copy the data over and itll automatically recognize the location of /home? | 04:19 |
Necrodiver | after the reboot? | 04:19 |
Necrodiver | or do i still need to go into fstab and redirect it to locate home? | 04:20 |
djph | well "/home" is a standard directory in the FHS | 04:20 |
djph | the only thing you're doing is mounting a whole drive there (the filesystem doesn't "know" this) | 04:21 |
Necrodiver | oh | 04:21 |
Necrodiver | so as long as i remove the mount point of sdb | 04:21 |
Necrodiver | itll automatically recognize home as on the ssd | 04:22 |
djph | so you just have to hoik /dev/sdb/yourusernamehere to /dev/sda/home/ ... then fix /etc/fstab and all should be right with the world | 04:22 |
Necrodiver | oh | 04:22 |
djph | well, "recognize" is a bit strong of a term | 04:22 |
djph | the machine doesn't /know/ you have a _whole harddrive_ living at "/home" | 04:22 |
djph | ... it just sees "/home" | 04:22 |
Necrodiver | oh | 04:23 |
Necrodiver | so by pointing fstab to sda | 04:23 |
djph | no | 04:23 |
djph | you don't change fstab to point to /dev/sda | 04:23 |
Necrodiver | oh | 04:23 |
djph | you just remove the pointer to /dev/sdb | 04:23 |
Necrodiver | oh | 04:23 |
djph | "/home" has always been on /dev/sda | 04:24 |
djph | HOWEVER, you just slapped in a little "detour --> /dev/sdb" sign and pointed all the stuff over there | 04:24 |
Necrodiver | oh | 04:24 |
Necrodiver | thats how the file system sees it | 04:24 |
djph | yep | 04:24 |
Necrodiver | so all i need to do is copy the data over | 04:24 |
Necrodiver | remove the pointer | 04:25 |
Necrodiver | and all is good with the world | 04: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 |
djph | it's like driving about in the EU or the US -- you might cross a buncha borders, and "for the most part" it doesn't matter | 04:25 |
djph | (but eventually you might run into a "you can't bring [THING] into/out of [PLACE]" | 04:26 |
Necrodiver | kinda like if you are from an open carry state in the US | 04:26 |
Necrodiver | and you try to cross the border into canada | 04:26 |
Necrodiver | "no ar15s sir" | 04:27 |
Necrodiver | kidna thing | 04:27 |
djph | well, less so, since US to Canada isn't "completely free travel" | 04:27 |
Necrodiver | what kind of file might not play nice with this sort of move? | 04:27 |
djph | your separated filesystem was the only one that had caveats | 04:27 |
djph | (no hardlinks between drives / filesystems) | 04:28 |
Necrodiver | i dont think ive ever done anything that required a hardlink between systems or drives | 04:28 |
Necrodiver | unless that happened in one of the directories in root during initial install | 04:29 |
Necrodiver | which i wouldnt know a lot about because i was still only like 3-4 months into using linux | 04:29 |
djph | you can't hrdlink between filesystems | 04:29 |
Necrodiver | ah | 04:30 |
Necrodiver | this seems much easier than the way it was explained to me before | 04:31 |
Necrodiver | in the fstab, where is the pointer to /dev/sdb located? | 04:31 |
Necrodiver | oh the UUID | 04:32 |
Necrodiver | so do i just comment out the UUID for the /home directory, or copy/paste the ssd UUID to the home dir line? | 04:33 |
Necrodiver | actually i could compare my thinkpad fstab to this one | 04:33 |
Necrodiver | and see whats different | 04:34 |
djph | just comment it out | 04:37 |
djph | don't fuck around wiht the ssd | 04:37 |
djph | it's already got a mounntpoint at / | 04:37 |
Necrodiver | okay | 04:37 |
Necrodiver | that makes it easy | 04:37 |
Necrodiver | ill give it a try | 04:38 |
Necrodiver | im gonna first COPY the files to the ssd | 04:38 |
Necrodiver | and not delete until after i know it works after the move | 04:38 |
djph | it 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) reboot | 04:38 |
djph | with all steps done in a live session | 04:39 |
Necrodiver | so take all the files inside the /home in hdd under the /home/username and copy them into the sdd /home | 04:41 |
Necrodiver | then comment out the 2nd UUID in fstab | 04:42 |
Necrodiver | then reboot | 04:42 |
djph | no | 04:43 |
djph | you will copy JUST "username" to "/home/" on SDA | 04:44 |
djph | if you have /mnt/sda and /mnt/sdb, you will copy /mnt/sdb/necro to /mnt/sda/home/ | 04:44 |
djph | and end up with /mnt/sda/home/necro | 04:44 |
Necrodiver | ahhh | 04:45 |
Necrodiver | maybe because im using the pc right now, because of the mount it automatically shows the "username" and directs me to the hdd | 04:47 |
Necrodiver | i was just checking stuff through thunar | 04:47 |
Necrodiver | to see how its set up | 04:47 |
Necrodiver | just in case, what if it asks me to overwrite "username" directory when i start copying? | 04:47 |
Necrodiver | i mean based on the way you explained it it shouldnt, but just in case i wanna know | 04:50 |
djph | you shouldn't have a /home/necro on /dev/sda if you installed with two drives from the outset | 04:50 |
djph | (you can always CHECK before you do anything) | 04:50 |
Necrodiver | well i know for a fact theyre separate because the amount of space used on each disk is VERY different | 04:51 |
Necrodiver | i think its like 70 or 80gb on the ssd, and 360 on the hdd | 04:52 |
Necrodiver | oh wait | 04:52 |
Necrodiver | lemme look at my partitions again | 04:52 |
Necrodiver | sda is set to boot drive | 04:53 |
Necrodiver | and sdb is set to /home | 04:54 |
Necrodiver | looking in the ssd, the /home directory there shows that its linked to sdb, whereas / is on the sda | 04:56 |
Necrodiver | just confirming it through thunar | 04:57 |
djph | are you in a live-session right now, or no? | 05:01 |
Necrodiver | nah not right now | 05:02 |
Necrodiver | watching videos and stuff and trying to get an idea of how this whole thing works before i try it | 05:02 |
Necrodiver | watching videos= completely unrelated to this issue | 05:02 |
n4dir | as 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 |
n4dir | so worst thing might happen fstab entry is not correct. Just correct it in that case. | 05:08 |
n4dir | might be i oversee something which might go south ... | 05:08 |
n4dir | i'd comment the old entry in fstab, not remove it, until it is known it works | 05:08 |
Necrodiver | yeah thats what djph said | 05:09 |
Necrodiver | comment it out | 05:09 |
n4dir | oh, i didn't read that. sorry then | 05:09 |
n4dir | usually after installation i cp all of /etc to /root. There are better solutions, but that is what i can do without thinking | 05:09 |
Necrodiver | i see why doing it in a live session is important though | 05:10 |
Necrodiver | if im in the install of the os | 05:10 |
Necrodiver | the /home on the sda shows /home/username there as an active folder because it being linked to the other drive | 05:11 |
Necrodiver | id have to go a liveboot and check before doing anything | 05:11 |
n4dir | right down what djph told you, or save it, most of all the order, when to do what. You will get it done. Good luck | 05:12 |
Necrodiver | thx guys | 05:12 |
Necrodiver | ill take a look at it later today | 05:14 |
n4dir | i wouldn't even know where to start to describe how weird it is here | 06:14 |
n4dir | damnit, wrong channel. sorry | 06:14 |
Necrodiver | lol | 06:16 |
al1r4d | hello~~~ | 12:30 |
___used | I 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 |
___used | Likely 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 @Eduardo | 16:28 |
___used | ? | 17:04 |
gnarface | ___used: the "date" command even is doing that, you say? | 17:14 |
gnarface | not seeing that here, it'd have to be a recent update | 17:15 |
___used | gnarface: date: no; cal yes | 17:30 |
___used | /usr/bin/cal | 17:30 |
fsmithred | ___used, Sunday is first in xfce calendar and cal, in chimaera and daedalus | 17:54 |
fsmithred | I wouldn't expect it to be different | 17:54 |
fsmithred | beowulf, too, but that hasn't been updated in a long time. | 17:56 |
onefang | May depend on your timezone / locale, coz first day of the week is different in different places. | 17:57 |
fsmithred | That makes sense | 17:58 |
n4dir | how to install cal? i can't figure it out with search or apt-file | 17:59 |
n4dir | nor with packages.debian.org, lol | 17:59 |
n4dir | i didn't even know you had to install it. It always seemed just there | 18:00 |
fsmithred | ncal maybe | 18:00 |
fsmithred | yeah, ncal is the package name | 18:00 |
fsmithred | apt-file find bin/cal | 18:00 |
n4dir | oh, i did apt-file search, not find | 18:01 |
fsmithred | same thing | 18:01 |
n4dir | yup, ncal was it. weird. I'd assume if i had to install it, i would have remembered. Anyway, thanks | 18:01 |
onefang | Not the same, find is shorter to type than search. B-) | 18:01 |
fsmithred | exactly | 18:01 |
n4dir | fsmithred: with apt-file the closest i could get was a plan9 thing | 18:01 |
n4dir | after a lot of grep and grep -v | 18:02 |
fsmithred | you searched bin/cal or just cal? | 18:02 |
n4dir | right, just cal | 18:02 |
fsmithred | afk, looking for food. back soon. | 18:04 |
n4dir | is it only me who knows where his food is? | 18:06 |
onefang | I have to go hunting for mine sometimes. | 18:08 |
___used | fsmithred: 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?1 | 18:35 |
___used | Note: I'm in Europe | 18:35 |
___used | I 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 follows | 18:53 |
___used | oh it's a missing tz spec | 19:04 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!