Como Instalar Supermount-ng para el kernel 2.6.X - 2.6.24 en Gentoo, SuSE, etc.
SUPERMOUNT-NG COMODIDAD PARA LOS USUARIOS QUE MIGRAN
Debido a que la última versión de udev hal dbus e ivman incluidas en gentoo no trabajan muy bien con floppys, procedo a actualizar la versión original de Supermount disponible en la página web de Sourceforge supermount.sourceforge.net, también como hay un problemita en el kernel con uselib también lo portamos al kernel 2.6.18-rc3, 2.6.17.4, y cambiamos para 2.6.12 para estar al día, Supermount permite quitar y cambiar discos sin montar y desmontar, esto no es recomendable en Linux, porque atenta con la estabilidad del sistema, pero hay casos en los que podría decirse lo contrario, una operación infinita de error de lectura, se soluciona con el botoncito de eject del reproductor de CDs. El usuario que migra de windows encontrará en estas características mucha comodidad. No soy un experto en Kernel, pero modificando muy poquito sigue funcionando, en la página oficial parece no haber más soporte, insisto que ivman funciona muy bien, pero no la ultima verison con el ultimo gentoo. Si alguien desea probar BootSplash para 2.6.18-rc3 aquí pueden descargarlo mientras el autor lo actualiza.
Primero descargamos la versión correspondiente a la de nuestro kernel, estos parches fueron probados solo con dispositivos IDE/ATAPI CD/DVD y FLOPPY, y bájelos bajo sus propios riesgos.
Nota: Si tienes problemas con expulsar el CD-ROM y no puedes configurar dbus/hald/ivman entonces prueba aplicar este parche después de aplicar el de supermount: supermount_unlocktray.patch.gz
Nota:(VER LA DOCUMENTACION o CONSULTAR SI NO COMPILA CON GCC 3.4.X [reemplazar en subfs.c "inline" por "" nada])
Entramos a la carpeta donde tenemos instalado el kernel, por ejemplo en /usr/src/linux-2.6.10
bash-2.05b# cd /usr/src/linux-2.6.11-rc1
bash-2.05b# gzip -dc /home/gus/supermount-2.0.4-2.6.11-rc1-madgus.patch.gz | patch -p1
patching file Documentation/filesystems/00-INDEX
patching file Documentation/filesystems/supermount.txt
patching file drivers/cdrom/cdrom.c
patching file drivers/cdrom/cdu31a.c
patching file drivers/cdrom/cm206.c
patching file drivers/cdrom/mcd.c
patching file drivers/cdrom/mcdx.c
patching file drivers/cdrom/sbpcd.c
patching file drivers/ide/ide-cd.c
patching file drivers/ide/ide-floppy.c
patching file drivers/scsi/sd.c
patching file drivers/scsi/sr.c
patching file fs/Kconfig
patching file fs/Makefile
patching file fs/block_dev.c
patching file fs/ext2/super.c
patching file fs/isofs/inode.c
patching file fs/namespace.c
patching file fs/super.c
patching file fs/supermount/Kconfig
patching file fs/supermount/Makefile
patching file fs/supermount/changelog
patching file fs/supermount/dentry.c
patching file fs/supermount/file.c
patching file fs/supermount/filemap.c
patching file fs/supermount/init.c
patching file fs/supermount/mediactl.c
patching file fs/supermount/namei.c
patching file fs/supermount/proc.c
patching file fs/supermount/subfs.c
patching file fs/supermount/super.c
patching file fs/supermount/supermount.h
patching file fs/udf/super.c
patching file include/linux/cdrom.h
patching file include/linux/fs.h
patching file include/linux/genhd.h
patching file include/linux/supermount_media.h
bash-2.05b# make menuconfig
Linux Kernel v2.6.11-rc1 Configuration
------------------------------------------------------------------------------
l-------------------------- Pseudo filesystems --------------------------qk
x Arrow keys navigate the menu. <Enter> selects submenus --->. x
x Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, x
x <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> x
x for Search. Legend: [*] built-in [ ] excluded <M> module < > x
x l--------------------------------------------------------------------qk x
x x [*] /proc file system support x x
x x [*] /proc/kcore support x x
x x [ ] /dev file system support (OBSOLETE) x x
x x [ ] /dev/pts Extended Attributes x x
x x [*] Virtual memory file system support (former shm fs) x x
x x [ ] tmpfs Extended Attributes (NEW) x x
x x [ ] HugeTLB file system support x x
x x <*> Supermount removable media support x x
x x [ ] Enable supermount debug code (NEW) x x
x m--------------------------------------------------------------------qj x
t------------------------------------------------------------------------qu
x <Select> < Exit > < Help > x
Guardamos la configuración, y ejecutamos la compilación del kernel. No trataremos en esta sección como compilar el kernel, eso será en otro artículo.
Configuramos el archivo /etc/fstab como lo muestra el siguiente ejemplo y revisamos que los dispositivos que queramos sean manipulados por supermount estén como abajo (estos parches fueron probados solo con IDE/ATAPI CD/DVD y FLOPPY):
# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT /boot ext3 noauto,noatime 1 1
/dev/hdc7 / ext3 noatime 0 0
/dev/hdc2 /home.old ext3 noatime 0 0
/dev/hdc6 /compartir ext3 noatime 0 0
/dev/hdc8 /xtras xfs noatime 0 0
/dev/hdc5 /d xfs noatime 0 0
/dev/sda2 none swap sw 0 0
#/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy vfat,minix,ext2,ext3 sync,noauto,users 0 0
/dev/cdrom /cdrom supermount fs=udf:iso9660,dev=/dev/cdrom,--,ro,defaults,user,exec 0 0
/dev/dvdrw /dvdr auto ro,noauto,user,exec 0 0
/dev/dvd /dvd supermount fs=udf:iso9660,dev=/dev/dvd,--,ro,defaults,user,exec 0 0
/dev/sda1 /mnt auto ro,noauto,user,exec 0 0
/dev/fd0 /floppy supermount fs=vfat:ext2,dev=/dev/fd0,--,defaults,user,sync 0 0
tmpfs /tmpfs tmpfs noauto,user 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
/dev/hdd /media/cdrecorder auto exec,user,noauto,managed 0 0
/dev/hdb /media/cdrom auto exec,user,noauto,managed 0 0
/dev/hda /media/cdrecorder1 auto exec,user,noauto,managed 0 0
|Contrate Nuestra asesoría, instalación y cursos en Sistemas Linux, Redes, etc. Acerca de este sitio web Webmaster | Volver Al Inicio | Compunauta Micro Linux (uLinux) El servidor en CD, sin innstalación. |