LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 10-10-2005, 07:13 AM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
how swap cdrom/floppy drives in Linux?


Dell Inspiron 4000 laptop. The cdrom drive and the floppy drive go in the same bay at the front - you have to swap them over (sorry if stating the obvious). At present in Debian Sarge I switch off to make the change.

In Windows the ?'Softex bay manager' program may be used to allow the swap while Windows is running.

Is there a Debian equivalent? Looked in a table of equivalents but could find nothing.

Thanks any help.
 
Old 10-10-2005, 11:08 AM   #2
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
I've been trying to do the same in SuSE 9.3 on a Inspiron 600m. Best I found was you have to have to write some script to kill the proc, swap the bay, then run another script to restart the bay. I did a google for something like "suse 9.3 laptop bay hot-swap" and "suse 9.3 laptop bay swap". Things were few & far between and I've yet to get it nailed down. Will post back if/when I do. I have a pretty quick startup so I just try to plan ahead for what I'll be needing to use.
 
Old 10-10-2005, 11:44 AM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Great thanks Nd4Spd. Look forward to your postback!
 
Old 10-10-2005, 11:52 AM   #4
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
Yeah, me too!
 
Old 10-11-2005, 09:17 AM   #5
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
Well, to further this stuff, I've found a program that looks like it will do what we're looking for. I only have a bay with a CD-RW and a spare battery. I don't have a floppy drive. So that's where I'm coming from.

Anyway, here is a link to the program. I've yet to try it however. I'm missing a dependency. When I do I'll post my results.

http://timstadelmann.de/hotswap.html
 
Old 10-11-2005, 10:13 AM   #6
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Sterling work Nd4Spd!

Here's a *.deb package: http://packages.debian.org/unstable/admin/hotswap.html

It has roughly the same name but appears much smaller.

I'm assuming that whatever happens swapping won't fry the hardware. Mind boggles what would happen if hot swapped a desktop.
 
Old 10-11-2005, 10:42 AM   #7
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
Hmm. Nice. I couldn't find an RPM for SuSE 9.3 Professional (what I'm using on this laptop).

I certainly hope it won't fry anything. The more i read about this the more i tend to think the kernel won't/doesn't support it and it is basically a crap shoot if it will work for you or not.

I found a couple threads on yahoo groups from a few years ago that address this. One guy running Slackware 8.1 said he could swap bays with CD & floppy while the system is running as long as the device was unmounted. I had slackware 10.1 on this for a while and I can tell you *that* didn't work for me (can we say system lock-up?)

Another said they were able to do it if they suspended the system to RAM, swapped the bay, then woke it up. Not sure how in the world that would make a difference, but I haven't been able to get that one working either.

This thread:
http://groups.yahoo.com/group/linux-.../message/20571
mentions the following (again, I haven't tried this yet)
Code:
sync
umount /dev/hdN*
hdparm -U /dev/hdN
(remove old drive, put in new drive)
hdparm -R /dev/hdN
mount /dev/hdN*
The post is from 2003. After that post the person replys with

Quote:
Adding to my previous message, it appears I'm an idiot. This doesn't seem to work unless the channel is recognized on boot by the kernel... meaning you'd have to boot with the hard drive in in order to access it.
... onward through the fog ...
 
Old 10-12-2005, 10:12 AM   #8
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Tried to install the *.deb version but didn't have the dependencies which are very modern seemingly.

Have got hold of an older version http://packages.debian.org/stable/admin/hotswap-text and will try to install it. Then, with everything crossed, will try it. I'll post back about whether it works.
 
Old 10-14-2005, 10:32 AM   #9
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Program works well. But easy to shove in drive before you're supposed to. This doesn't seem to bugger anything; conclude laptop has been fry proofed in this regard. You have to umount the drive and be root.

Nd4Spd: don't know but if you need a rpm package how about 'alien'? Or does it only do rpm->deb?

From my point of view this is the perfect thread.

 
Old 10-18-2005, 05:13 PM   #10
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
I would prefer an RPM but I could give something else a shot I guess. It's only time & money, right?

Or I could attempt to compile from source. I just haven't had time to give this a shot yet. I'm still interested in doing it. I usually run with my extra battery in the bay and only get the CD/DVD drive out when I need to use it, which is rarely. Just wondering how that'll work...

Thanks for the good news though.
 
Old 10-19-2005, 03:52 AM   #11
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
It seems a very small program?? These are usually easy to compile from source?? You might as well try it from source code - it'll probably work.

Hotswap is only interested in IDE devices. You only need it to remove or put in an IDE device. The CD/DVD drive is presumably an IDE device and the program allows it to be put in or pulled out. The battery is just shoved in, or pulled out, without the need for the program (like the floppy drive, in my case).
 
Old 10-19-2005, 06:21 PM   #12
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
Right-o on all the above. Never had an issue pulling out or putting in the battery. It's the IDE battery.
But the plan is to compile from source. I just need to to get around to it. You know how it is.
I'll let you know how it goes. Hope to do it within a day or so and get this thread posted to a FIXED status.
 
Old 11-20-2005, 09:13 AM   #13
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
Sorry about the time on the reply on this (over 45 days!). I finally got around to trying to install this and get it to work. It's complaining about dependencies, however I think I've got the dependencies all met (even though it says I don't). Any thoughts?


A ./configure will run and eventually exit with this:

Code:
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for Motif... no
configure: error: This program requires Motif.
configure: error: /bin/sh './configure' failed for motif-frontend
flat4:/home/nd4spd/tmp/hotswap-0.4.0 #
I use SuSE so I'm also using YaST. YaST says I'm running
openmotif 2.2.3-11 i586
openmotif-libs 2.2.3-11 i586

The only other 'motif' entries are motv which is a tv viewing app that uses Motif for a better GUI and xmcd which is a motif cd player.

Any ideas?
 
Old 11-20-2005, 10:49 AM   #14
Ruler2112
Member
 
Registered: Oct 2004
Location: Michigan, US
Distribution: Redhat 7.3, 9.0; Slackware 10, 10.1, 10.2, 11; FreeBSD 7.0; KnoppMyth 5.5
Posts: 125

Rep: Reputation: 16
Quote:
Originally posted by lugoteehalt
Mind boggles what would happen if hot swapped a desktop.
I've actually done this on a desktop with an IDE CD. Had an old PC where the CD-ROM would get confused and not read anything now and then. Power cycling the drive was the only way to unlock it. Well, I got frustrated from trying to do something else and the CD messed up again. Being very POed, I yanked the power and IDE connector out of the CD drive while slackware 10.0 was running, waited a few seconds, and reconnected them. I figured that it'd never work, but I was able to mount the drive without a hitch after that! Did it several more times that day (saved me from rebooting all the time) with no adverse effects that I was able to detect.

After doing this, I decided to try it with windoze. Yeeeeeeeeeaaaaaaaahhhhhhhhhhh...... Locked up windoze hard the first try.

Sorry if a bit OT.
 
Old 11-21-2005, 07:03 AM   #15
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
Yea. Windows doesn't particularly like to play that way. I know I've done some stupid things in Linux that I was sure would hose the whole thing. But that's the mentality coming from a windows environment. Not to say I haven't done some stupid things.. If I could just get this hot swap bay thing figured out, this laptop setup would be golden. Wireless works, touchpad works exactly like I want it. Is sweet.
 
  


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
Linux without cdrom or floppy novaforme Linux - General 9 08-29-2005 10:31 AM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
Mount Floppy CDRom swappable Drives jeffxor Mandriva 2 07-29-2004 11:27 PM
Cannot access cdrom and floppy drives navarre9 Linux - General 2 01-12-2004 11:58 AM
locks on cdrom and floppy drives yode Linux - Security 3 07-05-2002 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:49 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
Open Source Consulting | Domain Registration