• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

A bunch of linux questions

pac1085

Diamond Member
I've been running linux on my desktop for a while now, and so far I'm very happy with it. Theres a few things that I'd like to figure out...but I dont know what to search for to get them to work so I figure I'd post here. I'm running Slackware 8.1

First question: How can I get it so when I put a CD in the drive, it gets automatically detected and mounted like they do in redhat? And is there a way so when I try to open the drive it automatically unmounts it and lets me take the cd out?

Second: How can I get it so that my regular user account(in this case, its named philip) can write to my fat32 partition? Its mounted on /dos.

Third: Is there any way to suppress errors in the kernel? I want to clean it up a bit since a bunch of junk comes up every time I boot...like...when the nvidia module loads it says something about it tainting the kernel...it works fine so I dont care about that...and dont want to see it. And when it trys to get a DHCP address, it spams the screen saying some values are missing, but it still works fine...so instead of it saying that stuff I want it to just say like Bringing up eth0 with DHCP...or something like that.

heres my fstab if it matteres for the first 2 questions:

/dev/hdb2 swap swap defaults 0 0
/dev/hdb1 / xfs defaults 1 1
/dev/hda1 /dos vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/scd0 /mnt/cdrw iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0

Thanks in advance!

 
Originally posted by: ICSVortex

First question: How can I get it so when I put a CD in the drive, it gets automatically detected and mounted like they do in redhat?
Could you explain this? you mean with a GUI? or not?

And is there a way so when I try to open the drive it automatically unmounts it and lets me take the cd out?
?????? If you are trying to access the drive, why do you want it to unmount itself? Or do you mean pressing the eject button?

Second: How can I get it so that my regular user account(in this case, its named philip) can write to my fat32 partition? Its mounted on /dos.
What do you mean? root is the only one that should own the /dos partition, if you try to change it using LINUX's filesystem tools, you are not going to be able to change the permissions or ownership (even if you are root). It is a safety net so that you don't screw up your system. What you can do is check up on mtools (if you installed them -> "man mtools") and see if they can help you with whatever you are trying to do.

Third: Is there any way to suppress errors in the kernel? I want to clean it up a bit since a bunch of junk comes up every time I boot...like...when the nvidia module loads it says something about it tainting the kernel...
There is. You can check what Slackware is trying to load when it boots. In most cases, all you would have to do is comment out the loading of modules that no longer exist. These can be checked for in /etc/rc.d/rc.modules, /etc/rc.d/rc.netdevice, and /etc/rc.d/rc.local. WRT the tainted kernel messages, those appear when the module that is being loaded does not have some sort of authenticating license compiled with it (i.e. it is not native to the kernel tree). You can do search on Google for a much better explanation on the subject. Perhaps you are using an outdated code?

And when it trys to get a DHCP address, it spams the screen saying some values are missing, but it still works fine...so instead of it saying that stuff I want it to just say like Bringing up eth0 with DHCP...or something like that.
What are the output strings? If you said yes to DHCP during installation, then, you should not get any spam with values missing. I am curious, could it be the other end where you are trying to lease an IP from?

Let us know,

L8

/edit: clarified

/edit: fixed typo
 
Thanks for the reply...I'll try my best to clarify

Quote
Originally posted by: ICSVortex

First question: How can I get it so when I put a CD in the drive, it gets automatically detected and mounted like they do in redhat?
Could you explain this? you mean with a GUI? or not?
Yeah...like in redhat, if you put a cd in the drive while in kde, it would automatically mount it and a konqueror window would pop up displaying the contents of the drive, kinda like in windows.

Quote
And is there a way so when I try to open the drive it automatically unmounts it and lets me take the cd out?
?????? If you are trying to access the drive, why do you want it to unmount itself? Or do you mean pressing the eject button?
Yeah, I want the drive to eject without having to su back to root to unmount it. I'm not sure if its possible but it would be nice.

Quote
Third: Is there any way to suppress errors in the kernel? I want to clean it up a bit since a bunch of junk comes up every time I boot...like...when the nvidia module loads it says something about it tainting the kernel...
There is. You can check what Slackware is trying to load when it boots. In most cases, all you would have to do is comment out the loading of modules that no longer exist. These can be checked for in /etc/rc.d/rc.modules, /etc/rc.d/rc.netdevice, and /etc/rc.d/rc.local. WRT the tainted kernel messages, those appear when the module that is being loaded does not have some sort of authenticating license compiled with it (i.e. it is not native to the kernel tree). You can do search on Google for a much better explanation on the subject. Perhaps you are using an outdated code?
Yeah, I removed the modules that im not using, but there are some modules that I need that load that display stuff I dont want to see. Like the nvidia one. I'm using the newest one thats avaliable for that. I was just wondering if theres something like there is in PHP...like when you put an @ infront of the line so if an error occurs it isnt displayed. Its not a big deal, just something thats annoying me a bit.

Quote
And when it trys to get a DHCP address, it spams the screen saying some values are missing, but it still works fine...so instead of it saying that stuff I want it to just say like Bringing up eth0 with DHCP...or something like that.
What are the output strings? If you said yes to DHCP during installation, then, you should not get any spam with values missing. I am curious, could it be the other end where you are trying to lease an IP from?

Im gonna reboot and get the error. Yeah, I set it up to use dhcp when I installed. The only reason why I dont understand it is that it doesnt do this on my slackware 8.0 box..only on 8.1. I'll brb with an answer to that

Thanks


Heres the DHCP messages I get:

dhcpd[56]: broadcastAddr option is missing in DHCP server response, assuming 192.168.1.255
dhcpd[56]: dhcpT1value option is missing in DHCP server response, assuming 43200 sec
dhcpd[56]: dhcpT2value option is missing in DHCP server respone, assuming 75600 sec

Its not a big deal...I just wanted to make the system look cleaner when it boots up...like how redhat has theres all nice and neat....like...

Starting xxxxxxxx [OK]
Initializing xxxxxx [OK]


 
Yeah...like in redhat, if you put a cd in the drive while in kde, it would automatically mount it and a konqueror window would pop up displaying the contents of the drive, kinda like in windows.

You need to edit your fstab under /etc. In order to let phillip mount the cdrom you need to have make sure phillip is part of the group users and then have the following line in your fstab:

/dev/cdrom /mnt/cdrom iso9660 noauto,ro,users 0 0

Why /mnt/cdrom? Because if you want it to eject when you unmount, the eject command has now default itself to ejecting /mnt/cdrom in Slackware 8.1.

After you make those changes, you should be able to just click onto your cdrom icon in KDE, and it should just pop up an Konqueror window with its contents. Just make sure the mounting point (i.e. the directory) /mnt/cdrom exists. You may also have to configure the properties of the KDE's CD icon, but I am not sure 'cause I don't use KDE (although I have it). Give this a shot, and if you are sucessful, you should be able to unmount as phillip and the cdrom should eject automatically. Let us know.

Yeah, I removed the modules that im not using, but there are some modules that I need that load that display stuff I dont want to see. Like the nvidia one. I'm using the newest one thats avaliable for that. I was just wondering if theres something like there is in PHP...like when you put an @ infront of the line so if an error occurs it isnt displayed. Its not a big deal, just something thats annoying me a bit.

There is a dirty way. You could load up the module you need within one of the system scripts ahead of time and have the loading messages sent to /dev/null. Like:
/sbin/modprobe <your_module> > /dev/null

I am not sure if the ouput from loading the module is a direct stdout, so in case you still see the messages after you use the command above, you can add the 2>&1 at the end of the command to capture everything and send it to /dev/null, Like so:
/sbin/modprobe <your_module> > /dev/null 2>&1

I think that should work. Although it has never bothered me since I leave my machines on 24/7, and I rarely see those annoying messages.

Hope this helps, and I will wait for your DHCP info.

L8
 
Thanks for the info lnxman, I got the cdrom drives working great and messed around with the module loading and /dev/null stuff. I added /sbin/modprobe NVdriver > /dev/null and now it displays the correct message insteadof the tainted module message, working great. BTW the dhcp stuff is in the post above the one you just posted
 
Heres the DHCP messages I get:

dhcpd[56]: broadcastAddr option is missing in DHCP server response, assuming 192.168.1.255
dhcpd[56]: dhcpT1value option is missing in DHCP server response, assuming 43200 sec
dhcpd[56]: dhcpT2value option is missing in DHCP server respone, assuming 75600 sec

Its not a big deal...I just wanted to make the system look cleaner when it boots up...like how redhat has theres all nice and neat....like...

Starting xxxxxxxx [OK]
Initializing xxxxxx [OK]

Who is providing your DHCP service? Your ISP? or do you have a router doing DHCP servicing? If you have a router, then you do not have it configured correctly. Check your DHCP options in it, and configure your DHCP server correctly. If you cannot figure out how to do it, want to rely on luck, and give up at some point (although I would not recommend you do), you can use the same method with the /dev/null as we did with the Nvidia module.

For that, you access the /etc/rc.d/rc.inet1, look for the line /sbin/dhcpcd and substitute it with /sbin/dhcpcd > /dev/null . I will again won't recommend doing that, because later on you may forget you are supressing possible future errors that may help you troubleshoot other dhcp connections. You have been warned . . . >8-|

L8
 
For the first question, you can use supermount. Mandrake enables supermount (at least for a workstation installation) by default.

Although KDE (GNOME, other WMs) provide point & click access to removable media, it's still not the same automation as Mandrake's supermount or Windows. Manual mounting makes perfect sense for server environments, but not really for typical desktops.
 
Back
Top