Announcement

Collapse
No announcement yet.

How to mount my C: drive

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

    How to mount my C: drive

    I just installed Kubuntu a few hours ago so I'm reaaally n00b at it. I'm assuming that to help me you would ask me to run sudo fdisk -l so I went ahead and did that already, here is the output:
    Disk /dev/hda: 41.1 GB, 41110142976 bytes
    255 heads, 63 sectors/track, 4998 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 4997 40138371 7 HPFS/NTFS

    Disk /dev/hdb: 20.4 GB, 20411080704 bytes
    255 heads, 63 sectors/track, 2481 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 1 1290 10361893+ c W95 FAT32 (LBA)
    /dev/hdb2 * 1291 2481 9566707+ f W95 Ext'd (LBA)
    /dev/hdb5 1291 2353 8538516 83 Linux
    /dev/hdb6 2354 2481 1028128+ 82 Linux swap / Solaris

    #2
    Re: How to mount my C: drive

    I tried following these instructions:

    First, make a directory where the partition can be mounted:
    sudo mkdir /mnt/windows
    Next, backup your configuration file for mounting drives and open the file in a text editor with administrative privileges:
    sudo cp /etc/fstab /etc/fstab_backup kdesu kate /etc/fstab
    If your Windows partition uses the NTFS filesystem, append the following line at the end of file
    /dev/hdaX /mnt/windows ntfs ro,umask=0222 0 0
    If your Windows partition uses the FAT32 filesystem, it is safe to allow read-write access to the partition.

    When I enter "/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0", I get the message "bash: /dev/hda: Permission denied"

    Comment


      #3
      Re: How to mount my C: drive

      Are you trying to mount this as root using the following:
      sudo mount /mnt/windows

      Does this give the error, or does changing your directory to /mnt/windows give you this error?

      Comment


        #4
        Re: How to mount my C: drive

        have a look here:
        http://ubuntuguide.org/wiki/Dapper

        what you need is under point: 17.3.

        How to mount Windows partitions (NTFS) on boot-up, and allow users read and write access

        Warning: Ntfs writing support is still experimental. You should not enable it on production machines and/or volumes you don't have backups of. Proceed at your own risk!

        * Read #General Notes

        sudo apt-get install libfuse2 fuse-utils

        * Download the latest ntfsprogs package (these are from the Dapper repositories, so they are safe to install.)

        libntfs8 ntfsprogs libfuse2 fuse-utils

        * Install the downloaded packages

        sudo dpkg -i libfuse2_*.deb fuse-utils_*.deb ntfsprogs_*.deb libntfs8_*.deb

        * Add fuse to the list of modules to load

        echo fuse | sudo tee -a /etc/modules

        * Create a user group to access the ntfs disks

        sudo addgroup ntfs

        * The output should look something like this, remember the GID (the number printed after the group name) as it may differ and we will need it later:

        Adding group `ntfs' (1002)...
        Done.

        * Read #How to list partition tables

        * Create the local mount folder and edit the fstab file to mount the disks to this folder.

        e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
        Local mount folder: /media/windows

        sudo mkdir /media/windows
        sudo cp /etc/fstab /etc/fstab.bak
        gksudo gedit /etc/fstab

        * Append the following line at the end of file, using the GID number previously. The umask following this GID allows write access just to owner (root) and group (ntfs), and read access to everyone.

        /dev/hda1 /media/windows ntfs-fuse auto,gid=1002,umask=0002 0 0

        * Save the edited file.

        * Add users to the ntfs group, where "username" is the name of the user you would like to have write access

        sudo adduser username ntfs

        * Fix Dapper bug #29865 of the linux-ntfs package:

        sudo rm /sbin/mount.ntfs-fuse && sudo ln /usr/bin/ntfsmount /sbin/mount.ntfs-fuse

        * If you reboot now, the disk will be writable to the selected users when they logon. If you want the changes to take effect immediately without rebooting, execute the following command, ignoring the errors about "/" and others not being unmounted. You'll have to logout from all your user sessions for the new group to be acknowledged (usually a logout from your graphical session and login back again will do it).

        sudo modprobe fuse && sudo umount -a && sudo mount -a

        If you haven't done too much with drapper yet I would suggest install gutsy 7.10. It is much more ntfs friendly

        welcome to the party
        HP Pavilion dv6 core i7 (Main)
        4 GB Ram
        Kubuntu 18.10

        Comment


          #5
          Re: How to mount my C: drive

          I downloaded ntfsprogs .tar.gz file, but how do I run this? I'm assuming it's one of those "autopackage" files. If that's the case, i can't seem to get these to work, and if you could help me with that, that would be great.

          Comment


            #6
            Re: How to mount my C: drive

            Sorry, I am no expert with ntfs as I don't use it.
            I would suggest changing the title to something like:
            Mount ntfs with Drapper
            or something to attract the ntfs guys here.
            There are a lot out there

            Again, sorry I can't be of more help on this.
            HP Pavilion dv6 core i7 (Main)
            4 GB Ram
            Kubuntu 18.10

            Comment


              #7
              Re: How to mount my C: drive

              i have a very easy way i hope it works for you as for me
              first install mount manager from adept you can find it if you search for ntfs in adept
              then use the program to mount all of your drives
              then choose save configuration file from partition menu
              choose the place and the name of the file
              open your terminal and write
              sudo kate /etc/fstab
              when the fstab is opened copy the drives from the file you saved to fstab file and save
              but watch out if you find swap and any other drives that was already exist in fstab don't copy it
              i hope it works for u and also the drives are mounted at startup

              Comment

              Working...
              X