I wanted to know how to unmount the CD/DVD writer on my laptop, esp. when I’m on battery.
Obviously, the
umount /media/cdrom
does not work since you can unmount filesystems and not a drive.
Any ideas?
I wanted to know how to unmount the CD/DVD writer on my laptop, esp. when I’m on battery.
Obviously, the
umount /media/cdrom
does not work since you can unmount filesystems and not a drive.
Any ideas?
darthshak wrote:
> I wanted to know how to unmount the CD/DVD writer on my laptop, esp.
> when I’m on battery.
> Obviously, the
> Code:
> --------------------
> umount /media/cdrom
> --------------------
> does not work since you can unmount filesystems and not a drive.
>
> Any ideas?
You wouldn’t unmount the device, you need to unload the driver; however, I’m not
sure that would save much power.
To do it, you would need to look at the output from the dmesg command to find
the name of the driver. On my system, I see the following:
amd74xx 0000:00:06.0: UDMA133 controller
amd74xx 0000:00:06.0: IDE controller (0x10de:0x0560 rev 0xa1)
amd74xx 0000:00:06.0: IDE port disabled
amd74xx 0000:00:06.0: BIOS didn’t set cable bits correctly. Enabling workaround.
amd74xx 0000:00:06.0: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x30c0-0x30c7
Probing IDE interface ide0…
hda: Optiarc DVD RW AD-7561A, ATAPI CD/DVD-ROM drive
hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hda: MWDMA2 mode selected
Thus, my system uses amd74xx as the driver for the DVD. To unload it, I would
use the command
sudo /sbin/modprobe -rv amd74xx
To reinstate the driver later, you would use
sudo /sbin/modprobe -v amd74xx
Larry
linux treats your CD / DVD player as a file system so that command will work to unmount your player
You will have to become root first and then the command to unmount it will work properly.
have you tried Powertop to find out what you can shut down to improver battery life if you are looking to improve battery life.
I have never been in need of more battery life so I don’t know how much DVD really will cut into the battery life as a part of Linux.