[opensuse] How to Mount External Drives Manually?
Hi, I have a situation where I want the opposite of Josef Wolf (openSUSE list thread with Subject: "How to mount external drives automatically?" starting on Jan. 9, 2009). I'm running openSUSE 11.1 (the inability of 10.0 to properly access the FireWire bus on my system was the straw that broke the upgrade camel's back). So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions? Thanks. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-01-12 at 16:36 -0800, Randall R Schulz wrote:
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
On which suse version? There is a not so slight variation. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklr55oACgkQtTMYHG2NR9V6qQCglcloFxagevD6vndRyaGUz9Vu I5EAn0gf8BDuDVNK+KsSfBvJfKG/nV92 =Mo+d -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday January 12 2009, Carlos E. R. wrote:
On Monday, 2009-01-12 at 16:36 -0800, Randall R Schulz wrote:
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
On which suse version? There is a not so slight variation.
Uh... On Monday January 12 2009, Randall R Schulz wrote:
I'm running openSUSE 11.1 (the inability of 10.0 to properly access the FireWire bus on my system was the straw that broke the upgrade camel's back).
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-01-12 at 17:07 -0800, Randall R Schulz wrote:
On Monday January 12 2009, Carlos E. R. wrote:
On Monday, 2009-01-12 at 16:36 -0800, Randall R Schulz wrote:
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
On which suse version? There is a not so slight variation.
Uh...
On Monday January 12 2009, Randall R Schulz wrote:
I'm running openSUSE 11.1 (the inability of 10.0 to properly access the FireWire bus on my system was the straw that broke the upgrade camel's back).
Yes, but you mention both 11.1 and 10.0, and mention that the upgrade broke... so I don't know if you are still on 10.0 or you managed to upgrade to 11.1 My English is not that good, you know, it is 2 AM here, and I'm a bit sleepy. So humour me: what version are you interested in? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklr69kACgkQtTMYHG2NR9WSxgCfRIvuUmXIRFBuIs5UMNqV/bpu cDAAnRfssKUUKbtWpuQV6Nk17b0RooRZ =Hg4P -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Jan 12, 2009 at 8:18 PM, Carlos E. R.
Yes, but you mention both 11.1 and 10.0, and mention that the upgrade broke... so I don't know if you are still on 10.0 or you managed to upgrade to 11.1
He said he upgraded to 11.1 because he couldn't use his firewire drive with 10.0.....
My English is not that good, you know, it is 2 AM here, and I'm a bit sleepy. So humour me: what version are you interested in?
It's 8:30am here and I'm not one to use Coffee as a jump start for my day, so I can sympathize. Don't get me started on my Spanish. My accent's horrible..... :-) Anyway, he was asking about mounting manually under 11.1. I'll go with CLI and not GUI: I'm not sure what he's trying to do. However, I think he just needs to use "dmesg | tail" to see what the external drive comes up as like /dev/sdb or sdc, and then he just needs to use: mkdir /mount/firewire (or whatever) mount /dev/sdxx /mount/firewire the sdxx being the drive and the partition of the drive. Randall, in 11.1, pretty much all drives are not considered SCSI. So, if you have a 100GB drive that was /dev/hda on 10.0 as root, it will probably be /dev/sda on 11.1. Optical are /dev/sr0 again.(although I did add 2 IDE DVDs recently and they came up as hda and hdb this time instead of sr1 and sr2 as before(or technically sr0 and sr1 since the SATA drive was moved to sr2......) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-01-13 at 08:33 -0500, Larry Stotler wrote:
On Mon, Jan 12, 2009 at 8:18 PM, Carlos E. R. <> wrote:
Yes, but you mention both 11.1 and 10.0, and mention that the upgrade broke... so I don't know if you are still on 10.0 or you managed to upgrade to 11.1
He said he upgraded to 11.1 because he couldn't use his firewire drive with 10.0.....
Ok
My English is not that good, you know, it is 2 AM here, and I'm a bit sleepy. So humour me: what version are you interested in?
It's 8:30am here and I'm not one to use Coffee as a jump start for my day, so I can sympathize. Don't get me started on my Spanish. My accent's horrible..... :-)
Anyway, he was asking about mounting manually under 11.1. I'll go with CLI and not GUI:
I'm not sure what he's trying to do. However, I think he just needs to use "dmesg | tail" to see what the external drive comes up as like /dev/sdb or sdc, and then he just needs to use:
Right.
mkdir /mount/firewire (or whatever) mount /dev/sdxx /mount/firewire
the sdxx being the drive and the partition of the drive.
Yes. That's the procedure for a one shot thing. If you are going to use that external drive more times, then the proper method (more comfortable) is to define an invariant entry in fstab. I do this by making sure the external filesystem has a label. YaST partitioner can add one when formatting the media, and if not, one can be added later using the specific tool for each format (mlabel for vfat, e2label for ext2/3, reiserfstune for reiserfs, xfs_admin for xfs). The labels can be seen thus: ls -l /dev/disk/by-label/ Then, you create an entry in fstab, like: LABEL=TheLabel /mount/firewire reiserfs \ user,noauto,acl,user_xattr 0 0 - From that point, you simply do: mount /mount/firewire without having to know where exactly is the disk mounted. This method is not available for 10.0. An alternative method, when there is no label, is using the UUID or ID: /dev/disk/by-id/usb-ST325082_4AV_19940395-0:0-part1 \ /mount/some_external vfat \ noauto,users,gid=users,umask=0002,utf8=true 0 0 - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklsoVEACgkQtTMYHG2NR9VujACfRYMqfFYlhlDWknOsDpwXiJ3L AVIAn3pGxDq88hrZcA8Rdc4w1HOBOyhb =sI4s -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday January 13 2009, Carlos E. R. wrote:
...
mkdir /mount/firewire (or whatever) mount /dev/sdxx /mount/firewire
the sdxx being the drive and the partition of the drive.
Yes. That's the procedure for a one shot thing. If you are going to use that external drive more times, then the proper method (more comfortable) is to define an invariant entry in fstab.
I do this by making sure the external filesystem has a label....
I do everything by-label nowadays (except swap, of course).
ls -l /dev/disk/by-label/
...
All this information misses my point (which I acknowledge is my fault for not being more precise—and here I think I'm too wordy...) I need to stop / impede / inhibit / prevent the automatic mounting that now occurs for all external drives and media.
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-01-13 at 07:01 -0800, Randall R Schulz wrote:
I do this by making sure the external filesystem has a label....
I do everything by-label nowadays (except swap, of course).
Ah. Pity, by the way.
ls -l /dev/disk/by-label/
...
All this information misses my point (which I acknowledge is my fault for not being more precise—and here I think I'm too wordy...)
I need to stop / impede / inhibit / prevent the automatic mounting that now occurs for all external drives and media.
I see... Yes, I also dislike automounting. Well the above method works for me in 11.0, because there is an fstab line with "noauto", and it appears to work. I't worked in factory, so I think it should work in 11.1. At least it works with the gnome desktop - if it doesn't work with kde 4, report it; if it doesn't work with kde 3, suffer it :-p The alternative is to dissable the automount feature in your desktop, for your user. It should be somewhere in the control panel, though in Gnome it has dissapeared and we have to use gconf-editor directly. But you used kde, I think, so it should be there. However, I don't like dissabling the automount entirely, for those cases when somebody comes with their usb disk. HTH. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklssq0ACgkQtTMYHG2NR9UD6wCffJCQnnoXR+cxId6bw9isRFmH yiAAn3RvgpTK98oXYoDYLEx/jBWlXf5Y =lbFL -----END PGP SIGNATURE-----
On 2009/01/13 07:01 (GMT-0800) Randall R Schulz composed:
I do everything by-label nowadays (except swap, of course).
Why "of course"? Check out mkswap -L. -- "Train a child in the way he should go, and when he is old he will not turn from it." Proverbs 22:6 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday January 13 2009, Felix Miata wrote:
On 2009/01/13 07:01 (GMT-0800) Randall R Schulz composed:
I do everything by-label nowadays (except swap, of course).
Why "of course"? Check out mkswap -L.
You know, somewhere in the back of my mind, I think I remember seeing this before. I don't know why I didn't think of it until you reminded me. Thanks. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday January 13 2009, Larry Stotler wrote:
...
Anyway, he was asking about mounting manually under 11.1. I'll go with CLI and not GUI:
I'm not sure what he's trying to do. However, I think he just needs to use "dmesg | tail" to see what the external drive comes up as like /dev/sdb or sdc, and then he just needs to use:
want to prevent the auto-mounting. I already know what device is assigned (I find the symlinks under /dev/disk to be more useful than digging through /var/log/messages).
mkdir /mount/firewire (or whatever) mount /dev/sdxx /mount/firewire
The directories exist, and I know how to handle the mounting, including the fstab entries to allow it to be done on-demand (not necesarily at start-up, in case the drive is disconnected or powered down) and / or by non-root users. However, the default auto-mounting behavior is interfereing with this.
the sdxx being the drive and the partition of the drive.
Randall, in 11.1, pretty much all drives are not considered SCSI. So, if you have a 100GB drive that was /dev/hda on 10.0 as root, it will probably be /dev/sda on 11.1.
I know that, too. And in this system, most of the drives are actually, physically SCSI, though there's one SATA drive and, now, the external FireWire-attached drive in question here.
Optical are /dev/sr0 again.(although I did add 2 IDE DVDs recently and they came up as hda and hdb this time instead of sr1 and sr2 as before(or technically sr0 and sr1 since the SATA drive was moved to sr2......)
Yes, again, I know these things. What I don't know about is the HAL / udev / auto-mounter business. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday January 12 2009, Carlos E. R. wrote:
On Monday, 2009-01-12 at 17:07 -0800, Randall R Schulz wrote:
On Monday January 12 2009, Carlos E. R. wrote:
On Monday, 2009-01-12 at 16:36 -0800, Randall R Schulz wrote:
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
On which suse version? There is a not so slight variation.
Uh...
On Monday January 12 2009, Randall R Schulz wrote:
I'm running openSUSE 11.1 (the inability of 10.0 to properly access the FireWire bus on my system was the straw that broke the upgrade camel's back).
Yes, but you mention both 11.1 and 10.0, and mention that the upgrade broke... so I don't know if you are still on 10.0 or you managed to upgrade to 11.1
Sorry, "broke the camel's back" is an Enlish colloquialism meaning that was the issue that tipped the balance from not doing something (upgrading) to doing it. I probably should not have said "upgrade," since this is a completely clean installation. I even re-created all my settings in a new home directory (except for KMail, which I transferred in toto / en masse to my new (11.1) home directory).
My English is not that good, you know, it is 2 AM here, and I'm a bit sleepy. So humour me: what version are you interested in?
Sorry for the confusion. For the record, your English has always seemed much better than a lot of people who have it as a native tongue. (Now get some sleep!)
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-01-13 at 06:10 -0800, Randall R Schulz wrote:
On Monday January 12 2009, Carlos E. R. wrote:
Yes, but you mention both 11.1 and 10.0, and mention that the upgrade broke... so I don't know if you are still on 10.0 or you managed to upgrade to 11.1
Sorry, "broke the camel's back" is an Enlish colloquialism meaning that was the issue that tipped the balance from not doing something (upgrading) to doing it.
I probably should not have said "upgrade," since this is a completely clean installation. I even re-created all my settings in a new home directory (except for KMail, which I transferred in toto / en masse to my new (11.1) home directory).
I see.
My English is not that good, you know, it is 2 AM here, and I'm a bit sleepy. So humour me: what version are you interested in?
Sorry for the confusion. For the record, your English has always seemed much better than a lot of people who have it as a native tongue.
No problem, and thanks :-) I try to keep up, but I know I will always have dificulties now and then.
(Now get some sleep!)
Ha, now it is "siesta" time here ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklss8MACgkQtTMYHG2NR9WWcgCgjyMTpRQoLPwPTV8H0p52HSTm nbgAmwWD/HOLOo0TTKfx0cgKoBRsB/s8 =LcL2 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 13 January 2009, Randall R Schulz wrote:
Hi,
I have a situation where I want the opposite of Josef Wolf (openSUSE list thread with Subject: "How to mount external drives automatically?" starting on Jan. 9, 2009).
I'm running openSUSE 11.1 (the inability of 10.0 to properly access the FireWire bus on my system was the straw that broke the upgrade camel's back).
Firewire works fine in 11.1; I read somewhere that the new firewire stack, which isn't enabled in 11.1, doubles disk throughput.
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
I use the following for my backup disk: UDI="/org/freedesktop/Hal/devices/volume_uuid_[UUID]" dbus-send --system --print-reply --dest=org.freedesktop.Hal $UDI \ org.freedesktop.Hal.Device.Volume.Mount string:mount_point=[MOUNT POINT] string:fstype=ext3 array:string:extra_options="" Replace the [UUID] with the UUID of the partition you want to mount, and [MOUNT POINT] with the mount point to be created in /media. Filesystems other than ext3 may require different options/have different defaults for extra_options.
Thanks.
Hope this helps.
Randall Schulz
Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday January 13 2009, auxsvr@gmail.com wrote:
On Tuesday 13 January 2009, Randall R Schulz wrote:
Hi,
I have a situation where I want the opposite of Josef Wolf (openSUSE list thread with Subject: "How to mount external drives automatically?" starting on Jan. 9, 2009).
I'm running openSUSE 11.1 (the inability of 10.0 to properly access the FireWire bus on my system was the straw that broke the upgrade camel's back).
Firewire works fine in 11.1; I read somewhere that the new firewire stack, which isn't enabled in 11.1, doubles disk throughput.
Yes, I've already confirmed that the FireWire hardware is properly handled and my external drive can be accessed without apparent difficulty on 11.1.
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
I use the following for my backup disk:
UDI="/org/freedesktop/Hal/devices/volume_uuid_[UUID]" dbus-send --system --print-reply --dest=org.freedesktop.Hal $UDI \ org.freedesktop.Hal.Device.Volume.Mount string:mount_point=[MOUNT POINT] string:fstype=ext3 array:string:extra_options=""
Replace the [UUID] with the UUID of the partition you want to mount, and [MOUNT POINT] with the mount point to be created in /media. Filesystems other than ext3 may require different options/have different defaults for extra_options.
For the record, this is an XFS volume. (Well, actually there's an HFS Plus volume on that drive, too, but I'm interested in the XFS volume at the moment.) If I understand that correctly (and I'm just guessing from the option names), this will change the default mount-point to be a directory of my choosing rather than the default that it's now using, which is /media/<VolumeLabel>. Anyway, that's good to know, but it leaves more questions: - Is this a permanent configuration change, or must it be done every time the system boots? - Does it (as I suspect) retain the auto-mounting behavior? I want to inhibit that, too (making the mount-point selection aspect moot, I know).
Hope this helps.
We're getting there.
Peter
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 13 January 2009, Randall R Schulz wrote:
On Tuesday January 13 2009, auxsvr@gmail.com wrote:
Firewire works fine in 11.1; I read somewhere that the new firewire stack, which isn't enabled in 11.1, doubles disk throughput.
Yes, I've already confirmed that the FireWire hardware is properly handled and my external drive can be accessed without apparent difficulty on 11.1.
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
I use the following for my backup disk:
UDI="/org/freedesktop/Hal/devices/volume_uuid_[UUID]" dbus-send --system --print-reply --dest=org.freedesktop.Hal $UDI \ org.freedesktop.Hal.Device.Volume.Mount string:mount_point=[MOUNT POINT] string:fstype=ext3 array:string:extra_options=""
Replace the [UUID] with the UUID of the partition you want to mount, and [MOUNT POINT] with the mount point to be created in /media. Filesystems other than ext3 may require different options/have different defaults for extra_options.
For the record, this is an XFS volume. (Well, actually there's an HFS Plus volume on that drive, too, but I'm interested in the XFS volume at the moment.)
If I understand that correctly (and I'm just guessing from the option names), this will change the default mount-point to be a directory of my choosing rather than the default that it's now using, which is /media/<VolumeLabel>.
Anyway, that's good to know, but it leaves more questions:
- Is this a permanent configuration change, or must it be done every time the system boots?
The above is meant to mount removable disk partitions via hal/dbus.
- Does it (as I suspect) retain the auto-mounting behavior? I want to inhibit that, too (making the mount-point selection aspect moot, I know).
I'm not sure what you mean. Using KDE 4.2 here, the disk isn't mounted automatically when I plug it in.
Hope this helps.
We're getting there.
Peter
Randall Schulz
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday January 13 2009, auxsvr@gmail.com wrote:
The above is meant to mount removable disk partitions via hal/dbus.
- Does it (as I suspect) retain the auto-mounting behavior? I want to inhibit that, too (making the mount-point selection aspect moot, I know).
I'm not sure what you mean. Using KDE 4.2 here, the disk isn't mounted automatically when I plug it in.
I'm using KDE 3.5. Whenever new external drives or media appear (CDs and DVDs, flash-RAM "thumb drives," USB and FireWire external drives, etc.) two things happen: They're automatically mounted on directories in /media (mount-point directory names created from volume information of the file systems on the media or device) and KDE responds by presenting me with a dialog asking me what I want to do now that the new device / file system volume has appeared. Maybe I should go back to my original question: On Monday January 12 2009, Randall R Schulz wrote:
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
Or, to rephrase it a bit, what do I have to learn about to understand how automounting is controlled and configured in openSUSE 11.1. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-01-13 at 08:17 -0800, Randall R Schulz wrote:
Maybe I should go back to my original question:
On Monday January 12 2009, Randall R Schulz wrote:
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
Or, to rephrase it a bit, what do I have to learn about to understand how automounting is controlled and configured in openSUSE 11.1.
It is controlled by the desktop. Hal and udev detects the new device, give it a device node, and report to the desktop (don't ask me how, I don't know myself). (there is a thing called "dbus" which I think is involved in the mechanism) To prove if I'm correct or not, we could log out of the desktop, login text mode only, and plug a usb disk. If it is mounted, it is not the desktop. I think that, if the device is listed in fstab as "noauto" there is the convention not to mount it automatically. [...] damm, no... I tried one and it appeared. [...] Ah, yes, it works. The thing is that the device that previously appeared as: /dev/disk/by-id/usb-Kingston_DataTravelerCR_ad053f40c9f050-part1 now is: /dev/disk/by-id/usb-Kingston_DataTravelerCR_ad053f40c9f050-0:0-part1 I changed the line in fstab, re-plugged the device, and gnome ignored it, was not mounted automatically. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklszxEACgkQtTMYHG2NR9W6OwCcCUFcLxXn1fL+10vSNcluT34D tq0An0WpA0hWWpzQ+9wAN5s0A1PAl2wM =Xz6e -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday January 13 2009, Carlos E. R. wrote:
On Tuesday, 2009-01-13 at 08:17 -0800, Randall R Schulz wrote:
Maybe I should go back to my original question:
On Monday January 12 2009, Randall R Schulz wrote:
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
Or, to rephrase it a bit, what do I have to learn about to understand how automounting is controlled and configured in openSUSE 11.1?
It is controlled by the desktop. Hal and udev detects the new device, give it a device node, and report to the desktop (don't ask me how, I don't know myself).
(there is a thing called "dbus" which I think is involved in the mechanism)
To prove if I'm correct or not, we could log out of the desktop, login text mode only, and plug a usb disk. If it is mounted, it is not the desktop.
I think that, if the device is listed in fstab as "noauto" there is the convention not to mount it automatically.
[...]
damm, no... I tried one and it appeared.
[...]
Ah, yes, it works. The thing is that the device that previously appeared as:
...
I changed the line in fstab, re-plugged the device, and gnome ignored it, was not mounted automatically.
Interesting. I always thought "noauto" only applied to the "mount -a" (including the mounting that occurs during system boot). But I see that it does inhibit automounting via HAL / udev / whatever. Oddly enough, I still get the KDE dialogs asking me what I want to do when the device comes on-line, even though it doesn't get mounted automatically. Well, that's the important part of what I wanted. No auto-mounting. Thanks.
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-01-13 at 09:37 -0800, Randall R Schulz wrote:
Interesting. I always thought "noauto" only applied to the "mount -a" (including the mounting that occurs during system boot). But I see that it does inhibit automounting via HAL / udev / whatever.
Yes, but it is up to the desktop entirely, I understand. I mean, they choose not to automount if there is an fstab entry. In my gnome, I see a peak of cpu activity, but it is not mounted. Which is lucky for us :-) Maybe, if you leave the keyword as "auto" it mounts in the place specified in fstab, and with those options. It would make sense.
Oddly enough, I still get the KDE dialogs asking me what I want to do when the device comes on-line, even though it doesn't get mounted automatically.
It is something. Maybe you can find somewhere in the kde control panel something about this behavior. heh, the window is a signal for you that the device has indeed been recognized, and you can proceed with the manual mount.
Well, that's the important part of what I wanted. No auto-mounting.
Thanks.
Welcome :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkls3pYACgkQtTMYHG2NR9UnBQCdG4pb0lGn15/JXOlXeIj/Elkx 42kAnRLiiFaTmRAMfZOoBDg22s1CEp10 =nsoH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday January 13 2009, Carlos E. R. wrote:
On Tuesday, 2009-01-13 at 09:37 -0800, Randall R Schulz wrote:
Interesting. I always thought "noauto" only applied to the "mount -a" (including the mounting that occurs during system boot). But I see that it does inhibit automounting via HAL / udev / whatever.
Yes, but it is up to the desktop entirely, I understand. I mean, they choose not to automount if there is an fstab entry. In my gnome, I see a peak of cpu activity, but it is not mounted.
Which is lucky for us :-)
Maybe, if you leave the keyword as "auto" it mounts in the place specified in fstab, and with those options. It would make sense.
Oddly enough, I still get the KDE dialogs asking me what I want to do when the device comes on-line, even though it doesn't get mounted automatically.
It is something. Maybe you can find somewhere in the kde control panel something about this behavior.
Yeah. It's probably under Icons or Printers or something... (I love KDE, but even after years of using it, I can never find anything I need in the Control Center). However, in this case, it appears to be in a logical place: Hardware -> Storage Media.
...
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jan 13, 2009 at 04:56:29PM +0200, auxsvr@gmail.com wrote:
I use the following for my backup disk:
UDI="/org/freedesktop/Hal/devices/volume_uuid_[UUID]" dbus-send --system --print-reply --dest=org.freedesktop.Hal $UDI \ org.freedesktop.Hal.Device.Volume.Mount string:mount_point=[MOUNT POINT] string:fstype=ext3 array:string:extra_options=""
This is all one line, right? In which file should this go? Somewhere in the /etc/hal/fdi hierarchy? This looks like it sends a command to the desktop to do the mount, so it depends on an installed desktop? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 13 January 2009, Josef Wolf wrote:
On Tue, Jan 13, 2009 at 04:56:29PM +0200, auxsvr@gmail.com wrote:
I use the following for my backup disk:
UDI="/org/freedesktop/Hal/devices/volume_uuid_[UUID]" dbus-send --system --print-reply --dest=org.freedesktop.Hal $UDI \ org.freedesktop.Hal.Device.Volume.Mount string:mount_point=[MOUNT POINT] string:fstype=ext3 array:string:extra_options=""
This is all one line, right? In which file should this go? Somewhere in the /etc/hal/fdi hierarchy?
This looks like it sends a command to the desktop to do the mount, so it depends on an installed desktop?
This was supposed to be two commands, I have it in a bash script to do backups. It uses hal/dbus to mount a partition, it's the same mechanism that desktops (KDE, gnome) use. It doesn't depend on the desktop to function. Regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, January 13, 2009 01:36, Randall R Schulz wrote:
Hi,
I have a situation where I want the opposite of Josef Wolf (openSUSE list thread with Subject: "How to mount external drives automatically?" starting on Jan. 9, 2009).
I'm running openSUSE 11.1 (the inability of 10.0 to properly access the FireWire bus on my system was the straw that broke the upgrade camel's back).
So what are the relevant subsystems, commands and configuration files I need to learn about to get manual mounting for select external drives and partitions?
Hello Randall, According to a FreeBSD user I know, the automagic mounting of external drives should be considered a serious security bug. He reasons like this: Suppose you are on the road, and you have your usb stick with some precious documents. You urgently want to print something, so you'll want to plug in the stick somewhere, mount it r/o, pipe the file to lpr and be done with it. However, on every "user friendly" distribution there are all kinds of windows that pop up when you plug in the usb stick, but none of them is a shell prompt. Worst of all, you notice that your stick is already mounted read/write! This is on an unknown system that you know nothing about. It might as well wipe your stick, or install a rootkit on it. How are you ever going to know what the userfriendly police is doing behind your back? This little story really happened last year on FOSDEM. I cleaned up the story a bit, because in reality there were a few strong words being used, and some people's feelings were hurt. Those who know the FOSDEM organisation will be able to locate the blog with the original story. -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 15 January 2009 19:08:43 Amedee Van Gasse wrote: [...]
Suppose you are on the road, and you have your usb stick with some precious documents. You urgently want to print something, so you'll want to plug in the stick somewhere, mount it r/o, pipe the file to lpr and be done with it. However, on every "user friendly" distribution there are all kinds of windows that pop up when you plug in the usb stick, but none of them is a shell prompt. Worst of all, you notice that your stick is already mounted read/write! This is on an unknown system that you know nothing about. It might as well wipe your stick, or install a rootkit on it. How are you ever going to know what the userfriendly police is doing behind your back?
That is why decent USB memory sticks have a write-protect switch on them; regardless of how the system tries to mount it, if the write protect switch is set the write line should be disabled and nothing should be able to write to it... -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ===================================================
Rodney Baker wrote:
On Thursday 15 January 2009 19:08:43 Amedee Van Gasse wrote: [...]
Suppose you are on the road, and you have your usb stick with some precious documents. You urgently want to print something, so you'll want to plug in the stick somewhere, mount it r/o, pipe the file to lpr and be done with it. However, on every "user friendly" distribution there are all kinds of windows that pop up when you plug in the usb stick, but none of them is a shell prompt. Worst of all, you notice that your stick is already mounted read/write! This is on an unknown system that you know nothing about. It might as well wipe your stick, or install a rootkit on it. How are you ever going to know what the userfriendly police is doing behind your back?
That is why decent USB memory sticks have a write-protect switch on them; regardless of how the system tries to mount it, if the write protect switch is set the write line should be disabled and nothing should be able to write to it...
Unfortunately, most don't. I have only one with a write protect switch. I have picked up a virus from one of my customers, when I went to install some software on their computer. Also, the disabled USB ports can be a problem. At another customer, where I was supposed to install the software, the USB ports were disabled as was IE and they had no other browser. So, I had no way to install the software they needed, to configure the system I had installed. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, January 15, 2009 13:22, Rodney Baker wrote:
On Thursday 15 January 2009 19:08:43 Amedee Van Gasse wrote: [...]
Suppose you are on the road, and you have your usb stick with some precious documents. You urgently want to print something, so you'll want to plug in the stick somewhere, mount it r/o, pipe the file to lpr and be done with it. However, on every "user friendly" distribution there are all kinds of windows that pop up when you plug in the usb stick, but none of them is a shell prompt. Worst of all, you notice that your stick is already mounted read/write! This is on an unknown system that you know nothing about. It might as well wipe your stick, or install a rootkit on it. How are you ever going to know what the userfriendly police is doing behind your back?
That is why decent USB memory sticks have a write-protect switch on them; regardless of how the system tries to mount it, if the write protect switch is set the write line should be disabled and nothing should be able to write to it...
I suppose you mean a mechanical write-protect switch? Kingston is a decent brand, and none of my various Kingston usb sticks have such a switch. But I'm afraid that you're missing the point. There are many other removable media that do not have a mechanical write-protect switch: SD cards, usb/eSata/FireWire harddisks,... Anyway it wasn't my problem. :) -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, January 15, 2009 13:22, Rodney Baker wrote:
On Thursday 15 January 2009 19:08:43 Amedee Van Gasse wrote: [...]
Suppose you are on the road, and you have your usb stick with some precious documents. You urgently want to print something, so you'll want to plug in the stick somewhere, mount it r/o, pipe the file to lpr and be done with it. However, on every "user friendly" distribution there are all kinds of windows that pop up when you plug in the usb stick, but none of them is a shell prompt. Worst of all, you notice that your stick is already mounted read/write! This is on an unknown system that you know nothing about. It might as well wipe your stick, or install a rootkit on it. How are you ever going to know what the userfriendly police is doing behind your back?
That is why decent USB memory sticks have a write-protect switch on them; regardless of how the system tries to mount it, if the write protect switch is set the write line should be disabled and nothing should be able to write to it...
I suppose you mean a mechanical write-protect switch? Kingston is a decent brand, but none of my Kingston sticks has a switch. Anyway, I'm afraid that you're missing the point. There are other external storages without an r/w switch: SD cards, usb/esata/firewire harddisks, etc. But it wasn't my problem, I'm really indifferent about it. :) -- Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, January 15, 2009 14:34, Amedee Van Gasse wrote:
On Thu, January 15, 2009 13:22, Rodney Baker wrote:
On Thursday 15 January 2009 19:08:43 Amedee Van Gasse wrote: [...]
Suppose you are on the road, and you have your usb stick with some precious documents. You urgently want to print something, so you'll want to plug in the stick somewhere, mount it r/o, pipe the file to lpr and be done with it. However, on every "user friendly" distribution there are all kinds of windows that pop up when you plug in the usb stick, but none of them is a shell prompt. Worst of all, you notice that your stick is already mounted read/write! This is on an unknown system that you know nothing about. It might as well wipe your stick, or install a rootkit on it. How are you ever going to know what the userfriendly police is doing behind your back?
That is why decent USB memory sticks have a write-protect switch on them; regardless of how the system tries to mount it, if the write protect switch is set the write line should be disabled and nothing should be able to write to it...
I suppose you mean a mechanical write-protect switch? Kingston is a decent brand, but none of my Kingston sticks has a switch.
Anyway, I'm afraid that you're missing the point. There are other external storages without an r/w switch: SD cards, usb/esata/firewire harddisks, etc.
But it wasn't my problem, I'm really indifferent about it. :)
Sorry, the connection dropped, and I wasn't sure that my mail got trough. So I wrote it again, from (wetware) memory. Amedee -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (9)
-
Amedee Van Gasse
-
auxsvr@gmail.com
-
Carlos E. R.
-
Felix Miata
-
James Knott
-
Josef Wolf
-
Larry Stotler
-
Randall R Schulz
-
Rodney Baker