LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 09-30-2005, 11:22 AM   #1
Sigkill(9)
Member
 
Registered: Jan 2005
Location: Dallas/TX
Distribution: OpenBSD/FreeBSD/Debian/Mac OS X
Posts: 40

Rep: Reputation: 15
Moved /home can't mount reiserfs


I recently moved my fc4 wemail server from a 9G to a 250G HD
I created a new partition for /home then cp -ax /home to the new partition on /dev/hda4

Now I would like to mount /dev/hda4 to the new home.
After reboot it's just not working.


/etc/fstab follows:


LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/hda4 /home reiserfs defaults 1 3
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0


Thank you in advance
 
Old 09-30-2005, 11:48 AM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, SolydK 2013
Posts: 7,434

Rep: Reputation: 134Reputation: 134
"Now I would like to mount /dev/hda4 to the new home.
After reboot it's just not working."

What error messages or error indications are you getting?

----------------------------
Steve Stites
 
Old 09-30-2005, 11:49 AM   #3
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
I'm guessing you make a temporary directory to mount /dev/hda4 on before you performed the cp. After you did the cp, did you check it?
 
Old 09-30-2005, 01:34 PM   #4
Sigkill(9)
Member
 
Registered: Jan 2005
Location: Dallas/TX
Distribution: OpenBSD/FreeBSD/Debian/Mac OS X
Posts: 40

Original Poster
Rep: Reputation: 15
Yes. I did the temp mount to do the cp.

There is no error.

The original /home is there still.

Must I remove it and recreate it?
 
Old 09-30-2005, 01:38 PM   #5
Sigkill(9)
Member
 
Registered: Jan 2005
Location: Dallas/TX
Distribution: OpenBSD/FreeBSD/Debian/Mac OS X
Posts: 40

Original Poster
Rep: Reputation: 15
Maybe this will illustrate the problem better.

The old /home is on /dev/hda2

df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 8.4G 6.3G 1.7G 80% /


I can manually mount it:

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 8.4G 6.3G 1.7G 80% /
/dev/hda4 225G 722M 224G 1% /mnt
 
Old 09-30-2005, 02:00 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, FreeBSD
Posts: 3,925
Blog Entries: 5

Rep: Reputation: Disabled
I may be missing something obvious, but how about:
  • Get to runlevel 3 so you can log in directly as root in text mode (so that you're not using files in /home).
  • Create a new directory, say, /new-home.
  • Mount /dev/hda4 to /new-home.
  • Copy the /home directory contents to /new-home (remembering to preserve permissions and whatever else you need to do).
  • Rename /home to /home-old, and rename /new-home to /home.
  • Make sure your /etc/fstab reflects the changes.
 
Old 09-30-2005, 02:01 PM   #7
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Something doesn't seem right. You show the same thing in;
df -h /home
as;
df -h
Where just df -h /home should just show what *Used* is there.
As root do;
# du -sh /home

Not sure what you have, but some distros make other directories inside /mnt, so in that case you would need to mkdir /mnt/tmp && cp -ar /home /mnt/tmp as root.

Let's see what you have.
 
Old 09-30-2005, 02:13 PM   #8
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
anomie, yeah, that's pretty much it.
 
Old 09-30-2005, 02:20 PM   #9
Sigkill(9)
Member
 
Registered: Jan 2005
Location: Dallas/TX
Distribution: OpenBSD/FreeBSD/Debian/Mac OS X
Posts: 40

Original Poster
Rep: Reputation: 15
Here's what I did:

init 1

mount -t reiserfs /dev/hda4 /mnt
cd /home
cp -avx * /mnt
cd /
mv /home /home.old
mkdir /home


#added the following line to /etc/fstab

/dev/hda4 /home reiserfs defaults 1 3

reboot

after rebooting /dev/hda4 is not mounted /home

** I have to manually mount it since it's the prod webserver**
 
Old 09-30-2005, 02:25 PM   #10
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
You say you "Added line.. " Real stupid question here..... you did remove the old entry. I say that since you said "Added" rather than "Change".

And every thing is there when you manually mount it?
 
Old 09-30-2005, 02:33 PM   #11
Sigkill(9)
Member
 
Registered: Jan 2005
Location: Dallas/TX
Distribution: OpenBSD/FreeBSD/Debian/Mac OS X
Posts: 40

Original Poster
Rep: Reputation: 15
There were no references to /home in the fstab.

The old admin installed it had home and all else on the same slice.

/dev/hda2 8704716 6540460 1722068 80% /
 
Old 09-30-2005, 02:35 PM   #12
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
okay, got it.
hmmm... seem strange.
thinking......
 
Old 09-30-2005, 02:40 PM   #13
Sigkill(9)
Member
 
Registered: Jan 2005
Location: Dallas/TX
Distribution: OpenBSD/FreeBSD/Debian/Mac OS X
Posts: 40

Original Poster
Rep: Reputation: 15
During boot I noticed this error of which references an entry in the fstab

LABEL=/boot duplicate - not mounted

If an error occurs in the fstab during boot does *nix continue to load the following entries or abort the whole thing?
 
Old 09-30-2005, 02:41 PM   #14
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
What does fdisk -l show?
 
Old 09-30-2005, 02:48 PM   #15
Sigkill(9)
Member
 
Registered: Jan 2005
Location: Dallas/TX
Distribution: OpenBSD/FreeBSD/Debian/Mac OS X
Posts: 40

Original Poster
Rep: Reputation: 15
[root@webmail root]# fdisk -l

Disk /dev/hda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1114 8843782+ 83 Linux
/dev/hda3 1115 1244 1044225 82 Linux swap
/dev/hda4 1245 30515 235119307+ 83 Linux
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
moved /home - now it seems everythings gone! aes canis Linux - General 4 05-10-2005 03:16 PM
mount / , /home , /home/usr on different partitions alekoos Slackware 14 05-03-2004 11:39 AM
moved home: permission denied mtb Linux - Software 4 12-17-2003 06:09 AM
Reformatting /home/user partition to reiserfs procedures wrc1944 Linux - General 1 06-01-2003 08:15 PM
/home has been successfully moved jeremy LQ Suggestions & Feedback 3 08-18-2000 05:25 PM


All times are GMT -5. The time now is 02:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration