You are not logged in.
Pages: 1
Good day!
It seems i messed up with the fstab file, when i installed arch. My sda4 file sysytem wouldn't get mounted, or loaded and i would get an error (but the system would load fine) . So everything (including my user home folder) was placed in the sda3 which is only 30 gb (out of the 256 avaivable).
My fstab looked like this:
/dev/sda3 / ext4 rw,relatime,data=ordered 0 1
/dev/sda2 / ext4 rw,relatime 0 2
/dev/sda4 / ext4 rw,relatime,data=ordered 0 2So now i changed it to:
/dev/sda3 / ext4 rw,relatime,data=ordered 0 1
/dev/sda2 /boot ext4 rw,relatime 0 2
/dev/sda4 /home ext4 rw,relatime,data=ordered 0 2There doesn't seem to be any errors when i load arch, however my user home folder was replaced by an empty one and all my user configurations are now not present, however when i enter "df" in the console, i get this:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 30832636 9887716 19355672 34% /
dev 4051448 0 4051448 0% /dev
run 4054200 496 4053704 1% /run
tmpfs 4054200 0 4054200 0% /dev/shm
tmpfs 4054200 0 4054200 0% /sys/fs/cgroup
tmpfs 4054200 237184 3817016 6% /tmp
/dev/sda2 243823 2062 224865 1% /boot
/dev/sda4 209015436 60692 198314252 1% /home
tmpfs 810844 4 810840 1% /run/user/0The sda3 is of the same size as it was before i changed the fstab, so it leads me to believe that my old user home folder is still present. How do i get it back? and is my fstab configured correctly?
Last edited by NotaName (2014-10-02 10:38:09)
Offline
you mounted 3 devices (sda3 , sda2, sda4 ) to the same mountpoint ?
No idea what effect that has, especially when the mountpoint is root but it sounds like great way to break a system.
I suggest you boot from usb / cd , then mount /dev/sda2 , /dev/sda3 & /dev/sda4 under /mnt/sda2 , mnt/sda3 , mnt/sda4 and see what's really in those partitions .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Well, the system works normally (it seems) and about the mountpoints... i remember using a genfstab to generate the fstab file. Apparently it didin't go well. I will try your proposal - thanks.
Last edited by NotaName (2014-10-02 11:38:32)
Offline
Hm.. i made a mount directory and tried to mount the devices, but the boot usb arch doesn't let me mount anything, says there are no such names in fstab. Are there no other ways to get to that sda3 ?
Offline
It second the above recommendation. I suspect you'll find that all your content (files, configs, etc) are on sda3. When the other two partitions are mounted, they mask the existing content of [sda3]/home/ with the empty sda4. I suspect the same happens with the content of /boot.
You'll need to move everything from [sda3]/home/ to [sda4]/ and possibly the same with boot to sda2.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Hm.. i made a mount directory and tried to mount the devices, but the boot usb arch doesn't let me mount anything, says there are no such names in fstab. Are there no other ways to get to that sda3 ?
to mount things that are not listed in fstab, you have to tell mount a few things.
something like this should work :
# mkdir /mnt/sda3
# mount -t ext4 /dev/sda3 /mnt/sda3(the reason to create the dir is that iirc mount complains if the dir doesn't exist)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Thanks guys, i tried again and it kind of worked. I mounted all three of them, made a arch-chroot to the sda3 and then cp /home /mnt/sda4 (i kind of feel that this is not the way to do it) and when i restarted i found my copied home folder in the /mnt directory. In any case, i've got my stuff back, but it's a bummer i can't "startx" from my user account now, since this thing messed everything up (i get an error message that my temp folder is full, or something along those lines edit: actually it says "call to lnusertemp failed" ).
I didn't try to copy the whole sda3 / directory, since i'm not sure how to do this right.
Last edited by NotaName (2014-10-02 13:24:16)
Offline
There was no reason to use arch-chroot. In fact if you did it as you described it definitely should not have worked. There would be no /mnt/sda4 to copy to - and even if you created that directory, it would not be the other partition, it would just be a directory named sda4.
Please slow down. From the bootable flash drive, mount each partion one by one in their own mount point:
mkdir /mnt/sda3
mount /dev/sda3 /mnt/sda3
mkdir /mnt/sda4
mount /dev/sda4 /mnt/sda4
mkdir /mnt/sda2
mount /dev/sda2 /mnt/sda2Then check (eg with ls) what the contents of each of those mount points are. Do not chroot into anything.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Well... it did, since i have my old files (videos and music too) at my disposal now. But thanks, i will try again as you said!
edit:
Well, i have to say i'm pretty confused now. I did as told:
sda2 - only houses an empy "lost+found" folder
sda3 - has all the system files
sda4 - only has the /home folder
but as i said there appears to be two separate (in origins) home folders and even though i copied the one from sda3, i can't "startx" with my user account anymore, even though looking at the contents of sda this should not be a problem. Hm...
Last edited by NotaName (2014-10-02 14:07:44)
Offline
This whole thread is super confusing! ![]()
I'd just like to point out that there shouldn't be any surprise with what's on your partitions. It's your Arch Linux installation, so it's setup exactly how you chose to set it up.
For example, the first thing I do when installing an operating system is think to myself something like, "I'm going to create three partitions. They will be called sda1, sda2, and sda3. sda1 will mounted as /, sda2 will be mounted as /home, and sda3 will be mounted as /friskybadgers." Then I'll make sure my fstab file matches what my plans.
So, how did you plan to use your partitions? Are they mapped the way you want them to be in the fstab file?
even though i copied the one from sda3, i can't "startx" with my user account anymore
Why can't you "startx" with your user account anymore? Did someone tell you you're not allowed to? Did the keyboard stop working? Was there a kernel panic? Did you type "startx" and water started pouring out of the USB ports? Were there any error messages? ![]()
Offline
This whole thread is super confusing!
I'd just like to point out that there shouldn't be any surprise with what's on your partitions. It's your Arch Linux installation, so it's setup exactly how you chose to set it up.
For example, the first thing I do when installing an operating system is think to myself something like, "I'm going to create three partitions. They will be called sda1, sda2, and sda3. sda1 will mounted as /, sda2 will be mounted as /home, and sda3 will be mounted as /friskybadgers." Then I'll make sure my fstab file matches what my plans.
So, how did you plan to use your partitions? Are they mapped the way you want them to be in the fstab file?
He, he. Yes i did, but for some reason genfstab failed. Though the whole installation is still fuzzy to me, so i might have added to the destruction part.
Why can't you "startx" with your user account anymore? Did someone tell you you're not allowed to? Did the keyboard stop working? Was there a kernel panic? Did you type "startx" and water started pouring out of the USB ports? Were there any error messages?
Actually i wrote about this above, but here it goes again:
When i press enter, it seems to start, but then i get a pop up error:
call to lnusertemp failed
Offline
sda4 - only has the /home folder
Do you mean it has the contents of your home folder (probably just one directory named the same as your user, and in that folder all your user's files)? Or does sda4 actually contain a directory called 'home'? It should not have a directory named 'home'.
The issues with X are odd - but I'd strongly suggest you not try to put a bandaid over the only currently obvious symptom. If you do you will likely be in much worse trouble later. Most notably, your boot partition is empty, but this is where new kernels will be installed. Yet your boot loader must currently point to the root partition. There could be countless other issues as well - you will really be in a world a missery later unless you get to the root of the problem now and fix the real issues.
Last edited by Trilby (2014-10-02 15:02:19)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
When i press enter, it seems to start, but then i get a pop up error:
call to lnusertemp failed
There's a thread about that error message here: https://bbs.archlinux.org/viewtopic.php?id=43335
Summary: It's because your root filesystem is messed up (but you already knew that). ![]()
As Trilby pointed out, I think just trying to sort out the mount point issues should begin to fix everything. ![]()
Offline
Since i'm short on band aids, i think i will just purge the whole thing like a plague and then will make a new installation. Assuming of course, that this current issue doesn't somehow carry over to the purging part?
Last edited by NotaName (2014-10-02 15:28:12)
Offline
Since i'm short on band aids, i think i will just purge the whole thing like a plague and then will make a new installation. Assuming of course, that this current issue doesn't somehow carry over to the purging part?
To start over with partitioning, do:
sgdisk --zap-all /dev/sdaOffline
That probably would be the simplest approach. There should be no need to repartition. Technically you shouldn't even need to recreate filesystems, but I would to ensure a nice fresh/clean start. So `mkfs` on each partition, then mount then appropriately (and carefully*), then continue with the pacstrap and configuration steps.
* I suspect it may have been improper mounting in the first installation that lead to this problem. If all three partitions were mounted directly on /mnt, genfstab might generate the fstab you ended up with.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I do remember mounting the sda4 on /mnt/home.. hm.. either way, thanks for the help, arch seems to be good for my patience developement and i actually learned quite a bit by fighting various issues.
Offline
Pages: 1