mount
Hi
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 |
mkdir /mount point u want
mount /dev/hda2 /mount pount u want update /etc/fstab Hope this helps :hattip: |
So that we can see what the current status is, please post the output of:
Code:
mount Evo2. |
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 |
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) |
To umount it you should just need to do the following as root:
Code:
umount /usr To have it mounted automatically add a line like the following to your /etc/fstab Code:
/dev/sda2 /mnt/data ext3 defaults 0 0 Evo2. |
All times are GMT -5. The time now is 02:17 PM. |