LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-21-2017, 04:40 AM   #1
peter7089
Member
 
Registered: May 2016
Posts: 72

Rep: Reputation: Disabled
Problem changing partition mount point


I have a partition sda3 to which i want to change the mount point:
Code:
sboxes@osboxes:~$ mount | grep sda3
/dev/sda3 on /media/osboxes/11e00809-744e-4b0a-a9df-05ad54a0dc13 type ext4 (rw,nosuid,nodev,uhelper=udisks2)
I tried this command to change the mounting point but it didn't worked:
Code:
osboxes@osboxes:~$ sudo mount -t ext4 -o remount,rw  /dev/sda3 /home/osboxes/mnt
mount: /home/osboxes/mnt not mounted or bad option
How to change the mounting point of this partition?
 
Old 01-21-2017, 05:21 AM   #2
petelq
Member
 
Registered: Aug 2008
Location: UK
Distribution: openSUSE(Leap and Tumbleweed) and a regularly changing third
Posts: 406

Rep: Reputation: Disabled
If you want to change the mount point permanently you'll need to change it in /etc/fstab. You also have to make sure that the mount point exists. Have you created /home/osboxes/mnt?
If it's just a temporary mount then again, make sure the folder for mounting exists and do
Code:
sudo umount /dev/sda3
sudo mount /dev/sda3 /home/osboxes/mnt
 
Old 01-21-2017, 07:30 AM   #3
peter7089
Member
 
Registered: May 2016
Posts: 72

Original Poster
Rep: Reputation: Disabled
I run 'sudo umount /dev/sda3' and then 'sudo mount /dev/sda3 /home/osboxes/mnt' and the partition was mounted on /home/osboxes/mnt but if i check the mount points is still shows that partition is also still mounted on '/media/osboxes/11e00809-744e-4b0a-a9df-05ad54a0dc13'

Code:
osboxes@osboxes:/media/osboxes$ mount | grep sda3
/dev/sda3 on /media/osboxes/11e00809-744e-4b0a-a9df-05ad54a0dc13 type ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sda3 on /home/osboxes/mnt type ext4 (rw)
Why is that?
 
Old 01-21-2017, 07:49 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,720

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
looks like the unmount command failed, what out put did you get from it? you can't usually unmount a disk if there is a file on it in use, try using the 'mountpoint' command to check if the old mount point really has a disk mountedd there.
 
Old 01-21-2017, 08:11 AM   #5
peter7089
Member
 
Registered: May 2016
Posts: 72

Original Poster
Rep: Reputation: Disabled
I think i found what was the problem. I had the partition opened in my file manager (thunar) while i trying to unmount it. I closed the file manager and was able to unmount it.
By the way, what these values mean (rw,nosuid,nodev,uhelper=udisks2)? The previous mount point showed theme and now it shows only 'rw' (read,wtite):
Code:
osboxes@osboxes:/var/cache/apt/archives$ mount | grep sda3
/dev/sda3 on /home/osboxes/mnt type ext4 (rw)
 
Old 01-21-2017, 10:17 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,098

Rep: Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143Reputation: 4143
you can check it on the man page of mount
 
Old 01-21-2017, 10:40 AM   #7
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,121

Rep: Reputation: Disabled
You could also have created a soft link to the mounted partition in your home directory, which is usually easier

Code:
ln -s what where
(See man ln)

Last edited by fatmac; 01-21-2017 at 10:43 AM.
 
  


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
Changing mount point permissions ? klss Linux - Newbie 10 02-11-2009 08:27 PM
Partition table problem. fdis is lying to me, shows the wrong mount point I believe imtedkaczynski Slackware 6 12-05-2008 10:41 AM
Changing removable HDD mount point (not /dev name) saravkrish Linux - General 1 03-17-2007 11:38 PM
changing automatic mount point h3xis Linux - General 3 12-20-2006 06:13 PM
Problems changing permissions of mount point DustOffTryAgain Linux - Software 14 09-04-2003 09:18 PM

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

All times are GMT -5. The time now is 04:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration