Linux - NewbieThis 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
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.
I've got a 300GB WD that I use for my UBUNTU OS, and my TB Drive for storage. I have to manually mount the drive every time I boot up. It's considered as removable media by my system. What's the easiest way to have this drive auto-mount and show on my desktop at boot up? (I'm such a greenhorn newbie!)
Thanks in advance for any help, or solutions.
As you said can manually mount that device, after doing that.
Just type in "more /etc/mtab" to find the line for your device.
such as
...
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
...
And then copy paste that line to file /etc/fstab (using vi or other tools)
save and reboot
(if you don't know how to manually mount that device, need to use fdisk -l or view /var/log/messages or /var/log/dmesg to find the device name, like sdb1,sdc1)
When I cut & paste the /dev/sdb1 from mtab into the fstab, save and reboot, it locks me out of the TB drive, and tells me I don't have permission. I needed to reverse to what you see now.
well using third-party solutions is certainly an option, but getting this done did not require more than just an additional line in your fstab file. when i posted my initial tip i was at work and did not have time to elaborate (figured someone else would), but all you had to add to fstab was something like:
Code:
/dev/hdd1 /media/hd ext3 defaults 0 0
where /dev/hdd1 is the physical drive partition i am mounting and /media/hd is the folder i want to access this drive partition through. ext3 is of course the filesystem, defaults covers all the extraneous stuff and 0 0 only comes into play if i want the drive backed up and fsck-ed.
a line like that is all it should have taken to do what your program did there.
Yeah, when I checked what the program had entered into my fstab, I was shocked at the ease of it all. All I needed to do was to enter this simple line:
/dev/sdb1 /media/sdb1 ntfs defaults 0 0
What I still don't understand though, is why linux needs theses incredibly long spaces between the commands & definitions. When I posted this, the servers word processor took out most of the spaces. I was told that just two to three spaces were all that were needed for the system to differentiate between source & target command protocols, like the way it looks in this post. In my fstab file, there are at least 15-20 spaces between /dev/sdb1 & /media/sdb1, and at least 5 spaces between ntfs, defaults, and the first 0. My books never explain why it's done that way, they just say this is the way it should be done. You live and you learn. Please explain why command line does it like this, if you can.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.