Bug 152067

Summary: Setting the mount point for a USB device (in the partitioner tool) does not work.
Product: [openSUSE] SUSE Linux 10.1 Reporter: Joe Crollard <lunar_raven>
Component: UsabilityAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: Siegfried Olschner <siegfried.olschner>
Severity: Normal    
Priority: P5 - None    
Version: Beta 4   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/YaST2
/etc/fstab

Description Joe Crollard 2006-02-19 03:30:35 UTC
I've had trouble with this on suse forever, however, on beta 3 it was actually fixed...and I was thrilled  However, on 4...once again it does not work.  On install, normally I partition my drives and set my mount points.  

Here's the problem...

I have music on my external USB harddrive that I like to listen to through amaroK.  Anyway, on install in the partition setup, I usually set my USB harddrive (/dev/sda2) to be mounted to /media/music.  This is where I want it.  However, when SuSE actually loads up (for the fist time, or ever)..my drive is mounted to /media/disk-1 ... despite the changes I made through the partition manager.  Doesn't seem like a big deal, but it is...especially now.  For example, the mount point often changes.  If I accidently (or intentially) keep a cd in my cdrom before I boot up...it sets the mountpoint of my cdrom (since it mounts it because a cd is in the drive) to /media/disk-1...which WAS the mount point for my usb harddrive before I had a cd in the cdrom.   When using amarok, and building a collection for my music set to /media/disk-1...this causes big issues.  I then have to change the collection directory to the new mount point (/media/disk-2) (or whatever the mountpoint turns to)..and re-load the collection, which is very time consuming.  And once again, if I boot with NO cd in the drive at the next boot, the usb mount point again changes back to /media/disk-1...and I have to rebuild my collection yet again.  As you can see, it's an ongoing problem.

I hope that this can be resolved.  I'd love it (and think others would to) if setting the mount point to a usb device (like a harddrive) works...and stays the same on each boot (wouldn't yast simply need to set a mountpoint in fstab?)  

Thank you.
-Joe
Comment 1 Siegfried Olschner 2006-02-19 20:54:10 UTC
Screening team:
- USB?
- Kernel?
- ...
Comment 2 Michael Gross 2006-02-20 12:15:27 UTC
Joe:

Attach the yast logfiles and your /etc/fstab

Naturally you cannot predict the assigned device node for a hotplugging device. The partitioner should at least honor the (manual) changed made to the fstab, though.
Comment 3 Joe Crollard 2006-02-20 16:57:43 UTC
Created attachment 69370 [details]
/var/log/YaST2

Here are my YaST2 log files.
Comment 4 Joe Crollard 2006-02-20 16:58:55 UTC
Created attachment 69372 [details]
/etc/fstab

As you can see, the mount point is set to /media/shared.  It is however ignored and mounted to /media/disk-1.
Comment 5 Michael Gross 2006-02-21 11:53:28 UTC
Just to get it right: You added this line (sdb2) manually with YaST, and the line was added to the fstab - so I cannot see a problem here.

The disc is getting mounted automatically by the hotplugging system, which is also normal.

I will close this bug now. If I didn't understand the problem correctly, point it out and reopen this report.

P.S. If you want to mount this device manually, you must configure HAL to make this possible. Take a look at
http://en.opensuse.org/SDB:Mounting_to_Static_Mount_Points
Comment 6 Michael Gross 2006-02-21 12:06:31 UTC
This article I pointed you to is probably outdated for 10.1 as the mechanism has changed since then, the mount itself seems now to be handled by KDE or GNOME...
Comment 7 Joe Crollard 2006-02-21 16:50:37 UTC
(In reply to comment #5)
> Just to get it right: You added this line (sdb2) manually with YaST, and the
> line was added to the fstab - so I cannot see a problem here.
> 
> The disc is getting mounted automatically by the hotplugging system, which is
> also normal.
> 
> I will close this bug now. If I didn't understand the problem correctly, point
> it out and reopen this report.
> 
> P.S. If you want to mount this device manually, you must configure HAL to make
> this possible. Take a look at
> http://en.opensuse.org/SDB:Mounting_to_Static_Mount_Points
> 


Well the problem is, that my fstab entry is completely ignored.  It always was, but that never use to be a real problem because the directory name to my usb drive was much different than the directories for my cdrom devices... so it always stayed the same.  It was something like t_9_9_9.   

I actually love the automount feature...but when a usb drive is mounted with drive-(#) and so are cdroms... it totally confuses things.  As said above, the drive for my usb harddrive never stays the same because it changes depending on the cdrom.  This screws everything up for amarok and other programs that are set to use a specific directory (for the usb drive).  My suggestion is to have usb drives mount to /media/usb or something similar, instead of /media/drive-# like the cdroms. 

I hope you get what i'm trying to say now.
Comment 8 Marcel Hilzinger 2006-02-21 17:00:31 UTC
Did you try beta4? Just open media:/ in Konqueror right-klick ono your strorage device and choose 'Properties' -> 'Mounting'. Here you can add the wanted path.

Works great with beta4, no need to edit /etc/fstab
Comment 9 Michael Gross 2006-02-21 17:04:07 UTC
Joe: This mounting business is, as I mentioned, now being handled by the desktop environment.

If there still is an acutual bug I cannot see here, be more specific about it. I don't set this to an enhancement as the functionality is already being provided by the current beta.
Comment 10 Joe Crollard 2006-02-21 17:44:12 UTC
(In reply to comment #8)
> Did you try beta4? Just open media:/ in Konqueror right-klick ono your strorage
> device and choose 'Properties' -> 'Mounting'. Here you can add the wanted path.
> 
> Works great with beta4, no need to edit /etc/fstab
> 

Oh, I didn't know about that!

Thank you :).

Ok, now I understand.
Comment 11 Joe Crollard 2006-02-21 17:51:16 UTC
hmm...it still doesn't seem to be working, when trying to change the mount path with the way you suggested, marcel.  I have to go, but I will mess with it more later.  Thanks  for the help.
Comment 12 Joe Crollard 2006-02-21 23:25:52 UTC
Ah, that DOES work.  Too cool.  =)