Announcement

Collapse
No announcement yet.

mount/umount

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mount/umount

    When ever I try to eject a CD/DVD, it comes up with an error saying:

    "Unfortunately, the device system:/media/hdc (/dev/hdc) named 'Kubuntu 7.04 i386' and currently mounted at /media/cdrom0 could not be unmounted. The following error was returned by umount command:
    umount: /dev/hdc: not mounted
    umount: /media/cdrom0: must be superuser to umount
    umount: /dev/hdc: not mounted
    umount: /media/cdrom0: must be superuser to umount"

    Prior to this, I could just hit the button on the drive, and be on my way. Now I have to type "sudo eject /media/cdrom0" or "sudo mount /media/cdrom0".

    Any ideas on how to make it how it used to be?

    #2
    Re: mount/umount

    guess we need to take a closer look at your set up.
    pls, eject any cds you should have mounted and
    post the result of the following commands:
    Code:
    ls- l /dev/hd*
    Code:
    ls -l /dev/cd*
    Code:
    ls -l /media
    Code:
    cat /etc/fstab
    hopefully i haven't forgotten anything.

    i could be it's just a matter of removing this /media/hdc,
    which doesn't sound right...

    but let's see...
    gnu/linux is not windoze

    Comment


      #3
      Re: mount/umount

      Not as technical as jankushka!

      How do you try to eject disks?

      Do you see an icon of the disk on your desktop and does it have a green mark at the bottom corner. The green mark means it it mounted.

      RIGHT click on the icon and choose "Eject". What happens?
      "A problem well stated is a problem half solved." --Charles F. Kettering
      "Sometimes the questions are complicated and the answers are simple."--Dr. Seuss

      Comment


        #4
        Re: mount/umount

        In response to Jankushka:

        Code:
        neville@ussr:~$ ls- 1 /dev/hd*
        bash: ls-: command not found
        neville@ussr:~$ ls -1 /dev/hd*
        /dev/hda
        /dev/hda1
        /dev/hdb
        /dev/hdb1
        /dev/hdb2
        /dev/hdb5
        /dev/hdc
        /dev/hdd
        neville@ussr:~$ ls -1 /dev/cd*
        /dev/cdrom
        /dev/cdrw
        neville@ussr:~$ ls -1 /media
        cdrom
        cdrom0
        cdrom1
        disk
        disk-1
        floppy
        floppy0
        hda1
        neville@ussr:~$ cat /etc/fstab
        # /etc/fstab: static file system information.
        #
        # -- This file has been automaticly generated by ntfs-config --
        #
        # <file system> <mount point>  <type> <options>    <dump> <pass>
        
        proc /proc proc defaults 0 0
        # Entry for /dev/hdb1 :
        UUID=9572e505-1fcd-4c21-ab95-a2da4f604b34 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
        # Entry for /dev/hdb5 :
        UUID=39f3a9a7-dac4-48fd-a876-6652336fe81e none swap sw 0 0
        /dev/hdc /media/cdrom0 auto users,atime,auto,rw,dev,exec,suid 0 0
        /dev/hdc /media/cdrom1 auto users,atime,auto,rw,dev,exec,suid 0 0
        /dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0
        /dev/hda1 /media/hda1 ntfs-3g defaults,locale=en_AU.UTF-8 0 0
        neville@ussr:~$
        As for clicking eject in the context menu, the first time it did nothing, then it gave the same error that I got from physically pressing the button.

        Comment


          #5
          Re: mount/umount

          two things:

          a) i actually need "ls -l" not "ls -1"

          b) in your /etc/fstab, you have 2 entries for /dev/hdc
          this is not good.
          remove the one for /media/cdrom1.
          gnu/linux is not windoze

          Comment


            #6
            Re: mount/umount

            Code:
            neville@ussr:~$ ls -l /dev/hd*
            brw-rw---- 1 root disk  3, 0 2007-10-17 06:39 /dev/hda
            brw-rw---- 1 root disk  3, 1 2007-10-17 06:39 /dev/hda1
            brw-rw---- 1 root disk  3, 64 2007-10-17 06:39 /dev/hdb
            brw-rw---- 1 root disk  3, 65 2007-10-16 20:40 /dev/hdb1
            brw-rw---- 1 root disk  3, 66 2007-10-17 06:39 /dev/hdb2
            brw-rw---- 1 root disk  3, 69 2007-10-17 06:39 /dev/hdb5
            brw-rw---- 1 root cdrom 22, 0 2007-10-17 06:39 /dev/hdc
            brw-rw---- 1 root cdrom 22, 64 2007-10-17 06:39 /dev/hdd
            neville@ussr:~$ ls -l /dev/cd*
            lrwxrwxrwx 1 root root 3 2007-10-17 06:40 /dev/cdrom -> hdd
            lrwxrwxrwx 1 root root 3 2007-10-17 06:40 /dev/cdrw -> hdd
            neville@ussr:~$ ls -l /media
            total 48
            lrwxrwxrwx 1 root  root   6 2007-10-13 12:39 cdrom -> cdrom0
            drwxr-xr-x 2 root  root 4096 2007-10-13 12:39 cdrom0
            drwxr-xr-x 2 root  root 4096 2007-10-13 12:39 cdrom1
            drwxr-xr-x 4 neville root 16384 1970-01-01 10:00 disk
            drwxr-xr-x 3 neville root 16384 1970-01-01 10:00 disk-1
            lrwxrwxrwx 1 root  root   7 2007-10-13 12:39 floppy -> floppy0
            drwxr-xr-x 2 root  root 4096 2007-10-13 12:39 floppy0
            drwxrwxrwx 1 root  root 4096 2007-10-16 20:35 hda1
            neville@ussr:~$ cat /etc/fstab
            # /etc/fstab: static file system information.
            #
            # -- This file has been automaticly generated by ntfs-config --
            #
            # <file system> <mount point>  <type> <options>    <dump> <pass>
            
            proc /proc proc defaults 0 0
            # Entry for /dev/hdb1 :
            UUID=9572e505-1fcd-4c21-ab95-a2da4f604b34 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
            # Entry for /dev/hdb5 :
            UUID=39f3a9a7-dac4-48fd-a876-6652336fe81e none swap sw 0 0
            /dev/hdc /media/cdrom0 auto users,atime,auto,rw,dev,exec,suid 0 0
            /dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0
            /dev/hda1 /media/hda1 ntfs-3g defaults,locale=en_AU.UTF-8 0 0
            Sorry for the mixup with 1 and l >.>;

            Comment


              #7
              Re: mount/umount

              all right...
              sorry i'm a bit in a hurry, so i'll try and keep it simple.

              it appears you have 2 cd drives (or 1 cd and 1 dvd): is this correct?

              your /dev/cd* both point to /dev/hdd.
              the entry in your /etc/fstab is for /dev/hdc.

              you have to get these right, i think.

              also (for cleaning purposes) you may remove "disk" and "disk-1" from the /media folder.
              mount points for removable media are created/removed dynamically.

              let us know how it goes.
              if you need me to clarify anything, pls, also let me know.
              gnu/linux is not windoze

              Comment

              Working...
              X