-   Linux - Newbie (
-   -   mount (

Zero4 10-28-2010 07:32 PM

I have searched the other threads for the answer but they did'nt help

I have a native partition hda2 mounted on /usr, and i want to change it because everything i copy to hda2 is also copied to /usr, which is not what i want.

I tried to umount it, but it would'nt let me. I tried to edit /etc/fstab but that did'nt work either. I never thought it could be that easy

What do i need to do to remount the partition at another mount point. Is it possible to mount it as just hda2

I am using Suse 10.2

Thank you for your help, I know this is a basic question but i am as thick as a box of rocks

jv2112 10-28-2010 07:57 PM

mkdir /mount point u want

mount /dev/hda2 /mount pount u want

update /etc/fstab

Hope this helps :hattip:

evo2 10-28-2010 08:32 PM

So that we can see what the current status is, please post the output of:


Also, what command did you issue to try to unmount the partition, and what was the error message returned?


Zero4 10-28-2010 09:57 PM

here's the output of mount
/dev/hda1 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda2 on /usr type ext3 (rw,acl,user_xattr)
securityfs on /sys/kernel/security type securityfs (rw)

I tried to change the mount with yast using partitioner
Hope this helps

yancek 10-28-2010 11:21 PM

If you don't want sda2 mounted at /usr you need to create another mount point (directory) that you want to use. If this is just a data partition, you could just call it data and run these commands. You need to be root to do it:

su - (hit the enter key, will be prompted for your password, enter it)
mkdir /mnt/data
mount -t ext3 /dev/sda2 /mnt/data (if you're not using ext3 filesystem, change that)

Then make the change in fstab. Logged in to a terminal as root:
kwrite /etc/fstab (should open kwrite text editor, if that doesn't work use whatever text editor you are familiar with and replace kwrite with whatever that might be. vi editor would work if you know how to use it)

evo2 10-29-2010 12:31 AM

To umount it you should just need to do the following as root:

umount /usr
then you can mount it whereever you like (as suggested by yancek).

To have it mounted automatically add a line like the following to your /etc/fstab

/dev/sda2 /mnt/data ext3 defaults 0 0
(assuming you have created the mount point as suggested by yancek).


All times are GMT -5. The time now is 03:50 AM.