LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Serious mount/umount problems... (http://www.linuxquestions.org/questions/linux-software-2/serious-mount-umount-problems-51217/)

Veratien 03-22-2003 04:58 PM

Serious mount/umount problems...
 
This is killing me now... I've asked every guru I know and they have no idea...

I'm trying to install Neverwinter Nights, the linux one. I've downloaded the installed for it (the 24MB one which patches after it's installed) and I'm having problems with it. I can't change CD's.

The first CD went fine, but then I ran into problems.

Now I've got this:
[root@localhost cdrom]# mount
/dev/hda7 on / type ext2 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb1 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
/dev/hda6 on /usr type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/cdrom type supermount (ro)

Good old supermount...

My question: Is there a way to forcably drop a mount?

Some things I've tried to get around it are below. (this is a direct copy from the command window, so it's quite long...)





[root@localhost cdrom]# umount ./
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
[root@localhost cdrom]# mount ./
[root@localhost cdrom]# ls
[root@localhost cdrom]# umount ./
[root@localhost cdrom]# eject cdrom
[root@localhost cdrom]# mount ./
[root@localhost cdrom]# umount ./
[root@localhost cdrom]# eject cdrom
[root@localhost cdrom]# mount ./
[root@localhost cdrom]# ls
[root@localhost cdrom]# mount -a
[root@localhost cdrom]# umount
Usage: umount [-hV]
umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
umount [-f] [-r] [-n] [-v] special | node...
[root@localhost cdrom]# man umount
[root@localhost cdrom]# cd /
[root@localhost /]# mount /mnt/cdrom
[root@localhost /]# umount /mnt/cdrom
[root@localhost /]# umount /mnt/cdrom
[root@localhost /]# umount /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# mount /mnt/cdrom
[root@localhost /]# ls /mnt/cdrom
[root@localhost /]# ls /mnt/cdrom
[root@localhost /]# mount /mnt/cdrom
[root@localhost /]# ls /mnt/cdrom
[root@localhost /]# umount /mnt/cdrom
[root@localhost /]# fsmount
bash: fsmount: command not found
[root@localhost /]# mount
/dev/hda7 on / type ext2 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb1 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso885
9-15,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=i
so8859-15,codepage=850,umask=0)
/dev/hda6 on /usr type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso885
9-15,codepage=850,umask=0)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso885
9-15,codepage=850,umask=0)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso885
9-15,codepage=850,umask=0)
[root@localhost /]# umount /dev/scd0
umount: /dev/scd0: not mounted
[root@localhost /]# umount /mnt/cdrom
[root@localhost /]# umount
Usage: umount [-hV]
umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
umount [-f] [-r] [-n] [-v] special | node...
[root@localhost /]# manumount
bash: manumount: command not found
[root@localhost /]# man umount
[root@localhost /]# umount -f /mnt/cdrom
umount2: Device or resource busy
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount -fv /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount -v /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount -f /mnt/cdrom
umount2: Device or resource busy
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount -V /mnt/cdrom
umount: mount-2.11u
[root@localhost /]# umount -v /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount -fv /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount -vf /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost /]# umount -fvr /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: none busy - remounted read-only
[root@localhost /]# ls
1 boot/ devel/ home/ lib/ opt/ root/ tmp/ var/
bin/ dev/ etc/ initrd/ mnt/ proc/ sbin/ usr/
[root@localhost /]# cd mnt/cdrom
[root@localhost cdrom]# ls
[root@localhost cdrom]# mount
/dev/hda7 on / type ext2 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb1 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso885 9-15,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=i so8859-15,codepage=850,umask=0)
/dev/hda6 on /usr type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso885 9-15,codepage=850,umask=0)
none on /mnt/cdrom type supermount (ro)
[root@localhost cdrom]# umount -fv /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost cdrom]# mount
/dev/hda7 on / type ext2 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb1 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
/dev/hda6 on /usr type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/cdrom type supermount (ro)
[root@localhost cdrom]# fuser /dev/scd0
[root@localhost cdrom]# ps aux|grep mount
root 1605 0.0 0.1 1392 480 ? S 22:18 0:00 rpc.mountd
root 3087 0.0 0.2 1672 592 pts/2 R 22:41 0:00 grep mount
[root@localhost cdrom]# mount /mnt/cdrom
[root@localhost cdrom]# ls
[root@localhost cdrom]# umount -fv /mnt/cdrom
none umounted
[root@localhost cdrom]# ls
[root@localhost cdrom]# mount
/dev/hda7 on / type ext2 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb1 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
/dev/hda6 on /usr type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/cdrom type supermount (ro)
[root@localhost cdrom]# man supermount
[root@localhost cdrom]# mkdir /cdrom; mount /dev/cdroms/cdrom0 /cdrom
mount: block device /dev/cdroms/cdrom0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/cdroms/cdrom0,
or too many mounted file systems
[root@localhost cdrom]# mount -t iso9660 /dev/cdroms/cdrom0 /cdrom
mount: block device /dev/cdroms/cdrom0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/cdroms/cdrom0,
or too many mounted file systems
[root@localhost cdrom]# mount -t iso9660 /dev/scd0 /cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems
[root@localhost cdrom]# ls
[root@localhost cdrom]# cd ..
[root@localhost mnt]# cd ..
[root@localhost /]# ls
1 bin/ boot/ cdrom/ dev/ devel/ etc/ home/ initrd/ lib/ mnt/ opt/ proc/ root/ sbin/ tmp/ usr/ var/
[root@localhost /]# cd cdrom
[root@localhost cdrom]# ls
[root@localhost cdrom]# umount -fv /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost cdrom]# umount -fv /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost cdrom]# umount -fv /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost cdrom]# umount -fv /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost cdrom]# umount -fv /mnt/cdrom
umount2: Device or resource busy
could not umount /mnt/cdrom - trying none instead
umount: none: not found
umount: /mnt/cdrom: Illegal seek
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
[root@localhost cdrom]# umount -fv /dev/scd0
Could not find /dev/scd0 in mtab
umount2: Invalid argument
umount: /dev/scd0: Illegal seek
[root@localhost cdrom]# mount -t iso9660 /dev/scd0 /cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems
[root@localhost cdrom]# mount
/dev/hda7 on / type ext2 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb1 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
/dev/hda6 on /usr type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/cdrom type supermount (ro)
[root@localhost cdrom]# man supermount
[root@localhost cdrom]# supermount
Usage: supermount [OPTION]... <disable | enable>
Enable or disable supermount in fstab.

-m=DIR, --mountpoint=DIR: Specifiy single mount point to enable/disable.
(default: all)
-f=FILE, --file=FILE: Specify an alternarte fstab file .
(default: /etc/fstab).
-i, --infile: Make modification directly in the file.

[root@localhost cdrom]# supermount disable
/dev/hda7 / ext2 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hdb1 /home ext3 defaults 1 2
/dev/scd0 /mnt/cdrom auto codepage=850,noauto,iocharset=iso8859-15,nosuid,ro,umask=0,user,nodev 0 0
/dev/fd0 /mnt/floppy auto codepage=850,sync,unhide,noauto,iocharset=iso8859-15,nosuid,umask=0,user,nodev 0 0
none /proc proc defaults 0 0
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda8 /var ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0
[root@localhost cdrom]# mount
/dev/hda7 on / type ext2 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hdb1 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
/dev/hda6 on /usr type ext3 (rw)
/dev/hda8 on /var type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-15,codepage=850,umask=0)
none on /mnt/cdrom type supermount (ro)
[root@localhost cdrom]# supermount disable
/dev/hda7 / ext2 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hdb1 /home ext3 defaults 1 2
/dev/scd0 /mnt/cdrom auto codepage=850,noauto,iocharset=iso8859-15,nosuid,ro,umask=0,user,nodev 0 0
/dev/fd0 /mnt/floppy auto codepage=850,sync,unhide,noauto,iocharset=iso8859-15,nosuid,umask=0,user,nodev 0 0
none /proc proc defaults 0 0
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda8 /var ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0
[root@localhost cdrom]# supermount enable
/dev/hda7 / ext2 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hdb1 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-15,codepage=850,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-15,sync,codepage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda8 /var ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0
[root@localhost cdrom]# supermount disable
/dev/hda7 / ext2 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
/dev/hdb1 /home ext3 defaults 1 2
/dev/scd0 /mnt/cdrom auto codepage=850,noauto,iocharset=iso8859-15,nosuid,ro,umask=0,user,nodev 0 0
/dev/fd0 /mnt/floppy auto codepage=850,sync,unhide,noauto,iocharset=iso8859-15,nosuid,umask=0,user,nodev 0 0
none /proc proc defaults 0 0
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda8 /var ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0
[root@localhost cdrom]# mount /dev/cdroms/cdrom0
mount: can't find /dev/cdroms/cdrom0 in /etc/fstab or /etc/mtab
[root@localhost cdrom]# mount /cdrom
mount: can't find /cdrom in /etc/fstab or /etc/mtab
[root@localhost cdrom]# mount /dev/scd0 /cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems
[root@localhost cdrom]# mount -t iso9660 /dev/scd0 /cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems
[root@localhost cdrom]#

bax 03-22-2003 05:17 PM

Try following these guidelineshere

Veratien 03-22-2003 05:28 PM

Tried everything there already apart from the SETUP_CDROM thing. I doubt that will work though...

2damncommon 03-23-2003 12:14 AM

I get the "device is busy" error anytime I attempt to access my CD on NFS.
Using -r, -l, and if needed -f, one at a time and waiting a minute or so works sometimes, not always.
I take it that mounting floppies and other CDs works okay? If not I would check into disabling supermount.
Good Luck.

Veratien 03-23-2003 01:54 PM

I've figured it out now.

Mandrake 9.0 automounts when you cd to /mnt/cdrom, so I never need to actuall mount the drive, jsut cd to it and ls. If I do mount it, it double mounts, because there's already a cdrom mount there. ;)

See, simple things cause the worst of problems...

bax 03-23-2003 03:27 PM

Umm, that was mentioned explicitly in the link I posted. I had exactly the same thing happen w/ installing Unreal 2003.

Veratien 03-23-2003 04:04 PM

I didn't realise that was the problem at the time, although it didn't say anything about automounting though...

Got a new problem now: NWN crashes when I click 'create new character'..

Great...

Dillutedmind 03-23-2003 04:30 PM

linux can be a bit<h cant it lol

Veratien 03-23-2003 05:05 PM

That is it... :-/

*grumbles*

Beats Microshaft's Whinedoze any day though...

Note to self: Send email to WINE's developers to rename it to WHINE, because then they can say "If Windows starts causing you problems, then WHINE about it."


All times are GMT -5. The time now is 03:14 AM.