LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2010, 07:32 PM   #1
Zero4
Member
 
Registered: Jun 2007
Posts: 71

Rep: Reputation: 0
Question 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
 
Old 10-28-2010, 07:57 PM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
mkdir /mount point u want

mount /dev/hda2 /mount pount u want

update /etc/fstab


Hope this helps
 
Old 10-28-2010, 08:32 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

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

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

Evo2.
 
Old 10-28-2010, 09:57 PM   #4
Zero4
Member
 
Registered: Jun 2007
Posts: 71

Original Poster
Rep: Reputation: 0
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
 
Old 10-28-2010, 11:21 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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)
 
Old 10-29-2010, 12:31 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
To umount it you should just need to do the following as root:
Code:
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
Code:
/dev/sda2 /mnt/data ext3 defaults 0 0
(assuming you have created the mount point as suggested by yancek).

Evo2.
 
  


Reply

Tags
mount, remount, umount



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
fresh 9.10 install reboot error no device trying to mount partition mount: can't fin bud1237 Ubuntu 1 06-24-2010 12:44 AM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 PM.

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