LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-08-2006, 07:37 PM   #1
manatwork
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Rep: Reputation: 0
How to enable Hotplug at boot??


hi,
how can i enable hotplug at boot on Slackware 10.2. I didn`t enabe it on instalation.

ps: i need it to mount my HP dvd840 USB drive
 
Old 06-08-2006, 07:46 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
Originally Posted by manatwork
hi,
how can i enable hotplug at boot on Slackware 10.2. I didn`t enabe it on instalation.

ps: i need it to mount my HP dvd840 USB drive
mounting your usb hard drive has nothing to do with hotplug. If you don't have hotplug installed, install it first. If you have already installed it, you can call it during boot simply by

Code:
chmod u+x /etc/rc.d/rc.hotplug
You would have to be root to do that.

To mount drive, read up on mount command and there are zillion threads here on LQ.

Tux,
 
Old 06-08-2006, 08:52 PM   #3
manatwork
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Original Poster
Rep: Reputation: 0
this is what i get on "dmesg":

Quote:
Linux version 2.4.31 (root@tree) (gcc version 3.3.5) #6 Sun Jun 5 19:04:47 PDT 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000007ff0000 (usable)
BIOS-e820: 0000000007ff0000 - 0000000007ff3800 (reserved)
BIOS-e820: 0000000007ff3800 - 0000000008000000 (ACPI NVS)
127MB LOWMEM available.
On node 0 totalpages: 32752
zone(0): 4096 pages.
zone(1): 28656 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=Linux ro root=302
Initializing CPU#0
Detected 696.962 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 1389.36 BogoMIPS
Memory: 126360k/131008k available (1832k kernel code, 4260k reserved, 607k data, 120k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU: Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf0478, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Discovered primary peer bus 04 [IRQ]
PCI: Using IRQ router PIIX/ICH [8086/7110] at 00:07.0
PCI: Cannot allocate resource region 4 of device 00:07.1
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
vesafb: framebuffer at 0x41000000, mapped to 0xc880d000, size 3072k
vesafb: mode is 1024x768x16, linelength=2048, pages=4
vesafb: protected mode interface info at c000:509c
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS02 at 0x03e8 (irq = 4) is a 16550A
PCI: Found IRQ 11 for device 00:09.1
PCI: Sharing IRQ 11 with 00:08.0
PCI: Sharing IRQ 11 with 00:09.0
Redundant entry in serial pci_table. Please send the output of
lspci -vv, this message (11c1,0445,8086,2203)
and the manufacturer and name of serial board or modem board
to serial-pci-info@lists.sourceforge.net.
register_serial(): autoconfig failed
Real Time Clock Driver v1.10f
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1000-0x1007, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0x1008-0x100f, BIOS settings: hdcio, hddio
hda: HITACHI_DK23AA-12, ATA DISK drive
hdb: CD-224E, ATAPI CD/DVD-ROM drive
blk: queue c03af460, I/O limit 4095Mb (mask 0xffffffff)
ide2: ports already in use, skipping probe
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 23579136 sectors (12073 MB) w/512KiB Cache, CHS=1559/240/63, UDMA(33)
hdb: attached ide-cdrom driver.
hdb: ATAPI 24X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 < hda5 > hda2
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
8regs : 1153.600 MB/sec
32regs : 664.000 MB/sec
pIII_sse : 1406.000 MB/sec
pII_mmx : 1578.000 MB/sec
p5_mmx : 1647.200 MB/sec
raid5: using function: pIII_sse (1406.000 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.8(17/11/2003)
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 120k freed
Adding Swap: 128452k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 94M
agpgart: Detected Intel 440BX chipset
agpgart: AGP aperture is 64M @ 0x50000000
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
PCI: Found IRQ 11 for device 00:09.0
PCI: Sharing IRQ 11 with 00:08.0
PCI: Sharing IRQ 11 with 00:09.1
eth0: OEM i82557/i82558 10/100 Ethernet, 000:59:11:2C:69, IRQ 11.
Board assembly 98003c-000, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0xdbd8681d).
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
PCI: Found IRQ 11 for device 00:08.0
PCI: Sharing IRQ 11 with 00:09.0
PCI: Sharing IRQ 11 with 00:09.1
es1968: clocking to 48000
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 11 for device 00:07.2
uhci.c: USB UHCI at I/O 0x4020, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
PCI: Found IRQ 11 for device 00:04.0
PCI: Sharing IRQ 11 with 00:04.1
PCI: Sharing IRQ 11 with 01:00.0
PCI: Found IRQ 11 for device 00:04.1
PCI: Sharing IRQ 11 with 00:04.0
PCI: Sharing IRQ 11 with 01:00.0
Yenta ISA IRQ mask 0x06b8, PCI irq 11
Socket status: 30000006
Yenta ISA IRQ mask 0x06b8, PCI irq 11
Socket status: 30000006
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
hub.c: new USB device 00:07.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x3f0/0x1207) is not claimed by any active driver.
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
Vendor: HP Model: DVD Writer 840e Rev: 66FF
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
sr0: scsi-1 drive
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
lp0: using parport0 (polling).
I can`t mount external usb DVD drive (HP 840). I already read a lot of threads about mountin drive, but they didn`t help me.
 
Old 06-09-2006, 12:43 AM   #4
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
Did you add the dvd drive? to your /etc/fstab? run fdisk -l, then try mounting.

Or boot with the thing plugged in.

Are you sure your kernel has scsi support?

Also, on a side note, in never versions of udev, I believe hotplug has been deprecieated, so it's no longer used. (at least on the latest versions used in Arch it's that way)
 
Old 06-09-2006, 08:02 AM   #5
manatwork
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Ohh, about kernel scsi support.. When I installed Slackware 10.2, at the end of instalation i`ve been asked about kernel: INSTALL LINUX KERNEL, and I pressed last one "skip (Skip this menu, use the default /boot/vmlinuz)". So, now I don`t know, did I it right??
And if my kernel don`t have scsi support, is there an easy way to get that support (because i`m newbie).
 
Old 06-09-2006, 09:24 AM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
Originally Posted by manatwork
Ohh, about kernel scsi support.. When I installed Slackware 10.2, at the end of instalation i`ve been asked about kernel: INSTALL LINUX KERNEL, and I pressed last one "skip (Skip this menu, use the default /boot/vmlinuz)". So, now I don`t know, did I it right??
And if my kernel don`t have scsi support, is there an easy way to get that support (because i`m newbie).
It looks like your dvd drive is recognized...i read through your dmesg and found this. If you are using the default slackware kernel then it has support for everything including scsi.

Code:
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
sr0: scsi-1 drive
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
You would have to mount the drive inorder to use it. With 2.4 series kernel (slackware 10.2's default is 2.4.31), your dvd/cd discs don't get mounted automatically.

Insert a disc (not audio cd) and try mounting it.

Code:
mount /dev/sr0
Tux,
 
Old 06-09-2006, 05:37 PM   #7
manatwork
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Question

Tryed this code as root:
Quote:
mount /dev/sr0
and get:
Quote:
mount: can`t find /dev/sr0 in etc/fstab or /etc/mtab
EDITED:
I added this line to etc/fstab
Quote:
/dev/sr0 /mnt/dvdr auto noauto.owner 0 0
So now I can enter cd, but can`t copy anything from it. I get just: "could not read".

Tryed:
Quote:
mount /dev/sr0
and wollaaaa, now I CAN copy from cd. I will also try to burn cd!!

So, do I have to write that code (mount /dev/sr0) all the time I plug in my usb drive ???

Last edited by manatwork; 06-09-2006 at 06:12 PM.
 
Old 06-09-2006, 07:07 PM   #8
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
So, do I have to write that code (mount /dev/sr0) all the time I plug in my usb drive ???
Yes, as long as you use 2.4 series kernel. With 2.6 series kernels, udev and hal take over. That makes mounting pretty much automatic. You still need entries in /etc/fstab to mount drives during boot.

Tux,
 
Old 06-10-2006, 06:02 AM   #9
manatwork
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Is it easy to change my 2.4 series kernel to 2.6 ??
 
Old 06-10-2006, 09:07 AM   #10
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
Originally Posted by manatwork
Is it easy to change my 2.4 series kernel to 2.6 ??
There are two ways to get your 2.6 series kernel, compile yourself or get it from slackware testing repository. IF you get it from slackware site, you should get three packages...kernel-generic, kernel-modules and kernel-source. Don't install kernel-headers as yet. Install them using installpkg and update your bootloader to boot from the new kernel. You may also have to make initrd image...but I am not sure.

If you want to compile yourself...there are series of steps you need to take but sometimes those steps can go wrong. Also you need to know your hardware to know what drivers to include. I always compile my own kernel and I know my hardware very well so I never had a problem to upgrade my kernel to the latest one. I suggest your familiarize yourself to slackware first and then attempt a kernel recompile. There are good guides here on LQ to guide your through. Look at the slackware forum on this site...some of best threads I've seen

If you want to compile your kernel, all you need is the latest kernel source from www.kernel.org

Keep slacking...

Tux,

Last edited by tuxrules; 06-10-2006 at 09:13 AM.
 
Old 06-10-2006, 12:53 PM   #11
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
While it tends to be easier to download a kernel from slackware (and their kernels tend to be pretty solid), it is great practice to make one yourself.

Plus a vanilla kernel/one you pathc yourself (some great patchesets out there), tend to be faster, as it's compiled for specific hardware.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hotplug freezes upon boot Diminished7th Linux - General 1 12-28-2005 03:46 PM
!Sometimes! boot freezes at hotplug! komuthan Slackware 5 10-13-2005 12:57 PM
Hotplug freezes at boot up adamb10 Slackware 2 09-19-2005 07:10 AM
enable hotplug chocloman Slackware - Installation 3 04-02-2005 12:39 AM
rc.hotplug problem during boot cyto Slackware 6 10-12-2004 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 AM.

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