LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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: 53

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: 718

Rep: Reputation: 102Reputation: 102
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
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,103

Rep: Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102
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: 53

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
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,530

Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
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
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,103

Rep: Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102
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


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
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


All times are GMT -5. The time now is 12:32 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