Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-13-2003, 12:02 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 6

Rep: Reputation: 0
Linux Mandrake professionals, Please help !!

Linux Mandrake professionals, Please help !!
I want to find out information in your "own words" if possible on how the device management works on Mandrake linux.... I would like to know like the architectue of and stuff...just make it simple if you can, just the basic of it...any help will be appreciate it
Old 05-13-2003, 12:04 PM   #2
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
Mandrake is pretty good with hotplugging devices. Running dmesg and checking out logs will tell you what it has identified. Once identified, you just need to edit fstab (if it's a drive or something) or cups (if it's a printer). If everything is "plugged in" during installation, mandrake is really good about automagically setting stuff up.
Old 05-13-2003, 12:07 PM   #3
LQ Newbie
Registered: Mar 2003
Posts: 6

Original Poster
Rep: Reputation: 0
what is dmesg, fstab, cups? By hotpluggin you mean plug and play? Thanks
Old 05-13-2003, 12:46 PM   #4
Registered: Apr 2003
Location: Scotland UK
Distribution: Gentoo
Posts: 92

Rep: Reputation: 15
No, like USB, Hotplug PCI and Firewire.
fstab is a table of your filesystems, mount points and mount options. See for yourself in /etc/fstab
dmesg just prints out the kernel messages, not all the stuff from the init scripts, just the kernel. This includes detected hardware, SMP information, RAID info etc. CUPS is the Common Unix Print System. Check out Its basically an API for printing and network printing. It also allows you to use drivers from GS and stuff.
the /dev/ system is laid out much like on other devfs distros and can be configured though /etc/devfsd.conf
Maybe be a bit more specific in your question.
Old 05-13-2003, 01:01 PM   #5
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
Okay, sorry I wasn't more specific. I'm going to set up a scenario so you can see what these things do to try and make it as simple as possible. Let's say that you've installed mandrake 9.1. After you have installed it, let's say that you buy a digital camera with a usb port (it's memory card is a flash card). I think the default kernel has usb support enabled. Plug the camera into a usb port. Open a bash prompt (or konsole or eterm or whatever you do to get to the command line). Type

(root's password)

then type

dmesg tells you what is plugged in and where it's at. I might get ripped for such a generalization, but that's it's most simple function I think. You will see things such as cpu information, hdc, hdd, fd0, (cdrom drives and floppy drives). Read carefully and you will see something like
"mass storage device on sda."
This tells you that the computer sees the memory card on your camera on sda. (Do a google search or search these forums for an explanation on hda, sda, etc...). So dmesg gives you system information.

fstab is a file, it's address (or location) is /etc/fstab. This is where you can define mount points. In order tor ead a floppy, you need to mount it. The line in fstab will look something like this

/dev/fd0 /mnt/floppy auto noauto, users, rw 0 0

The first entry (/dev/fd0) is where the device is found. /mnt/floppy/ is where the mount point is, or where you can find the information on the floppy. Auto means that linux will automatically look for the filesystem (ext2,ext3, resierfs, fat, vfat, etc). No auto means that it won't automatically be mounted at boot time. Users mean that more than just root can mount and unmount a device, and rw means read write. I have no idea what the 0 0 is but it's there. So when you stick a floppy in the drive, you type
mount /mnt/floppy
mount /dev/fd0

Back to the illustration with the digitial camera. Open up fstab with root privelages (so that you can edit it). This line needs to be added so that you can mount the camera (or the memory card in the camera).

/dev/sda /mnt/camera vfat noauto, users, rw 0 0

Now, as root, you need to make sure that the directory /mnt/camera exists.

mkdir /mnt/camera

Now, you can type
mount /mnt/camera

and if everything is set up right, the camera will be mounted and you can access whatever is on it.

Cups is a printer server--I think it's mandrakes default. Anyways, you use dmesg to make sure your computer identifies the fact that a printer is plugged in.

Hot plug means plug it in and the computer knows it's there. It's not necessarily "plug and play" because you might need to edit some config files to get it to work.

Hope this helps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Professionals Help Badly Needed!! About LAMP glence Red Hat 1 08-31-2007 10:14 PM
Difference between Mandrake Linux Community 10.1 and Mandrake Linux Official 10.1 marsh58 Mandriva 3 12-11-2004 02:44 PM
Completely new to Linux, Downloaded Mandrake 10 and want to run both XP and Mandrake Scandal Mandriva 4 06-28-2004 10:03 PM
question for msdos professionals and experts unimaginative General 10 01-28-2004 10:04 PM
Install linux (mandrake 9.1) over win 98 and still boot linux and winxp(drive E:) BlueTaurus13 Linux - General 12 09-01-2003 08:03 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration