LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-08-2013, 06:58 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Mount makes as if mounting, but it does not really mount the medium.


Slackware 14.0

Hi:
Code:
root@server:~# mount --version
mount from util-linux 2.21.2 (with libblkid support)
root@server:~# mount /dev/sr0 -t iso9660 /mnt/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only
root@server:~# mount|grep sr0
root@server:~#
The first mount executes without complaining. The second mount, lists all mounted devices, except /dev/sr0! The medium to be mounted is this:
Code:
root@server:~# cdrecord -media-info dev=0,0,0
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVDRAM GH24NS90 '
Revision       : 'IN01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE 
Supported modes: PACKET SAO LAYER_JUMP
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
WARNING: Phys disk size 2160824 differs from rzone size 0! Prerecorded disk?
WARNING: Phys start: 196608 Phys end 2357431
WARNING: Drive returns zero media size. Using media size from ADIP.
Mounted media class:      DVD
Mounted media type:       DVD-R sequential recording
Disk Is not erasable
data type:                standard
disk status:              incomplete/appendable
session status:           empty
BG format status:         none
first track:              1
number of sessions:       2
first track in last sess: 2
last track in last sess:  2
Disk Is unrestricted
Disk type: DVD, HD-DVD or BD

Track  Sess Type   Start Addr End Addr   Size
==============================================
    1     1 Data   0          2160831    2160832
    2     2 Blank  2207952    2297887    89936

Last session start address:         0
Last session leadout start address: 2160832
Next writable address:              2207952
Remaining writable size:            89936
root@server:~#
I am trying to understand what happens here. Could somebody give me a hint?
 
Old 10-08-2013, 07:09 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
what does "The first mount executes without complaining" mean? You can mount the first CD but not the second? Did you properly umount/eject that CD?
 
Old 10-08-2013, 07:13 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
There is always the same CD in the drive. The first mount is supposed to mount the CD. The second, only to list the mounted filesystems.

Last edited by stf92; 10-08-2013 at 07:15 AM.
 
Old 10-08-2013, 07:54 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

No issue like this on my slackware 14.0 :
Code:
$ mount|grep sr0
/dev/sr0 on /mnt/cdrom type iso9660 (ro)
Is /dev/sr0 not listed when you issue the command mount alone ?

Try to look for the mount point instead of the device :
Code:
$ mount|grep cdrom
/dev/sr0 on /mnt/cdrom type iso9660 (ro)
--
SeB
 
Old 10-08-2013, 08:09 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
The mount command output is short enough to put it here:
Code:
semoi@server:~/z80_2013/zilog$ mount
/dev/sda2 on / type ext2 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/sda1 on /xp type fuseblk (rw,allow_other,blksize=4096,default_permissions)
/dev/sda6 on /almacen type fuseblk (rw,allow_other,blksize=4096,default_permissions)
/dev/sdb1 on /mnt/usb type vfat (rw)
/dev/sda5 on /mnt/fdos type vfat (rw)
tmpfs on /dev/shm type tmpfs (rw)
gvfs-fuse-daemon on /home/semoi/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=semoi)
semoi@server:~/z80_2013/zilog$
It is nowhere in the list, and 'ls /mnt/cdrom' shows an empty list. Rebooting the machine makes the CD be effectively mounted. Furthermore, the usual behaviour is for mount to mount the optical media, if there is one in the tray. But sometimes mount's behavior is that shown in post #1: it says it is mounting and gives no warning or error. But it mounts nothing. When mount works, I get
Code:
$ mount
...............
/dev/sr0 on /mnt/cdrom type iso9660 (ro,nosuid,nodev)
...............
In /etc/fstab I have
Code:
/dev/sr0         /mnt/cdrom       iso9660     owner,ro,comment=x-gvfs-show 0   0
But it doesn't matter, because I am issuing the command 'mount -t iso9660 /dev/sr0 /mnt/cdrom'.

Last edited by stf92; 10-08-2013 at 08:15 AM.
 
Old 10-08-2013, 08:24 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
have you checked /var/log for error messages? probably there is a conflict between gvfs-fuse-daemon and mount (different users?)
 
  


Reply



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
mount: No medium found rudrappr Linux - Newbie 1 10-18-2012 12:15 PM
mount : mount error 2 mounting ext 3 Pivotroot: pivot_root(/sysroot,/sy TONYSUCCAR Linux - Enterprise 3 09-07-2009 05:08 AM
mount : No medium found Alwyn Linux - Newbie 3 01-11-2005 12:24 AM
SuSe 8 makes NTFS mount point, but doesn't create directories, error when mounting... BlackDogg Linux - Distributions 5 08-01-2002 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:49 PM.

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