Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th December 2008, 02:45 AM
BenTrein's Avatar
BenTrein Offline
Registered User
 
Join Date: Sep 2008
Location: Thailand
Age: 36
Posts: 355
Move Home directory

I have 2 questions. First the long one:

I did a clean install of F10 (64bit), having had F9 for a while.
In F9 I had the following setup:

sda1 = Windoze XP
sda2 = F9
sda3 = swap
sdb1 = /home
sdb2 = ntfs disk

Not wishing to format sdb1, for there's some data there now that I don't want to lose, during the F10 install, I set sda2 and sda3 to format. I didn't touch or point to sdb1, which was displayed as having /home as mount point.

Now F10 is installed, I have an icon on my desktop saying BenTrein's home, and a mounted disk icon named /home; the latter being a link to sdb1, the former being a new home directory on sda2. Without reinstalling, how can I merge these two; or how can I delete the home directory on sda2 (as it's empty), and direct the BenTrein's home icon to sdb1/home?

And then the short question:
Upon startup, all disks are automatically mounted, including sda1. How can I prevent sda1 from mounting? It has no use while running Fedora...
__________________
Greetz (and thanks for all the help!)
BenTrein

The internet isn't a highway, it's a swamp. The more you surf the more it draws you in!

Great authors suffer from Writer's Block. I cherrish my Writer's Blog!
Reply With Quote
  #2  
Old 5th December 2008, 02:56 AM
daverj Offline
Registered User
 
Join Date: Jan 2006
Location: Denver, CO USA
Posts: 670
If I understand your issue correctly, simply edit /etc/fstab to make /dev/sdb1 the mount point for /home. The file is easy to understand. If you don't understand it by reading it, read the man page:
Code:
man fstab
also, remove the sda1 entry from fstab. That will prevent it from mounting on boot.

davidj
Reply With Quote
  #3  
Old 5th December 2008, 03:04 AM
BenTrein's Avatar
BenTrein Offline
Registered User
 
Join Date: Sep 2008
Location: Thailand
Age: 36
Posts: 355
Quote:
Originally Posted by daverj View Post
If I understand your issue correctly, simply edit /etc/fstab to make /dev/sdb1 the mount point for /home. The file is easy to understand.
Thanks; it seems straightforward enough, and I understand where you're coming from. fstab under F9 was indeed easy to understand, but when I edit it in F10, I get confused. Here's my /etc/fstab:

Code:
#
# /etc/fstab
# Created by anaconda on Fri Dec  5 10:02:53 2008
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=19eaa4c0-64a7-4fd6-a493-870be38891a9 /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
UUID=e3f37894-6ccf-4803-9911-2e313b43da93 swap                    swap    defaults        0 0
Perhaps I need to edit a different file?
__________________
Greetz (and thanks for all the help!)
BenTrein

The internet isn't a highway, it's a swamp. The more you surf the more it draws you in!

Great authors suffer from Writer's Block. I cherrish my Writer's Blog!
Reply With Quote
  #4  
Old 5th December 2008, 03:44 AM
daverj Offline
Registered User
 
Join Date: Jan 2006
Location: Denver, CO USA
Posts: 670
no, you just need to make a new entry:
Code:
/dev/sdb1 /home ext3 defaults 1 2
davidj
Reply With Quote
  #5  
Old 5th December 2008, 03:59 AM
BenTrein's Avatar
BenTrein Offline
Registered User
 
Join Date: Sep 2008
Location: Thailand
Age: 36
Posts: 355
And then reboot, I asume. I will, later.

What do I need to change not to auto-mount the sda1 (Windoze disk)?
__________________
Greetz (and thanks for all the help!)
BenTrein

The internet isn't a highway, it's a swamp. The more you surf the more it draws you in!

Great authors suffer from Writer's Block. I cherrish my Writer's Blog!
Reply With Quote
  #6  
Old 5th December 2008, 07:25 AM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
Add this line to fstab:

/dev/sda1 /media/Windows ntfs-3g noauto,user,umask=0000 0 0

That will allow you to mount it without being root, but won't auto mount it anymore. One thing that often bites new users: remember to hit Enter at the end of the line if this is the last line in fstab, as mount will complain and ignore the line if you don't.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #7  
Old 5th December 2008, 08:41 AM
BenTrein's Avatar
BenTrein Offline
Registered User
 
Join Date: Sep 2008
Location: Thailand
Age: 36
Posts: 355
I'm as of now very very hesitant to edit anything in the F10 fstab. I added daverj's advice, and upon next reboot, I ran into an error that I couldn't bypass. No matter what I tried, it said this was not a valid ext3 drive, and wouldn't load fedora any more; so much for ignoring a line it doesn't understand! ... :s
So I ended up re-installing F10; this time, I assigned the old /home directory as the current home directory. This works, however, now it doesn't automount any drive any more... :s
__________________
Greetz (and thanks for all the help!)
BenTrein

The internet isn't a highway, it's a swamp. The more you surf the more it draws you in!

Great authors suffer from Writer's Block. I cherrish my Writer's Blog!
Reply With Quote
  #8  
Old 5th December 2008, 09:45 AM
Gundumfx Offline
Registered User
 
Join Date: Jul 2006
Posts: 63
try /dev/sdb1 /home ext3 defaults 0 0
Reply With Quote
  #9  
Old 6th December 2008, 07:25 AM
BenTrein's Avatar
BenTrein Offline
Registered User
 
Join Date: Sep 2008
Location: Thailand
Age: 36
Posts: 355
Re-install later, I'm extremely hesitant to edit fstab ever again. The fstab in F10 (X64) is a lot harder to understand than the fstab in F9.
The reason I'm so hesitant is that the previous 2 times that I edited fstab I got a fatal crash upon startup, and nothing I knew how to do worked except for a complete clean re-install.

This is my fstab:
Code:
#
# /etc/fstab
# Created by anaconda on Fri Dec  5 22:50:45 2008
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=2e3b881f-9aa6-4429-84ee-218d6faaa7c8 /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
UUID=f0ced6ca-3bf8-475e-a9cb-62cbb3a46ae8 swap                    swap    defaults        0 0
What I want to happen now, is the same as in the first post. I want the "BenTrein's home" icon on the desktop to point to another disk. Now it points to sda2, and I want it to be on sdb2, which is formated as ext3.
Next I want to automount one of the two ntfs formated drives, which is on sdb1, and I now manually mount it on /mnt/data
I don't know the UUID code for those disks.

Could someone please post the whole code that should be in my fstab (so not only 'add this', but also show where to add it). If to do that, you need more information, I'm of course ready to provide it, but I need to know where to look.
__________________
Greetz (and thanks for all the help!)
BenTrein

The internet isn't a highway, it's a swamp. The more you surf the more it draws you in!

Great authors suffer from Writer's Block. I cherrish my Writer's Blog!
Reply With Quote
  #10  
Old 6th December 2008, 07:41 AM
papal's Avatar
papal Offline
Registered User
 
Join Date: Nov 2008
Posts: 81
You don't need to reboot to test or use edits to fstab. In fact you don't want to because of precisely what happened to you. Just use a mount -a to test (you can also use the device name of course, I just find -a is quick and easy). If it complains, fix it, if it's good well, not only is it now mounted and ready to go, but it'll work on the next reboot (when you have to reboot for legitimate reasons).
Reply With Quote
  #11  
Old 6th December 2008, 09:07 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
Quote:
Originally Posted by BenTrein View Post
Re-install later, I'm extremely hesitant to edit fstab ever again. The fstab in F10 (X64) is a lot harder to understand than the fstab in F9.
The reason I'm so hesitant is that the previous 2 times that I edited fstab I got a fatal crash upon startup, and nothing I knew how to do worked except for a complete clean re-install.
Daverj gave solid advise. The fstab should look like this:
Code:
#
# /etc/fstab
# Created by anaconda on Fri Dec  5 22:50:45 2008
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=2e3b881f-9aa6-4429-84ee-218d6faaa7c8 /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
UUID=f0ced6ca-3bf8-475e-a9cb-62cbb3a46ae8 swap                    swap    defaults        0 0
/dev/sdb1 /home ext3 defaults 1 2

Since you had a problem let's try another approach first.

As root try these commands:
mkdir /tmp/mp
mount -t ext3 /dev/sdb1 /tmp/mp

If that works then do "umount /tmp/mp", edit the fstab as above, then try "mount -a" no reboot necessary.
Reply With Quote
  #12  
Old 6th December 2008, 12:36 PM
BenTrein's Avatar
BenTrein Offline
Registered User
 
Join Date: Sep 2008
Location: Thailand
Age: 36
Posts: 355
Thanks for that. It worked.

After trying that, I did a reboot though - needed to go shopping according to the wife - and upon startup I suddenly found all sdb disks on my desktop (1 and 2), automounted. So now I have my home directory linked to the sdb disk, and a seperate disk icon linked to the same thing. Any ideas how to get that icon to hide/disappear? But hey, better two icons to the same place than none!

Edit: After another reboot, I have another problem... The mounted drives are on the desktop, and the home disk icon is gone; only the home folder icon is there. All fine so far. However, I had a few things saved on the desktop (a folder with pictures I needed to sort out). They are no longer on the desktop; possibly because now a new desktop folder has been assigned. Is there anywhere I can find the old desktop folder and retrieve those pics?
__________________
Greetz (and thanks for all the help!)
BenTrein

The internet isn't a highway, it's a swamp. The more you surf the more it draws you in!

Great authors suffer from Writer's Block. I cherrish my Writer's Blog!

Last edited by BenTrein; 6th December 2008 at 01:17 PM.
Reply With Quote
Reply

Tags
directory, home

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
useradd used with no home directory still shows home dir in passwd file marko Using Fedora 0 15th October 2008 08:30 PM
how to move /home kcb Using Fedora 1 15th February 2008 02:11 AM
How to move the /home directory to another partition after install luv_the_stars Using Fedora 14 4th February 2008 07:38 PM
fedora directory server with automounting home directory balorg Servers & Networking 2 7th August 2006 12:20 AM
How to move Home directory to new partition? d-kam Using Fedora 7 10th August 2005 12:45 PM


Current GMT-time: 22:52 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat