DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes you can, but it can cause boot failure if an external drive isn't present when you boot up. You can simply add and entry for it in /etc/fstab. Use the UUID number or LABEL instead of a temporal device node such as /dev/sdb1.
Here is an example:
sudo /sbin/blkid /dev/sdb3
/dev/sdb3: UUID="71836867-346e-4809-b05a-655565c59531" TYPE="ext3"
Use the values pertaining to your drive and mount point.
I would add the options "noauto,user" for an external drive. It wouldn't mount at boot, but it would allow the owner to mount the device without su'ing to root. You could use the mount command to your ~/.profile or ~/.bash_login file. That will defer mounting them until you log in.
I have two nfs shares I mount this way. In my ~/.bash_login,
grep /mnt/elite/podcasts /etc/mtab || mount /mnt/elite/podcasts >/dev/null 2>&1
grep /mnt/elite/Download /etc/mtab || mount /mnt/elite/Download >/dev/null 2>&1
In my ~/.bash_logout, I unmount them.
grep /mnt/elite/Download /etc/mtab && umount /mnt/elite/Download >/dev/null 2>&1
grep /mnt/elite/podcasts /etc/mtab && umount /mnt/elite/podcasts >/dev/null 2>&1
maybe automounter? i thought most modern distributions using KDE or gnome automatically mounted media such as usb drives or cdroms when inserted?
autofs (automounter?) does not mount drives until they are accessed.
Using Xfce on Slackware 13.0, Thunar (Xfce's file system browser (a.k.a file manager) shows inserted drives greyed out and they are not mounted until browsed.
autofs (automounter?) does not mount drives until they are accessed.
Using Xfce on Slackware 13.0, Thunar (Xfce's file system browser (a.k.a file manager) shows inserted drives greyed out and they are not mounted until browsed.
and this is exactly what my problem is.
thanks for clearification.
I do not like external disk mount failures, and fstab configurations which have to be written for each disk.
the way hald mounts drives is less problematic than fstab does.
Up to now, linux was perfect for my computer and disks which were online all the time. But I want my computer "restartable" and my expernals "plug-unplugable" now.
This is also an important request from developers.
But I want my computer "restartable" and my expernals "plug-unplugable" now.
The first is achievable with custom programming.
The second is inherently difficult. Removing write caching would help but what if write-to-device was happening at the time of unplugging? And if the writing process re-tried it would write to the file system containing the mount point ... tricky!
The writeable CD/DVD ejection design is better than USB in this respect, allowing the user to request rejection any time (hardware or software eject button) but ejection is under software control and happens after unmounting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.