LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-09-2007, 03:41 PM   #1
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Rep: Reputation: 16
Problems Mounting to move /home to a partition and other quirkes


I want to move my home directory to a new partition. Here is what I have.

[root@toblocal /]# fdisk -l

Disk /dev/hda: 20.0 GB, 20020396032 bytes
16 heads, 63 sectors/track, 38792 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 20321 10241406 83 Linux
/dev/hda2 * 20321 20528 104422+ 83 Linux
/dev/hda3 20528 38792 9205245 8e Linux LVM
[root@toblocal /]#

I get the feeling that LVM is causing me a problem. I am new to LVM never had any need for it and really wish it was not here. I inherited this system so I have to deal with it. hda1 is free space hda2 is swap and hda3 is root with the /home directory.

Why can I not mount this partition?

[root@toblocal /]# mount -t ext3 /dev/hda1 /mnt/home
mount: /dev/hda1 already mounted or /mnt/home busy
[root@toblocal /]#

I just created /mnt/home so it's not busy. Also check this out:

[root@toblocal /]# umount /dev/hda1
umount: /dev/hda1: not mounted
[root@toblocal /]#

So now it's telling me its not mounted, I don't get it???And This:

[root@toblocal /]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
ext3 7.6G 6.4G 863M 89% /
/dev/hda2 ext3 99M 90M 4.4M 96% /boot
none tmpfs 252M 0 252M 0% /dev/shm
[root@toblocal /]#

Huh???? What??? Where are my partitions?

If any one can make sense of this I'd be much obliged. Thanks in advance.
 
Old 03-09-2007, 04:18 PM   #2
backthefup
LQ Newbie
 
Registered: Dec 2006
Posts: 23

Rep: Reputation: 15
ext3

It may sound like a silly question but have you formatted /dev/hda1 yet? And was that successful?
mkfs.ext3 /dev/hda1
 
Old 03-09-2007, 04:27 PM   #3
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by backthefup
It may sound like a silly question but have you formatted /dev/hda1 yet? And was that successful?
mkfs.ext3 /dev/hda1
No not a silly question at all and thanks for your reply. /dev/hda1 is formatted and I still get:

[root@toblocal /]# mount -t ext3 /dev/hda1 /mnt/home
mount: /dev/hda1 already mounted or /mnt/home busy
[root@toblocal /]#

After it's formatted do I have to do anything else like restart a process or reboot or something?
 
Old 03-09-2007, 07:14 PM   #4
backthefup
LQ Newbie
 
Registered: Dec 2006
Posts: 23

Rep: Reputation: 15
fstab?

Since it's strange to me that /dev/hda1 is your freespace, I would check /etc/fstab & make sure /dev/hda1 isn't already assigned to something conflicting.
 
Old 03-09-2007, 08:26 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Here is the guide I used, I just prescribed it the other day to someone else and he/she was also successful.

http://ubuntu.wordpress.com/2006/01/...own-partition/

Edit: The person I prescribed it too was also using LVM

http://www.linuxquestions.org/questi...d.php?t=534841

Last edited by Junior Hacker; 03-09-2007 at 08:28 PM.
 
Old 03-09-2007, 11:11 PM   #6
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by backthefup
Since it's strange to me that /dev/hda1 is your freespace, I would check /etc/fstab & make sure /dev/hda1 isn't already assigned to something conflicting.
Yea that is weird and I forgot to mention why. I had a dual boot going win2k/Fedora. Win2k was on hda1 and I got rid of that. Could Grub or the MBR be messing with it some how?

I will post my fstab but I can't ssh to this server outside the network so it will have to wait till Monday.

Quote:
Originally Posted by Junior Hacker
Here is the guide I used, I just prescribed it the other day to someone else and he/she was also successful.

http://ubuntu.wordpress.com/2006/01/...own-partition/

Edit: The person I prescribed it too was also using LVM

http://www.linuxquestions.org/questi...d.php?t=534841
II've actually come accross both those web pages in my searches but I still can't get by the mounting? Anyway have a great weekend.
 
Old 03-12-2007, 08:18 AM   #7
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by backthefup
Since it's strange to me that /dev/hda1 is your freespace, I would check /etc/fstab & make sure /dev/hda1 isn't already assigned to something conflicting.
Ok here is fstab:


[root@toblocal /]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdd /media/cdrecorder auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/hdc /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
[root@toblocal /]#


Thanks.

Last edited by redir; 03-12-2007 at 08:19 AM. Reason: disable smilies
 
  


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
How do I move /home to a new partition? glenn69 Linux - Newbie 2 01-05-2005 11:15 PM
how can I move my /home to anohther partition ? linjia Linux - Software 1 12-11-2004 12:07 PM
How do i move /home to a new partition? glenn69 Linux - General 8 06-25-2004 12:38 PM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 11:19 PM
Move /home to Windows Partition Campy19 Mandriva 2 11-23-2003 01:24 AM

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

All times are GMT -5. The time now is 08:54 AM.

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
Open Source Consulting | Domain Registration