LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2012, 04:36 PM   #1
alexmclin
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
Lost my profile, and config information after adding new hard drives to my system


I'm a relatively newish Linux user. I'm comfortable finding my around the system and doing research to figure out how to do stuff. But I just did something today that I want to understand what went wrong.

I recently installed a Fedora so I was playing around with it, I've set my desktop to be xfce and made some customization in my desktop background image, look, and preferred terminal colors and font. etc. Just mild getting settled in stuff.

I decided to add two hard drives, and to mount one at /home and the second one mounted at another point in my own directory, /home/alexander/codebase. The idea being that both hard drives would store my personal files and codebase stuff respectively.

After putting ext4 on both of the hard drives, I then moved /home/alexander and all of its subdirectories onto one of the new hard drives, added entries to the fstab file to mount the drives on /home and /home/alexander/codebase at boot.

I rebooted the system, logged into my desktop and everything's changed, it seems to have reverted back to the factory defaults.

I checked the fstab file and also verified that my directories are there in their usual places, the new hard drives have been mounted so I thought the system should have automatically loaded my profile and presented me with my expected look and customization.

Clearly something's gone wrong and I'd like to figure out what happened.

Can you give me an idea of what I did wrong? Thanks!

Alex
 
Old 04-07-2012, 04:50 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by alexmclin View Post
I then moved /home/alexander and all of its subdirectories onto one of the new hard drives
How exactly did you do that?

For additional info, please post the contents of your fstab and the otuput of
Code:
mount
ls -ah /home
ls -ah /home/alexander
 
Old 04-07-2012, 05:37 PM   #3
alexmclin
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Some additional information to help make sense of my output, I'm running Fedora 16 on a VirtualBox.

I also noticed that when I start a terminal, I'm no longer automatically placed in my home directory, I'm placed in / instead.

Quote:
Originally Posted by TobiSGD View Post
How exactly did you do that?
I created a temporary directory, mounted the new hard drive in that directory, then executed mv -r /home/alexander to that temporary directory.

I then umounted the hard drive, and mounted it on /home, looked and I see that my directories are showing in there again. I then edited fstab to automount the harddrives and rebooted.

Quote:
For additional info, please post the contents of your fstab and the otuput of
Code:
mount
ls -ah /home
ls -ah /home/alexander
The content of my fstab file is:

Code:
#
# /etc/fstab
# Created by anaconda on Fri Jan 20 22:18:48 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_analyticalengine-lv_root /                       ext4    defaults        1 1
UUID=a24d6ca3-44bb-4231-8736-228ba98296ab /boot                   ext4    defaults        1 2
/dev/mapper/vg_analyticalengine-lv_swap swap                    swap    defaults        0 0
/dev/sdc    /home                                               ext4    defaults        1 3
/dev/sdb    /home/alexander/Codebase                            ext4    defaults        1 4
I added the last two entries.

The output of

Code:
mount
ls -ah /home
ls -ah /home/alexander
is:

Code:
bash-4.2$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,seclabel,size=1253728k,nr_inodes=213182,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime,seclabel)
/dev/mapper/vg_analyticalengine-lv_root on / type ext4 (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,seclabel,mode=755)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,rootcontext=system_u:object_r:mnt_t:s0,seclabel,mode=755)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda2 on /boot type ext4 (rw,relatime,seclabel,user_xattr,acl,barrier=1,data=ordered)
/dev/sdc on /home type ext4 (rw,relatime,seclabel,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb on /home/alexander/Codebase type ext4 (rw,relatime,seclabel,user_xattr,acl,barrier=1,data=ordered)
bash-4.2$ ls -ah /home
.  ..  alexander
bash-4.2$ ls -ah /home/alexander
.	       .cache	  Downloads	   .gnupg	    .mozilla	     Templates
..	       codebase   .emacs.d	   .gstreamer-0.10  Music	     .vboxclient-clipboard.pid
.abrt	       Codebase   .esd_auth	   .gtk-bookmarks   Pictures	     .vboxclient-display.pid
.bash_history  .config	  .fontconfig	   .gvfs	    Public	     .vboxclient-seamless.pid
.bash_logout   .dbus	  .gconf	   .ICEauthority    .pulse	     Videos
.bash_profile  Desktop	  .gnome2	   .imsettings.log  .pulse-cookie    .xscreensaver-getimage.cache
.bashrc        Documents  .gnome2_private  .local	    .setroubleshoot  .xsession-errors
bash-4.2$
Appreciate your help!

Last edited by alexmclin; 04-07-2012 at 05:46 PM. Reason: minor formatting
 
Old 04-07-2012, 05:56 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
While it is very uncommon that you don't use partitions on the new disks this should normally not be the problem. Sounds like the way I would have done it. For the contents of your home directory I gave you the wrong command, sorry, that should be[code]ls -alh /home/alexander[code]
 
Old 04-07-2012, 06:07 PM   #5
alexmclin
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
To be honest, I have no reason why I didn't add any partitions to the hard drives. I just invoked mkfs.ext4 on them.

Quote:
Originally Posted by TobiSGD View Post
While it is very uncommon that you don't use partitions on the new disks this should normally not be the problem. Sounds like the way I would have done it. For the contents of your home directory I gave you the wrong command, sorry, that should be
Code:
ls -alh /home/alexander
The output is:

Code:
bash-4.2$ ls -alh /home/alexander
total 144K
drwx------. 27 alexander alexander 4.0K Apr  7 17:30 .
drwxr-xr-x.  3 root      root      4.0K Apr  7 15:39 ..
drwxrwxr-x.  2 alexander alexander 4.0K Jan 21 09:41 .abrt
-rw-------.  1 alexander alexander   98 Apr  7 16:38 .bash_history
-rw-r--r--.  1 alexander alexander    0 Jun 22  2011 .bash_logout
-rw-r--r--.  1 alexander alexander    0 Jun 22  2011 .bash_profile
-rw-r--r--.  1 alexander alexander    0 Jun 22  2011 .bashrc
drwx------.  6 alexander alexander 4.0K Apr  7 17:29 .cache
drwxr-xr-x.  2 root      root      4.0K Apr  7 15:58 codebase
drwxr-xr-x.  4 root      root      4.0K Apr  7 16:39 Codebase
drwx------.  8 alexander alexander 4.0K Apr  7 15:59 .config
drwx------.  3 alexander alexander 4.0K Jan 21 09:41 .dbus
drwxr-xr-x.  2 alexander alexander 4.0K Jan 21 09:41 Desktop
drwxr-xr-x.  2 alexander alexander 4.0K Apr  7 16:04 Documents
drwxr-xr-x.  2 alexander alexander 4.0K Jan 21 09:41 Downloads
drwx------.  3 alexander alexander 4.0K Jan 22 19:56 .emacs.d
-rw-------.  1 alexander alexander   16 Apr  7 16:00 .esd_auth
drwxr-xr-x.  2 alexander alexander 4.0K Apr  6 20:40 .fontconfig
drwx------.  3 alexander alexander 4.0K Apr  7 17:29 .gconf
drwxr-xr-x.  4 alexander alexander 4.0K Jan 22 19:50 .gnome2
drwx------.  2 alexander alexander 4.0K Jan 22 19:50 .gnome2_private
drwx------.  3 alexander alexander 4.0K Apr  7 17:29 .gnupg
drwxrwxr-x.  2 alexander alexander 4.0K Apr  7 16:00 .gstreamer-0.10
-rw-------.  1 alexander alexander    0 Jan 21 09:43 .gtk-bookmarks
drwx------.  2 alexander alexander 4.0K Jan 21 09:41 .gvfs
-rw-------.  1 alexander alexander  620 Apr  7 17:29 .ICEauthority
-rw-r--r--.  1 alexander alexander 2.0K Apr  7 17:29 .imsettings.log
drwxr-xr-x.  3 alexander alexander 4.0K Jan 21 09:41 .local
drwxr-xr-x.  5 alexander alexander 4.0K Jan 22 19:50 .mozilla
drwxr-xr-x.  2 alexander alexander 4.0K Jan 21 09:41 Music
drwxr-xr-x.  2 alexander alexander 4.0K Jan 21 09:41 Pictures
drwxr-xr-x.  2 alexander alexander 4.0K Jan 21 09:41 Public
drwx------.  2 alexander alexander 4.0K Jan 21 09:42 .pulse
-rw-------.  1 alexander alexander  256 Apr  7 16:00 .pulse-cookie
-rw-r--r--.  1 alexander alexander    0 Apr  6 20:41 .setroubleshoot
drwxr-xr-x.  2 alexander alexander 4.0K Jan 21 09:41 Templates
-rw-r-----.  1 alexander alexander    5 Apr  7 17:29 .vboxclient-clipboard.pid
-rw-r-----.  1 alexander alexander    5 Apr  7 17:29 .vboxclient-display.pid
-rw-r-----.  1 alexander alexander    5 Apr  7 17:29 .vboxclient-seamless.pid
drwxr-xr-x.  2 alexander alexander 4.0K Jan 21 09:41 Videos
-rw-rw-r--.  1 alexander alexander  170 Apr  7 16:36 .xscreensaver-getimage.cache
-rw-------.  1 alexander alexander    0 Apr  7 15:14 .xsession-errors
 
Old 04-07-2012, 06:20 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
So the permissions in your home-directory look good, if there aren't any problems with the ACLs that prevent your config files from being readable. Just a shot in the dark, but may be trying wo mount those partitions without ACL could help. Otherwise I am totally clueless, since everything seems to look OK.
 
Old 04-07-2012, 06:51 PM   #7
alexmclin
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Since it was a new installation, it's no biggie for me to reinstall the system.

I might experiment a bit and see whether creating partitions on the drives before duplicating the steps makes any difference. Would be interesting to find out.

Thank you for your input, I was trying to figure out whether my understanding of Linux' filesystem was faulty. It seems that I had the right idea, just that its execution threw up some unexpected surprises.
 
Old 04-07-2012, 06:53 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Please post back if you find what caused this, I am also interested in knowing that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Hard Drive has me LOST! dougp25 Linux - Hardware 4 10-06-2010 01:30 PM
All hard drives are lost on boot Padawan.AVT Linux - Hardware 7 07-28-2010 07:43 AM
Hard Drives Information kopper27 Linux - Newbie 2 04-22-2010 03:19 PM
Adding Hard drives from former XP o/s theonlylivinggo Linux - Hardware 8 02-09-2004 10:29 PM
E-Smith 5.6 adding Hard Drives mickboda Linux - Networking 0 01-26-2004 10:56 PM


All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration