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.
First of all, my sincere apologies if these questions have already been answered in other threads. They are both fairly common topics, but each has a huge amount of variability within it. I have done much googling in the last few days, much of which has led me to this site, but never to the answers I need.
Ok background info: new install of Debian 5.0 amd64. Full hardware specs available if necessary, though my issues don't seem to be hardware dependent.
First issue: Wireless networking.
- I have already set up SSID, key types, dhcp, etc for wlan0.
- During startup, I can see the DHCP requests etc, and when the kernel receives an IP address which it binds to wlan0
- Occasionally (haven't been able to figue the exact conditions when this will occur), I am able to log in (either locally or by remote SSH) and ping an outside site for a short period of time. Usually though, by the time I log in, the interface has lost its connection to the outside world (but not its IP address)
- Once the connection to the world is lost, route -n shows that there is no default gateway configured
- Connection to internet can be restored by logging in as root and running "# /etc/init.d/networking restart". Once this is done, it's all systems go, and stays that way. Default GW returns and stays.
I am wondering if anyone could provide insight into why the connectivity is lost. If you need outputs of any commands just ask and they are yours. Also, if there is no way to prevent this, what is the best way to automate the restart process.
Second question: fstab/mounting NTFS partitions
- I want to mount 3 NTSF patitions to be readable but not writable by everyone (I have not yet persued the ntfs-3g option).
- Here is my fstab file:
After mounting, the NTFS partitions are not readable by any users other than root. Can someone explain what is going on and how to fix it so all users can read the files after mounting? Again, write access is not required.
Again, I apologise if these questions have been previously address, but none of the existing solutions I found seem to fit the exact circumstances. Let me know if something needs clarification.
Thanks tredegar. The networking issue seems to have been solved. I'm interested to know if there is an underlying cause to the problem that has been addressed. But at this moment, I am just happy that it all works fine!
As the fstab issue, still no joy with that one. Made the changes you suggested, and I'm still getting Permission Denied messages when trying to read the NTFS partitions. Can't even umount as a normal user now. Any further ideas?
Mounting is still wrong though, if you want others to read from the ntfs partitions.
Your permissions are
r-xr-x--x
which means only the user brad, or those belonging to the group brad can read the disk.
So I fired up an old dual-boot PC, and tested it out.
The following should work for you:
As root:
Code:
chmod 555 /mnt/ntfs?
[ the "?" in the line above is not a mistake and will match /mnt/ntfs1 /mnt/ntfs2 and mnt/ntfs3 ]
Then use these lines in fstab
I see you guys are using "ntfs" as the filesystem type. Last time I checked, the default ntfs kernel driver would happily and faithfully corrupt your partition if you enabled read-write access and tried to overwrite files past their original size. Is kernel-space read-write access safe by now?
ntfs-3g is reported as supporting write to ntfs filesystems, but I have not used it. http://sourceforge.net/projects/ntfs-3g/
But NannoBot only wanted read-access anyway.
I've been using ntfs-3g for a while now, but some time ago I reinstalled debian in my machine and went out mounting partitions and editing some files as I was configuring the box. But only some hours later I noticed ntfs-3g wasn't amoung the installed packages and I was probably using the kernel-mode ntfs driver because 'mount /dev/sda1 /mnt/windows' was working fine.
Thanks god nothing bad happened, but this made me wonder about the current status of the ntfs kernel drive by now. I couldn't find any recent information about it, only old threads back from when it was messing up partitions.
Also sorry if I am commenting something totally unrelated to NannoBot's original problem, it just came to my mind when I saw the discussion
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.