mounting primary slave hard drive with home directory

Asked by IOPort51

I am using Ubuntu 8.4. I have been using a 10G IDE drive for the OS and the home directory on a 250G IDE , they are installed on two separate IDE connections on the mother board.
By my own foolishness I had trashed the original OS install and I did a fresh install on the 10G drive. The 250G now shows up as a media drive. rather than a partition of the total and at boot up it does not mount the second drive. I am trying to save the files on the 2nd drive. I did the install specifically on the 10G drive from the live disk. Did I miss something when I did the install?? I have the information to move the home to a second partition but it doesn't seem to want to work on a "media drive".
   So the object is to have the second drive mount as the home directory at boot up.
  It has been a couple of years since I did this the first time and Had a lot of help from my buddy Bob the Ubuntu guru. I should like to do this my self this time.
       This has been hours and hours of entertainment

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
IOPort51
Solved:
Last query:
Last reply:
Revision history for this message
hardcorelinux (hardcorelinux) said :
#1

edit /etc/fstab(sudo vi /etc/fstab)
add line:
/dev/sdb1 /home ext3 defaults 0 2

Assuming your 250GB HD has one partition(/dev/sdb1) and has a ext3 filesystem
Save the changes(:wq)

reboot.

Revision history for this message
IOPort51 (lbcurtis) said :
#2

the partition is /dev/sda2 with a ext file system
the edit line in the terminal
ioport51@tyrone-desktop:~$ edit /etc/fstab
Warning: unknown mime-type for "/etc/fstab" -- using "application/*"
Error: no write permission for file "/etc/fstab"

sudo vi /etc/fstab results in

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
UUID=776033be-cd7f-4380-b56a-8d50a1c02c0b / ext3 relatime,errors=remount-ro 0 1
# /dev/hda5
UUID=8c7040d4-f1d6-4e0c-b250-7c27811ac28c none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
~
~
~
~
~
~
~
~
~
~
~
"/etc/fstab" 10 lines, 555 characters

I can enter the text editor but it will not give me permission to save the changed to the /etc/fstab file

Revision history for this message
IOPort51 (lbcurtis) said :
#3

the partition is /dev/sda2 with a ext3 file system

Revision history for this message
IOPort51 (lbcurtis) said :
#4

ioport51@tyrone-desktop:~$ sudo edit /etc/fstab
Warning: unknown mime-type for "/etc/fstab" -- using "application/*"
Error: no "edit" mailcap rules found for type "application/*"

Revision history for this message
André Carezia (carezia) said :
#5

Press Alt+F2. Type the following:

  gksudo gedit /etc/fstab

Add the following line at the end of file:

  /dev/sda2 /home ext3 defaults 0 0

Save and close gedit.

Reboot.

Revision history for this message
IOPort51 (lbcurtis) said :
#6

bravo!! this mounted the second hard drive.
now to make a new home directory in that drive.
I am using the tutorial at http://www.psychocats.net/ubuntu/separatehome

I am going to keep this open untill I make this happen.

as it is I receive the error "users $HOME/.dmrc file is being ignored

I went to the failsafe terminal and performed the

chown -R username:username /home/username
chmod 644 /home/username/.dmrc
chmod 644 /home/username/.ICEauthority
exit

exercise, changing all the user name's but with no result

in the text editor I find a home back_up inside the home directory and an empty home-backup directory seperate. the new and old directories are also empty.

I have managed to edit the /etc/fstab file with the /dev/sda2 /home ext3 defaults 0 0 and the /dev/sda2 /home ext3 nodev,nosuid 0 2

I am thinking I may have caused a problem when I tried to make the new home in a drive that was just a media drive in which case I may need to reload the OS once more and add the drive in /etc/ftab before I try to make the new home.

any other thoughts would be welcome.

Revision history for this message
André Carezia (carezia) said :
#7

Open a terminal and type the following commands, with new /home mounted:

  ls -l /home
  ls -l ~

Post the result here, please.

Revision history for this message
IOPort51 (lbcurtis) said :
#8

I thank all for the help.
I have abandoned the separate partition home project and reloaded on a 1 Tb SATA drive.
what a coward!!
some day when there is more time.

I will speak well of you to people you don't know when you are not around.
thanks again