Find the answer to your Linux question:
Results 1 to 9 of 9
hi i have a dual booting with XP/ubuntu 8.10, how can i access to the windows folder. and my hard disc size also not showing correct. it shows only three ...
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    28

    Exclamation [SOLVED] access to windows drives and folders

    hi i have a dual booting with XP/ubuntu 8.10, how can i access to the windows folder. and my hard disc size also not showing correct. it shows only three drives , 21 GB, 5.2 GB and 21 GB. But my actual partition shows /home/jayan/Desktop/1/home/jayan/Desktop /home partion itself is 46.57 GB

    pl help me

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Open Terminal and execute this
    Code:
    df -h
    sudo fdisk -l
    Post output here.

    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Dec 2008
    Posts
    28
    jayan@jayan-desktop:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda9 17G 2.2G 14G 14% /
    tmpfs 500M 0 500M 0% /lib/init/rw
    varrun 500M 104K 500M 1% /var/run
    varlock 500M 0 500M 0% /var/lock
    udev 500M 2.8M 497M 1% /dev
    tmpfs 500M 104K 500M 1% /dev/shm
    lrm 500M 2.0M 498M 1% /lib/modules/2.6.27-7-generic/volatile
    /dev/sda8 46G 400M 44G 1% /home
    /dev/sda7 38G 32K 38G 1% /windows
    jayan@jayan-desktop:~$ sudo fdisk -l
    [sudo] password for jayan:
    Sorry, try again.
    [sudo] password for jayan:

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

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
    /dev/sda2 2551 19457 135805477+ f W95 Ext'd (LBA)
    /dev/sda5 2551 3182 5076508+ b W95 FAT32
    /dev/sda6 3183 5737 20523006 7 HPFS/NTFS
    /dev/sda7 5738 10600 39062016 b W95 FAT32
    /dev/sda8 10601 16679 48829536 83 Linux
    /dev/sda9 16680 18867 17575078+ 83 Linux
    /dev/sda10 18868 19457 4739143+ 82 Linux swap / Solaris
    jayan@jayan-desktop:~$

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
    cd /media
    mkdir win_c win_d win_e
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/fstab
    It will open /etc/fstab file in Gedit.
    Add this code in the file :
    Code:
    /dev/sda1    /media/win_c    ntfs-3g  defaults,umask=0  0  0
    /dev/sda5    /media/win_d    vfat defaults,umask=0  0  0
    /dev/sda6    /media/win_e    ntfs-3g  defaults,umask=0  0  0
    Save file and reboot machine.
    Check /media/win_c, win_d and win_e folders. You will have full access in those.
    Check /windows folder too. It is mounted already.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Dec 2008
    Posts
    28

    Exclamation mkdir: cannot create directory `win_c': Permission denied

    jayan@jayan-desktop:~$ cd /media
    jayan@jayan-desktop:/media$ mkdir win_c win_d win_e
    mkdir: cannot create directory `win_c': Permission denied
    mkdir: cannot create directory `win_d': Permission denied
    mkdir: cannot create directory `win_e': Permission denied
    jayan@jayan-desktop:/media$ sudo
    usage: sudo -h | -K | -k | -L | -l | -V | -v
    usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
    {-i | -s | <command>}
    usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...
    jayan@jayan-desktop:/media$ sudo cd /media
    sudo: cd: command not found
    jayan@jayan-desktop:/media$ mkdir win_c win_d win_e
    mkdir: cannot create directory `win_c': Permission denied
    mkdir: cannot create directory `win_d': Permission denied
    mkdir: cannot create directory `win_e': Permission denied
    jayan@jayan-desktop:/media$

  6. #6
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Preface each of those commands with sudo
    Code:
    sudo mkdir win_c win_d win_e
    But you don't need sudo for cd command, just a simple
    Code:
    cd /media
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    jayan@jayan-desktop:/media$ mkdir win_c win_d win_e
    mkdir: cannot create directory `win_c': Permission denied
    mkdir: cannot create directory `win_d': Permission denied
    mkdir: cannot create directory `win_e': Permission denied
    My mistake. Prefix sudo as suggested by MikeTbob.
    Code:
    cd /media
    sudo mkdir win_c win_d win_e
    Edit /etc/fstab file as I suggested in last post.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Dec 2008
    Posts
    28
    it worked, thank you so much sir..........!

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Glad to help you !
    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
  •  
...