Announcement

Collapse
No announcement yet.

Wrong mounting of harddisks

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

    Wrong mounting of harddisks

    hi every one..... i recently changed from Ubuntu 8.04 to Kubuntu 8.10...
    During the time i was installing Kubuntu.... i repartitioned my disks and mounted certain NTS32 volumes as DOS1,DOS2 on the root directory.......
    prior to ubuntu i was using windows XP....after installing ubuntu.....these drives were behaving as extra HDD and i could mount them or unmount them as and when required....now after doing installing kubuntu they have become directories on my root. i want to remove them from there and use as mountable disks......
    help
    thanking all in anticipation

    #2
    Re: Wrong mointing of harddisks

    You can start with posting contents of your /etc/fstab file. Do I understand clearly that all you want is to mount those two partitions on demand rather then automatically during boot? And in case you are wondering - those fat32 partitions have not became directories on your /. Those directories are just mount points.

    Comment


      #3
      Re: Wrong mointing of harddisks

      the contents of fstab are as follows

      # /etc/fstab: static file system information.
      #
      # <file system> <mount point> <type> <options> <dump> <pass>
      proc /proc proc defaults 0 0
      # /dev/sda1
      UUID=18e9c834-2389-4af6-a93b-c96d38228aa8 / ext3 relatime,errors=remount-ro 0 1
      # /dev/sda6
      UUID=EDFF-9F1F /dos1 vfat defaults,umask=007,gid=46 0 1
      # /dev/sda7
      UUID=7EA3-763B /dos2 vfat defaults,umask=007,gid=46 0 1
      # /dev/sda8
      UUID=1A68-CFF6 /dos3 vfat defaults,umask=007,gid=46 0 1
      # /dev/sda9
      UUID=26F1-FDEE /dos4 vfat defaults,umask=007,gid=46 0 1
      # /dev/sda10
      UUID=8F5B-7611 /dos5 vfat defaults,umask=007,gid=46 0 1
      # /dev/sda11
      UUID=30C0-83F7 /windows vfat defaults,umask=007,gid=46 0 1
      # /dev/sda5
      UUID=700770d7-311d-474d-961d-d3fcd5950296 none swap sw 0 0
      /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

      Comment


        #4
        Re: Wrong mounting of harddisks

        You might wish to replace "defaults,umask=007,gid=46" with something like this "rw, dev, exec, noauto, user,async,umask=007". It would cause mounting chosen partitions on demand only, by user, in read-write mode. You should also check manual for mount (man mount) - all options are explained there.

        Comment


          #5
          Re: Wrong mounting of harddisks

          thanks.........i will try that...............

          Comment


            #6
            Re: Wrong mounting of harddisks

            I recently upgraded my 8.10 Intrepid Ibex to "Linux kubuntu 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 GNU/Linux", on Friday, 28 Nov. 2008. I have my HD partitioned into 3 disks and had access to all before. Now I have access only to the boot disk.
            fstab contents:
            # /etc/fstab: static file system information.
            #
            # <file system> <mount point> <type> <options> <dump> <pass>
            proc /proc proc defaults 0 0
            # /dev/sda1
            UUID=c6c2368b-92a4-4b5b-8984-d9eeed9ef332 / ext3 relatime,errors=remount-ro 0 1
            # /dev/sda2
            UUID=a1d2d3aa-407d-48c4-9302-ec3cc7fdb30d none swap sw 0 0
            /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
            /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

            No backups are available because of the upgrade, since the backups are on the only partitions that don't need to be wiped when doing a complete installation instead of an upgrade.
            Doesn't matter since I have no log of backups in "keep" anyway.
            I cannot find my partitions in /media anymore, nor, can I mount them.
            Here is the result of "sfdisk /l /dev/sda":
            Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
            Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

            Device Boot Start End #cyls #blocks Id System
            /dev/sda1 * 0+ 12157 12158- 97659103+ 83 Linux
            /dev/sda2 12158 12158 1 8032+ 82 Linux swap / Solaris
            /dev/sda3 12159 36485 24327 195406627+ 83 Linux
            /dev/sda4 36486 60800 24315 195310237+ 5 Extended
            /dev/sda5 36486+ 60800 24315- 195310206 83 Linux

            Any help would be appreciated.
            Thank you!

            Comment


              #7
              Re: Wrong mounting of harddisks

              Just edit your /etc/fstab file (as root) and add:
              UUID=[for /dev/sda3] mount_point ext3 relatime,errors=remount-ro 0 2
              UUID=[for /dev/sda5] mount_point ext3 relatime,errors=remount-ro 0 2
              Replacing [for /dev/sda3] and [for /dev/sda5] with the appropriate blkid
              Replace mount_point with the location you have the partitions mounted.

              To get the blkid's open a console and type:
              Code:
              blkid
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Re: Wrong mounting of harddisks

                According to "gparted" there is no mount point for these two partitions. Is there a way to reestablish a mount point for each??
                Thank you!

                Comment


                  #9
                  Re: Wrong mounting of harddisks

                  Open a console. First, type:
                  Code:
                  ls -l /media
                  If you don't see sda3 and sda5 I'd be suprised. But if you don't, then type:
                  Code:
                  sudo mkdir  /media/sda3  /media/sda5
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: Wrong mounting of harddisks

                    Problem solved. That was the only solution I hadn't tried. It worked FINE!!!
                    Thank you!

                    Comment

                    Working...
                    X