Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
my question is this. do you think this is a solution which would let me swap modular bay devices on the fly a'la softex's bay manager in windows? in windows, if my modular bay dvd is in, i can use the bay manager to coordinate swapping that device with let's say my modular bay floppy or modular bay zip drive. does this do the same thing? if it does, anyone have any experience setting this up and what do i need to download and install? there's a lot of different packages at that site. thanks.
Yes and no... hrmm... If I remember right, Linux will still go ape-poo if an IDE device is detached on the fly, so you might try your hand at it emulating the cdrom to scsi, or really, if the cdrom and zip drives both get emulated to scsi anyway... heck, Can you post back with a "dmesg" or two depending on which you have attached. If they can all be emulated to scsi, then maybe its possible as scsi can handle a hotswapped drive. Then again, if power needs to be cut to the device to detach it, probably not... fun to find out regardless.
hey finegan. thanks for replying. i had first hand experience with linux going ape-poo when i tried as an experiment to manually hotswap my dvd drive with my floppy drive.... lol....
but anyway, here's a dmesg output. don't know if it's the one you're looking for though.
Quote:
[vjong@Tron vjong]$ dmesg
Linux version 2.4.XX-XX (bhcompile@stripples.devel.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #1 Wed Aug 7 11:39:21 EDT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 0000000000100000 - 000000001ffea800 (usable)
BIOS-e820: 000000001ffea800 - 0000000020000000 (reserved)
BIOS-e820: 00000000feea0000 - 00000000fef00000 (reserved)
BIOS-e820: 00000000ffb80000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131050
zone(0): 4096 pages.
zone(1): 126954 pages.
zone(2): 0 pages.
Dell Inspiron 8100 series board detected. Disabling IDE DMA.
Dell Inspiron 8100 detected. Forcing restore of PCI configuration space on APM resume. Kernel command line: ro root=/dev/hda11 hdb=ide-scsi
ide_setup: hdb=ide-scsi
Initializing CPU#0
Detected 996.692 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1985.74 BogoMIPS
Memory: 513928k/524200k available (1119k kernel code, 9884k reserved, 787k data, 292k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 0383f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After vendor init, caps: 0383f9ff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU: Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) III Mobile CPU 1000MHz stepping 01
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 0xfc06e, last bus=8
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 2: assuming transparent
Unknown bridge resource 2: assuming transparent
PCI: Using IRQ router PIIX [8086/244c] at 00:1f.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Real Time Clock Driver v1.10e
block: 992 slots per queue, batch=248
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PIIX4: chipset revision 3
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xbfa0-0xbfa7, BIOS settings: hda-DMA, hdb-DMA
ide1: BM-DMA at 0xbfa8-0xbfaf, BIOS settings: hdc-DMA, hdd-pio
hda: IC25T060ATCS05-0, ATA DISK drive hdb: MATSHITA CD-RW UJDA330, ATAPI CD/DVD-ROM drive
hdc: TOSHIBA DVD-ROM SD-C2502, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c0365884, I/O limit 4095Mb (mask 0xffffffff)
hda: 117210240 sectors (60012 MB) w/1768KiB Cache, CHS=7296/255/63
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 >
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 122k freed
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 292k freed
Adding Swap: 1052220k swap-space (priority -1)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 11:55:07 Aug 7 2002
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 10 for device 00:1f.2
PCI: Sharing IRQ 10 with 02:0f.0
PCI: Sharing IRQ 10 with 02:0f.1
PCI: Sharing IRQ 10 with 02:0f.2
PCI: Setting latency timer of device 00:1f.2 to 64
usb-uhci.c: USB UHCI at I/O 0xbce0, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x46d/0xc00e) is not claimed by any active driver.
usb.c: registered new driver hiddev
usb.c: registered new driver hid
input0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb1:2.0
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,11), internal journal
hdc: ATAPI 24X DVD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: MATSHITA Model: UJDA330 Rev: 1.05
Type: CD-ROM ANSI SCSI revision: 02
hdb: DMA disabled
hdc: DMA disabled
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
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
eth0: OEM i82557/i82558 10/100 Ethernet, 00:20:E0:6A:39:C8, IRQ 10.
Receiver lock-up bug exists -- enabling work-around.
Board assembly 727095-002, 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 (0x04f4518b).
Receiver lock-up workaround activated.
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
PCI: Found IRQ 10 for device 02:0f.0
PCI: Sharing IRQ 10 with 00:1f.2
PCI: Sharing IRQ 10 with 02:0f.1
PCI: Sharing IRQ 10 with 02:0f.2
PCI: Found IRQ 10 for device 02:0f.1
PCI: Sharing IRQ 10 with 00:1f.2
PCI: Sharing IRQ 10 with 02:0f.0
PCI: Sharing IRQ 10 with 02:0f.2
Yenta IRQ list 0298, PCI irq10
Socket status: 30000006
Yenta IRQ list 0298, PCI irq10
Socket status: 30000006
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x378-0x37f 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
nvidia: loading NVIDIA Linux x86 NVdriver Kernel Module 1.0-3123 Tue Aug 27 15:56:48 PDT 2002
maestro3: version 1.22 built at 11:59:04 Aug 7 2002
PCI: Found IRQ 5 for device 02:03.0
maestro3: Configuring ESS Maestro3(i) found at IO 0xDC00 IRQ 5
maestro3: subvendor id: 0x00e61028
ac97_codec: AC97 Audio codec, id: 0x8384:0x7609 (SigmaTel STAC9721/23)
[vjong@Tron vjong]$
anyway my modular bay dvd is hdc (the modular zip would be hdc also while the modular floppy would be fd0). it looks like my internal cdrw is using scsi/scsi emulation. i don't think the modular bay dvd is though. it looks like hotplug may work though if i made all the modular bay devices emulate scsi though, if i didn't misread the hotplug site. lemme know what you think. thanks again.
edit: odd, it says dma disabled for hdb and hdc while the output of hdparm -v /dev/hdX shows dma enabled for both of them...
edit #2: oh yeah, i haven't been using my zip drive because it has the same label as (hdc) as my dvd rom which causes fstab to give a wrong fs, multiple fs error. anyway i tried changing fstab with the zip booted up and making a zip entry with the dvd rom entry commented out. i used the fs of vfat. same error. can anybody tell what the fs for a zip drive is?
edit #3: nevermind on the zip thing. i got it working. had to put in the grub.conf the boot option of hdc=ide-scsi and kudzu picked it up. i did have to change the fstab settings and links on my dvd though since the device is now /dev/scd1 instead of /dev/hdc which was what it was before.
Yeah, emulate everything /dev/hdc to scsi, heck... try and see if it'll take fd0 to scsi!
DMA is disabled for boot in specifically your motherboard, its re-enabled when apm kicks in. Its a kernel top level work around for just that laptop, neat huh? Only some Toshibas have that distinction too.
Its not really a matter of hotplugging, since the idea is to emulate everything to scsi that could be put in and out of that modular bay. IDE support in the kernel doesn't have the ability to rescan the bus on the fly, but scsi of course does, since there are hotswapable drives. This is a bit of an experiment as I have no idea where to even look up whether an emulated scsi device will scan properly under these conditions, but if you're willing to try!
Also, I would leave out any entries for the hotswap devices in fstab, and also make certain they are unmounted when you try a switch. Just to make certain the kernel doesn't try and do anything funny with them becuase mountd told it to.
well, i just did an experment where i pulled out the dvd rom and replaced it with the zip drive without doing any prepping and linux didn't go ape-poo.
anyway, i'm guessing i need to do a few things before and after hotswapping to get it to really work.
i'm guessing, i need to ensure that the device isn't mounted, unload the device, maybe unregister (?) the device, replace the device with the desired device, load the new device, maybe register (?) the new device, and then mount and use.
what services/processes/programs do i need to use to handle unloading/loading and (?) registering/unregistering (?) the device and making the correct changes to the necessary files?
Its not really a matter of registering and unregistering the device, all that stuff from the hotplugging page really doesn't apply, you could have done this with a 2.2 kernel. Its, how is the kernel handling all of this device pulling, what did "dmesg" register after you hot swapped the drive? I'm thinking it just dealt with the device being yanked and that was no big deal. Dell is no slouch, they probably would have made sure the device itself would be okay and not rely on software to pull it... at least I hope. From the kernel's point of view, you just hotswapped a scsi drive, it just happened to be a DVD-rom on a laptop instead of a 32Gb Seagate on an Adaptec card. At least I think, was the new device available?
well, i didn't do dmesg after "hotswapping" the dvd drive with the zip drive. but trying to mount the zip drive yielded an error of sda4 is not a valid block device. so the kernel (or internally) didn't register the swap or rescan the bus. also clicking the dvd drive icon did cause the zip drive to start whirring and popped up the error message of wrong fs type which makes sense since the dvd rom fs in fstab is iso9660 while the zip is set to auto.
You gotta comment that info out of fstab, either that's the problem, or the command that that button runs is:
mount -t iso9660 /dev/scd0 /mnt/cdrom
When you want:
mount -t vfat /dev/scd0 /mnt/cdrom
I think the kernel didn't rescan the bus, so the new device has the old device's name. This isn't bad, its just going to make all of your scripts not really work... you could edit the button's properties so that it takes out the file type:
mount /dev/scd0 /mnt/hotswap
And then of course create a directory called hotswap. Without a filesystem type declard, mount will just guess, and it almost always guesses correctly... offhand the only time I've had to tell it was an hfs+ burnt DVD.
Originally posted by finegan You gotta comment that info out of fstab, either that's the problem, or the command that that button runs is:
mount -t iso9660 /dev/scd0 /mnt/cdrom
When you want:
mount -t vfat /dev/scd0 /mnt/cdrom
I think the kernel didn't rescan the bus, so the new device has the old device's name. This isn't bad, its just going to make all of your scripts not really work... you could edit the button's properties so that it takes out the file type:
mount /dev/scd0 /mnt/hotswap
And then of course create a directory called hotswap. Without a filesystem type declard, mount will just guess, and it almost always guesses correctly... offhand the only time I've had to tell it was an hfs+ burnt DVD.
Cheers,
Finegan
makes sense and it sounds like it would work, but i think i'm stopping this little experiment. my dvd drive doesn't sound normal anymore. instead of whirring up "constantly", it now whirs up and then has 2 or 3 "hiccups" which sound almost like grinding, although dvds and cds play with no problems. It just sounds different and almost sickly to me.
after perusing the net, it seems there's a common consensus that ide, atapi, and scsi aren't really made for just being swapped out without some kind of preperation and doing so is a dangerous proposition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.