Find the answer to your Linux question:
Results 1 to 7 of 7
when i am going to eject my cdrom i have an error -> "Unable to eject media, only root can umount /dev/hdb from /media/cdrom1" how can i fix it?...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Location
    Greece,Patra
    Posts
    5

    Mount/Umount

    when i am going to eject my cdrom i have an error -> "Unable to eject media, only root can umount /dev/hdb from /media/cdrom1"

    how can i fix it?

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    845
    Add the option umask=0 to your fstab (/etc/fstab)
    Linux User #453176

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    Post the contents of /etc/fstab file here.
    Code:
    cat /etc/fstab
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Oct 2007
    Location
    Greece,Patra
    Posts
    5
    /dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    "Unable to eject media, only root can umount /dev/hdb from /media/cdrom1"
    Error is listing /dev/hdb but Cdrom devices are pointing to /dev/scd1 and /dev/scd0 in /etc/fstab file.
    Post all the contents of /etc/fstab file and output of fdisk -l command.
    Code:
    cat /etc/fstab 
    su
    fdisk -l
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Oct 2007
    Location
    Greece,Patra
    Posts
    5
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/sda1 / ext3 defaults,errors=remount-ro 0 1
    /dev/sda5 none swap sw 0 0
    /dev/hda /media/cdrom0 udf,iso9660 umask=0,noauto,user 0 0
    /dev/hdb /media/cdrom1 udf,iso9660 umask=0,noauto,user 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

    and fdisk -l is that

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 19269 154778211 83 Linux
    /dev/sda2 19270 19457 1510110 5 Extended
    /dev/sda5 19270 19457 1510078+ 82 Linux swap / Solaris

    I have to go...i see your help
    Thanks!!!

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Contents of /etc/fstab is correct. How many CD Drives do you have? Its listing two CD Drives.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •