LinuxQuestions.org
Help answer threads with 0 replies.
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 11-01-2014, 10:07 AM   #1
Holden Caulfield
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Rep: Reputation: Disabled
a mount point for a pendrive


Where does KDE get a mount point name for an inserted pendrive from? There is fat32 and no label.
It mounts it as "/run/media/<username>/openSUSE-13.1-DVD-x86_640091/". There was opensuse on this stick before, but I deleted all partitions and formatted the drive.
 
Old 11-01-2014, 11:21 AM   #2
haeri
LQ Newbie
 
Registered: Nov 2011
Location: Purwokerto
Distribution: Slackware Linux
Posts: 10

Rep: Reputation: Disabled
IFAIK, the name is coming from udisks/udisks2. Just take a look at https://wiki.archlinux.org/index.php/udisks for more info.
 
1 members found this post helpful.
Old 11-01-2014, 11:34 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Welcome to LQ!

I think the mountpoint is named after the disk's label.
Relabel the disk / partition to change the mount point.
 
Old 11-01-2014, 11:53 AM   #4
Holden Caulfield
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
GParted shows that there is no label.
mlabel: Volume has no label
udisksctl shows IdLabel with old label, before formatting. Is udev caching uuids and labels connections?
 
Old 11-01-2014, 12:06 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
[QUOTE Is udev caching uuids and labels connections?][/QUOTE]
It's possible, but I would find this annoying.
You could try assigning a new UUID and see what happens (let us know either way please)
 
Old 11-01-2014, 01:58 PM   #6
Holden Caulfield
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Setting a new label has solved the problem. I hadn't done it before, because I tried to find the reasons. The partition type is 83 (Linux), but the filesystem is vfat, maybe there's something left from the previous content.

Last edited by Holden Caulfield; 11-01-2014 at 02:39 PM.
 
Old 11-01-2014, 02:10 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,725

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
As I understand it UDEV deals with the mouting of devices by UUID and if you ever use a device not labelled at all this is apparent. So, I would then assume that if a label is present a given device will be mounted under a mount point with that name and I see no reason for the mount point for a device to change unless the label changes to another string -- i.e. if it's blank then the old one would be used.
The above is just guesswork but based upon messing with a few USB drives over a fairly long period of time.
 
1 members found this post helpful.
Old 11-01-2014, 02:18 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Setting a new label has solved problem.
Good, and thanks for the follow-up.

"Partition type" and filesystems mounted on them have caused me some head-scratching in the past. But when it "just worked", I moved on (I'm lazy, I know).

Had you not fixed the problem, I'd have asked you to look at the output of cat /etc/blkid.tab, but it seems your Q is A'd already.

Best wishes.
 
Old 11-01-2014, 02:50 PM   #9
Holden Caulfield
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
cat /etc/blkid.tab
"No such file or directory" (Arch)

I set a new label "test" - the mount point changed to "test"
I deleted the label... the mount point is "openSUSE-13.1-DVD-x86_640091" again. So I went back to square one.
 
Old 11-01-2014, 03:24 PM   #10
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 569

Rep: Reputation: 133Reputation: 133
dd if=/dev/zero of=/dev/sdX count=1 bs=1M
it will make udev forget about openSUSE.

P.S.
Be sure you running dd on correct device. And it should be entire device, not a partition (e.g. /dev/sdd, not /dev/sdd1)

Last edited by Teufel; 11-01-2014 at 03:30 PM.
 
1 members found this post helpful.
Old 11-02-2014, 05:16 AM   #11
Holden Caulfield
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Teufel View Post
dd if=/dev/zero of=/dev/sdX count=1 bs=1M
it will make udev forget about openSUSE.
Ok, but where does the system keep uuid <> mountpoint relationships? It's not Windows with it's messy registry.
 
Old 11-02-2014, 05:30 AM   #12
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 569

Rep: Reputation: 133Reputation: 133
AFAIK, system doesn't keep UUID to mountpoint relationship.
What does blkid show? Has your stick opensuse label still? If so, dd it.
 
1 members found this post helpful.
Old 11-02-2014, 06:13 AM   #13
venicesmith001
LQ Newbie
 
Registered: Nov 2014
Location: Peris
Posts: 2

Rep: Reputation: Disabled
Is there anyone provide information about AFAIK ??
 
Old 11-02-2014, 06:50 AM   #14
Holden Caulfield
LQ Newbie
 
Registered: Nov 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Teufel View Post
What does blkid show?
All utilities showed there was no label.

Quote:
dd it.
dd did the trick. Next I created a new partition, a new filesystem, and there is no "opensuse..." anymore, even without any label.
Thank you.
 
  


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
USB mount point is not shown in /dev entry point garryhk Linux - Software 3 12-12-2012 05:28 PM
can't mount pendrive vamsireloaded Linux - Newbie 10 02-13-2012 01:14 AM
puppy+grub saves ram installed mount point as HD install mount point agualust Linux - Newbie 0 04-10-2009 11:23 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 12:17 PM

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

All times are GMT -5. The time now is 07:25 AM.

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