LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 05:40 AM   #1
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

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, 06:21 AM   #2
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 619

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, 08:30 AM   #3
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

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, 08:49 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,103

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
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, 09:11 AM   #5
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

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, 11:17 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,071

Rep: Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128Reputation: 7128
you can check it on the man page of mount
 
Old 01-21-2017, 11:40 AM   #7
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,281

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

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

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