LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   New Seperate Disk as /home -- Now access to programs slow. Mystery drives (https://www.linuxquestions.org/questions/ubuntu-63/new-seperate-disk-as-home-now-access-to-programs-slow-mystery-drives-542446/)

Spearhead40 04-01-2007 03:29 PM

New Seperate Disk as /home -- Now access to programs slow. Mystery drives
 
I have two seperate physical hard drives on my system. I wanted to put /home directory on the new disk. I found instructions from within LQ and everything seemed to work fine. Now I have noticed that when I go access a program, Kmail, Firefox, what have you....there is a fairly lengthy pause (at least twice as long a normal) before the program starts up.

Also, seemingly out of no where, 6 remote share drives pop up on my desktop! The names are:
Remote Share (=Loc.) --two of those
Remote Share (Balicek) -- the "c" has a symbol over it ..like maybe its Czech or something.
Remote Share (grep)
Remote Share (if)
Remote Share (mount)

The type for all of them is: Unmounted Samba (Microsoft Network) Share

So... two questions. First, what is up with these Remote Share drives? Have I been hacked or something? If so how do I get rid of them. I'm a newbie so I don't know if my security setting are correct or not....I haven't changed them.


Second, I was under the impression putting your /home directory was a good thing. so far....not impressed. But I probably did something wrong. Here are the directions I followed.

fdisk /dev/hdb

mkfs.ext3 /dev/hdb2

mount /dev/hdb2 /mnt/disk
cp -vax /home /mnt/disk --this did copy everything
umount /dev/hdb2

This next part I am not sure if it went correctly......

cat >> /etc/fstab << HERE /dev/hdb2 /home ext3 defaults, errors=remount-rw 0 1 HERE

I didn't see an immediate response the cursor just went to ">"

command typed was mount -a

Again, no obvious response just the ">"

I tried the exit command ..did not work neither did cd .. or ls

So I closed to terminal window with button in the upper right corner.

Ok, experts..... how screwed am I?

SirMsquared 04-02-2007 12:57 AM

Quote:

Originally Posted by Spearhead40
cat >> /etc/fstab << HERE /dev/hdb2 /home ext3 defaults, errors=remount-rw 0 1 HERE

It's waiting for you to enter text and end with a line that has 'HERE' only on it. All the text you enter, except the line 'HERE', will be appended to /etc/fstab.

If you know vi or vim, you should use that to edit /etc/fstab and add the relevant line (which is "/dev/hdb2 /home ext3 defaults, errors=remount-rw 0 1", although perhaps should be "/dev/hdb2 /home ext3 defaults, errors=remount-rw 1 2"). If you don't know vi or vim, gedit can do it, but be sure to delete the /etc/fstab~ file that it leaves behind afterwards.

nobody 04-02-2007 12:58 AM

please send teh output of
cat /etc/fstab
and of
cat /etc/mtab
I dont think that you changed anything in '/etc/fstab' cause what you described (change of Prompt to >) means, that the shell awaits further commands.

If you typed the command as discribed, this is the correct behaviour, because you tried to have multiple input-files.
Try to type the command the following way:
cat >> /etc/fstab << HERE
/dev/hdb2 /home ext3 defaults, errors=remount-rw 0 1
HERE
After you typed in 'cat >> /etc/fstab << HERE' and hit RETURN the Prompt should change to ">"
Then type in '/dev...' in the following line hit RETURN
and type in 'HERE' in the following line and hit RETURN
After that you should have your normal PS1 Prompt

Now check the outputs of
cat /etc/fstab
and of
cat /etc/mtab
again.
You should find a new line "/dev/hdb2 /home ext3 defaults, errors=remount-rw 0 1" at the end of '/etc/fstab'.

The command 'mount -a' mounts all filesystems in /etc/fstab. So it should work cause you mount the new /home over the old but if this works correct I would recommend, that you delete your or remark your old '/etc/fstab'-entry for the /home-directory.

archtoad6 04-02-2007 04:02 PM

You have your distro listed as Kubuntu 6.06, so I assume you are running KDE.

To edit /etc/fstab, enter "kdesu kwrite /etc/fstab" in a "Run Command" dialog box. You can open a "Run Command" dialog box either on the main menu or w/ [Alt-F2] (that's a 2-key chord).


All times are GMT -5. The time now is 08:09 PM.