You are not logged in.

#1 2013-05-28 17:35:43

AlecB
Member
Registered: 2013-01-26
Posts: 114

[Solved]I accidentally erased my home partition.

The name says it all. Long story short, I made an stupid error in Gparted and ended up with a completely blank home partition.  When I boot up, I get the normal Grub prompt, followed by the login prompt. I can successfully login to my user account, but when I try to start x, I get a black screen. If I try to start my window manager,enlightenment, with enlightenment_start, I get an error

Enlightenment cannot initialize Ecore_X!

And then it shuts down.  Argh!

Last edited by AlecB (2013-05-30 02:38:17)


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#2 2013-05-28 17:39:54

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [Solved]I accidentally erased my home partition.

AlecB wrote:

I made an stupid error in Gparted

So... What was the stupid error?

Do you have a question? Do you want to recover your data? Do you want to simply fix the partition so you can use it again?

Offline

#3 2013-05-28 17:43:36

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

Sorry for being unclear: I want to recover data if possible, if not then I just want to fix the partition so I can use it again.


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#4 2013-05-28 17:44:57

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [Solved]I accidentally erased my home partition.

AlecB wrote:

Sorry for being unclear: I want to recover data if possible, if not then I just want to fix the partition so I can use it again.

I see. I'm sorry, I should have posted this in my original response: https://wiki.archlinux.org/index.php/File_Recovery Have you followed those instructions?

I don't have any experience recovering data. hmm

Offline

#5 2013-05-28 17:57:21

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

Thanks for the link, I should have looked there first. I've tried a few of the solutions mentioned there, and it looks like my data really is gone for good. Now my goal is just to get my system up and running again. Startx still just gives a blank screen.

Last edited by AlecB (2013-05-28 18:44:55)


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#6 2013-05-28 19:30:50

Darakus
Member
From: usa
Registered: 2011-07-05
Posts: 6

Re: [Solved]I accidentally erased my home partition.

Hello,

Make sure you have your home partition reformatted, mounted and listed properly in /etc/fstab. After this is done you should copy all the files from /etc/skel to your home directory (they are hidden dot files). This should give you a set of basic home directory files, including an .xinitrc file that you can modify to start your desktop environment using the startx command.

Hope this helps.

Offline

#7 2013-05-28 20:32:41

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

Thanks, I reformatted it, checked fstab, and mounted it. How should I copy /ect/skel? Should I copy all the files separately, or the directory?


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#8 2013-05-28 21:36:52

SecretSauce
Member
Registered: 2013-05-28
Posts: 5

Re: [Solved]I accidentally erased my home partition.

AlecB wrote:

Thanks, I reformatted it, checked fstab, and mounted it. How should I copy /ect/skel? Should I copy all the files separately, or the directory?

logged in as your user:

cp -r /etc/skel/* ~/

Offline

#9 2013-05-28 23:21:43

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

Now I can't boot normally; I go into emergency mode. I have no idea why, because it was working fine earlier today. I tried

cp -r /etc/skel/* ~/

And I got

cp: cannot stat /etc/skel/*: No such file or directory

I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#10 2013-05-28 23:35:22

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved]I accidentally erased my home partition.

Typically, a wildcard will not match a dotfile.  So you are going to have to specify the files you want copied.  Navigate to that directory and see what is in there.

Offline

#11 2013-05-29 15:22:36

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

Odd, I ran

ls /etc/skel

to see what was in the directory, but it was empty.

Last edited by AlecB (2013-05-29 15:26:35)


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#12 2013-05-29 15:47:15

arcon
Member
Registered: 2013-05-27
Posts: 128

Re: [Solved]I accidentally erased my home partition.

It shows nothing upon ls, but if you do nano /etc/skel/.xinitrc
you will see the contents of hidden .xinitrc
like this you can cp any file from there.


The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#13 2013-05-29 16:03:57

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

I added a line in /etc/skel/.xinitrc to start my Desktop Environment, but running startx still doesn't start it.  Is there a different xinitrc file I should have edited?


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#14 2013-05-29 16:20:32

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

Now I'm able to copy the xinitrc to my home file in root, but if I try in my user account I get

cp: cannot create regular file /home/(my username)/: Not a directory

I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#15 2013-05-29 17:08:40

arcon
Member
Registered: 2013-05-27
Posts: 128

Re: [Solved]I accidentally erased my home partition.

What line in .xinitrc you wrote: specify

You can use Xfce and write:

exec startxfce4 in your .xinitrc (if you are in root)

(if not root you probably have an existing .xinitrc file in you can add)

exec startxfce4

if you use gdm or kdm

you can use:

systemctl enable gdm/kdm.service and then

systemctl start gdm/kdm.service


The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#16 2013-05-29 17:09:03

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: [Solved]I accidentally erased my home partition.

What is the output of ls /home?

On a side note, this thread looks a bit help vampireish to me. Have you done any of your own research yet?

Last edited by doug piston (2013-05-29 17:10:10)

Offline

#17 2013-05-29 17:41:13

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

ls /home doesn't give me anything. And I'm sorry; I do feel a bit like a help vampire.  I'm totally confused at this point.


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#18 2013-05-29 17:47:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved]I accidentally erased my home partition.

Your $HOME is gone.  So I'm not sure how you expect to be able to copy things there.

Offline

#19 2013-05-29 18:05:24

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

arcon wrote:

What line in .xinitrc you wrote: Specify

I added

exec enlightenment_start

I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#20 2013-05-29 18:07:20

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

WonderWoofy wrote:

Your $HOME is gone.  So I'm not sure how you expect to be able to copy things there.

Argh, I was afraid of that. Would you recommend that I continue trying to repair my system, or just reinstall Arch?


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#21 2013-05-29 18:16:02

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved]I accidentally erased my home partition.

Your $HOME has nothing to do with how your system runs, other than dole out required configurations for your specific user.  If you think that creating a directory is harder than reinstalling the system, then by all means, reinstall.  But you will not learn a damn thing from simply reinstalling the system.

Just make your $HOME, set the right permissions and ownership, and then start to rebuild what you need.  I get the impression that your inability to go straight into a graphical environment implies an inability to boot.  This is not the case.


Edit: In hindsight, this information was indeed something that you could have very easily figured out yourself with even the slightest bit of effort.  I think that we really have hit help vampirism.

Last edited by WonderWoofy (2013-05-29 18:16:51)

Offline

#22 2013-05-29 18:20:07

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

I'm still booting to emergency mode, so I thought more was wrong with my system than just missing my home directory. If I am just missing the directory, then that's no big deal. But I should still be able to boot normally if that was the only problem, right?


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#23 2013-05-29 18:24:03

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]I accidentally erased my home partition.

You seem to lack basic understanding of Linux command line tools, such as the -A flag for ls:

$ ls /etc/skel/
$ ls -A /etc/skel
.bash_logout  .bash_profile  .bashrc  .xinitrc  .xsession

I think Arch is not the right distro for you, at least for the time being.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#24 2013-05-29 18:39:55

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: [Solved]I accidentally erased my home partition.

I am very new, but I'm learning quickly. I have a strong desire to learn Linux, and that's why I'm using Arch.  Most of the " User friendly" distros tend to make installation and configuration process so simple that they almost discourage you from using the command line. As a result, I've known people who have used Linux for years and still don't know the basics of how it works. That's why I choose Arch.


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#25 2013-05-29 18:59:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved]I accidentally erased my home partition.

Having a strong desire to learn is commendable. Relying on the community to hand hold you through what should be the basics is not going to help you learn or provide anything back to Arch.
Spend a lot more time between your posts researching your issue and seeking to understand it yourself.

If you need access to your machine quickly; install something else and run Arch in a virtual machine where you can afford to have it break and spend the time fixing it without a rising sense of panic.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB