Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
hi! i m using debian. i want to use my windows partitions with it. followings are the details. plz help me debian:/home/ved# /sbin/fdisk -l Disk /dev/hda: 80.0 GB, 80026361856 bytes ...
  1. #1
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile can i mount my windows partitions

    hi!
    i m using debian.
    i want to use my windows partitions with it.
    followings are the details.
    plz help me



    debian:/home/ved# /sbin/fdisk -l

    Disk /dev/hda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 1 1785 14337981 7 HPFS/NTFS
    /dev/hda2 1786 8046 50291482+ f W95 Ext'd (LBA)
    /dev/hda3 * 8047 9729 13518697+ 83 Linux
    /dev/hda5 17debian:/home/ved# cat /etc/fstab
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hda3 / ext3 defaults,errors=remount-ro 0 1
    /dev/hda7 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
    debian:/home/ved# 86 5355 28675993+ b W95 FAT32
    /dev/hda6 5356 7966 20972826 b W95 FAT32
    /dev/hda7 7967 8046 642568+ 82 Linux swap / Solaris
    debian:/home/ved#

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

    First of all, install ntfs-3g package to enable NTFS write access.
    Code:
    su -
    apt-get update
    apt-get install ntfs-3g
    cd /media
    mkdir hda1 hda5 hda6
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/fstab
    It will open /etc/fstab file in Gedit with root privileges.

    Add these three lines at the end of file.
    Code:
    /dev/hda1 /media/hda1 ntfs-3g  defaults,umask=0  0  0
    /dev/hda5 /media/hda5 vfat  defaults,umask=0  0  0
    /dev/hda6 /media/hda6 vfat  defaults,umask=0  0  0
    Save file and execute mount -a command or reboot machine.
    Check /media/hda1, hda5 and hda6 folders. All users will have read/write access in those.
    Last edited by devils casper; 01-26-2008 at 02:29 PM. Reason: corrected code.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Post

    Quote Originally Posted by devils_casper View Post
    Hi and Welcome !!

    First of all, install ntfs-3g package to enable NTFS write access.
    Code:
    su -
    apt-get update
    apt-get install ntfs-3g
    cd /media
    mkdir hda1 hda5 hda6
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/fstab
    It will open /etc/fstab file in Gedit with root privileges.

    Add these three lines at the end of file.
    Code:
    /dev/hda1 /media/hda1 ntfs-3g  defaults,umask=0  0  0
    /dev/hda5 /media/hda5 ntfs-3g  defaults,umask=0  0  0
    /dev/hda6 /media/hda6 ntfs-3g  defaults,umask=0  0  0
    Save file and execute mount -a command or reboot machine.
    Check /media/hda1, hda5 and hda6 folders. All users will have read/write access in those.
    apt-get install ntfs-3g gives error message:

    debian:/home/ved# apt-get install ntfs-3g/
    Reading package lists... Done
    Building dependency tree... Done
    E: Couldn't find package ntfs-3g

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    My Mistake ! /dev/hda5 and hda6 are FAT32 partitions. user vfat instead of ntfs-3g in for both in above code. ( Corrected in post #2 too )
    Code:
    /dev/hda5 /media/hda5 vfat  defaults,umask=0  0  0
    /dev/hda6 /media/hda6 vfat  defaults,umask=0  0  0
    You will have write access in /media/hda5 and hda6.

    You have to install ntfs-3g for /dev/hda1 partition.

    Quote Originally Posted by ved
    apt-get install ntfs-3g gives error message:

    debian:/home/ved# apt-get install ntfs-3g/
    Reading package lists... Done
    Building dependency tree... Done
    E: Couldn't find package ntfs-3g
    Execute this
    Code:
    cat /etc/apt/sources.list
    Post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309
    Quote Originally Posted by devils_casper View Post
    My Mistake ! /dev/hda5 and hda6 are FAT32 partitions. user vfat instead of ntfs-3g in for both in above code. ( Corrected in post #2 too )
    Code:
    /dev/hda5 /media/hda5 vfat  defaults,umask=0  0  0
    /dev/hda6 /media/hda6 vfat  defaults,umask=0  0  0
    You will have write access in /media/hda5 and hda6.

    You have to install ntfs-3g for /dev/hda1 partition.


    Execute this
    Code:
    cat /etc/apt/sources.list
    Post output here.
    debian:/home/ved# cat /etc/apt/sources.list
    #
    # deb cdrom:[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 kde-CD Binary-1 20080102-13:51]/ etch contrib main

    deb cdrom:[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 kde-CD Binary-1 20080102-13:51]/ etch contrib main

    deb Debian -- Security Information etch/updates main contrib
    deb-src Debian -- Security Information etch/updates main contrib
    debian:/home/ved#

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/apt/sources.list
    It will open sources.list file in Gedit.
    Add non-free at the end of second last line.
    Code:
    deb Debian -- Security Information etch/updates main contrib non-free
    Save file and execute this
    Code:
    su -
    apt-get update
    apt-get install ntfs-3g
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile

    Quote Originally Posted by devils_casper View Post
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/apt/sources.list
    It will open sources.list file in Gedit.
    Add non-free at the end of second last line.
    Code:
    deb Debian -- Security Information etch/updates main contrib non-free
    Save file and execute this
    Code:
    su -
    apt-get update
    apt-get install ntfs-3g

    Alt+F2 opens run commond promt and while executing this
    gksu gedit /etc/apt/sources.list/
    gives error msg:

    Could not run the specified command.

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Try open it in command line text editor like vi or nano. Open Terminal and execute this
    Code:
    su -
    nano /etc/apt/sources.list
    Or replace nano with vi.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309
    Quote Originally Posted by devils_casper View Post
    Try open it in command line text editor like vi or nano. Open Terminal and execute this
    Code:
    su -
    nano /etc/apt/sources.list
    Or replace nano with vi.
    # deb cdrom:[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 kde-CD Binary-1 200$

    deb cdrom:[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 kde-CD Binary-1 20080$

    deb Debian -- Security Information etch/updates main contrib
    deb-src Debian -- Security Information etch/updates main contrib

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by ved
    # deb cdrom:[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 kde-CD Binary-1 200$

    deb cdrom:[Debian GNU/Linux 4.0 r2 _Etch_ - Official i386 kde-CD Binary-1 20080$

    deb Debian -- Security Information etch/updates main contrib
    deb-src Debian -- Security Information etch/updates main contrib
    What does your post mean? I am not getting it.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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