LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-21-2009, 08:17 AM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,200

Rep: Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541Reputation: 2541

fstab is a static file i.e. it is only modified by root. Any filesystem can be mounted manaully. If you execute the mount command without options it will output all mounted filesystems. You should see something similar to:
/dev/hda3 on /home type ext3 (rw)

Your existing home directories on hda2 will now be invisible and any user configuration files unique to the current debian will not be accessible. To migrate your existing system to the new home partition then you will want to perform the steps as shown in schneidz's post.
 
Old 02-21-2009, 04:36 PM   #17
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
I have already done

mount /dev/hda3 /home

This did't not make any difference. My home directory is still attached to ha2 which belongs to /.

I tried adding a line to fstab this kept forcing me into safe mode.

So i went into terminal and took that line out of fstab and am back to square one.
I can boot into desktop fine but home directory still attached to hda2 root.
 
Old 02-22-2009, 10:33 PM   #18
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,249

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Quote:
Originally Posted by siawash View Post
I tried adding a line to fstab this kept forcing me into safe mode.
^ maybe some permissions problem.

try:
mkdir /home2
mount /dev/hda3 /home2
cp /etc/passwd /etc/passwd-bak
gedit /etc/passwd # then change the home dir for the users you want (sixth column)


to make it persistent add this line to your /etc/fstab:
/dev/hda3 /home2 ext3 defaults 0 0

are you able to access your reiserfs partition ?

Last edited by schneidz; 02-22-2009 at 10:36 PM.
 
Old 02-26-2009, 11:19 AM   #19
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
I actually solved the problem by a rebuild. Could you be kind enough to clarify mounting external drives.

Would it be possible from now on to dedicate the /home directory to my external usb drive. For example, to have one big root partition. On the / partition i would create a /home. Each time I power up my system I have to manually mount the usb drive ( mount dev/sdb1 /home )...


Then before powering down I manually unmount.

Is that viable???

Or is it better to have dedicated /home partition and have an added extra on the external drive.?

Last edited by siawash; 02-26-2009 at 11:26 AM.
 
Old 02-26-2009, 01:09 PM   #20
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,249

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
^i'm confused by what you are asking. if you have two physical hard drives then you have at least 2 partitions no matter where you mount them.

if you dont want to manually mount and umount /home then add an entry in /etc/fstab.
 
Old 02-26-2009, 02:21 PM   #21
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Well, the original problem was due ( as you seemed to have identified ) to my /home drive from previous installation not being correctly mounted during installation. A rebuild corrected the problem. Yes, the original problem was dealing with internal ide drvies.

Now i am asking about attaching an external usb drive permenantly to the /home partition to improve data security in case of system failures.

Because the usb drive is hot swappable I was asking about having to remember to mount it each time i power on my system and again unmounting before i power off.

Am i correct in this assumption. For example, the home directory would be attached to sdb1 or by simply editing fstab i remove the need for manual mounting.???
 
  


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
mounting a mount (recursive mounting?) fudam Linux - General 6 10-16-2006 05:50 PM
mounting digital camera, mounting in general? lugoteehalt Linux - Hardware 6 08-29-2006 12:52 PM
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 04:40 PM
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 07:34 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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