Find the answer to your Linux question:
Results 1 to 8 of 8
Well yes, just as I stated in the title. Whenever I go to my computer and I click a win drive and/or my other Linux drive where Ubuntu is installed ...
  1. #1
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    474

    I can see my win drives but can't access them, HELP!

    Well yes, just as I stated in the title. Whenever I go to my computer and I click a win drive and/or my other Linux drive where Ubuntu is installed it tells me "Permission denied". I tried it with root as well, same story.

    In /etc/fstab this is how things look:

    Code:
    /dev/sdb2            /                    ext3       acl,user_xattr        1 1
    /dev/sda4            swap                 swap       defaults              0 0
    /dev/sdb3            swap                 swap       defaults              0 0
    proc                 /proc                proc       defaults              0 0
    sysfs                /sys                 sysfs      noauto                0 0
    debugfs              /sys/kernel/debug    debugfs    noauto                0 0
    usbfs                /proc/bus/usb        usbfs      noauto                0 0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
    This is what I can see in my computer though:

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    post the output of 'fdisk -l' command.







    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    474
    Code:
    SuSEi686:/home/uholtz # fdisk -l
    
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        2550    20482843+   7  HPFS/NTFS
    /dev/sda2            2551       11876    74911095    f  W95 Ext'd (LBA)
    /dev/sda3           11877       14444    20627460   83  Linux
    /dev/sda4           14445       14593     1196842+  82  Linux swap / Solaris
    /dev/sda5            2551       11876    74911063+   7  HPFS/NTFS
    
    Disk /dev/sdb: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1       11877    95401971    7  HPFS/NTFS
    /dev/sdb2           11878       14445    20627460   83  Linux
    /dev/sdb3           14446       14593     1188778+  82  Linux swap / Solaris
    SuSEi686:/home/uholtz #

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    create mount points and add entries for NTFS partitions in /etc/fstab file.
    Code:
    cd media
    sudo mkdir ntfs_1 ntfs_2 ntfs_3
    add these lines in /etc/fstab file
    Code:
    /dev/sda1     /media/ntfs_1    ntfs     defaults,umask=0 0 0
    /dev/sda5     /media/ntfs_2    ntfs     defaults,umask=0 0 0
    /dev/sdb1     /media/ntfs_3    ntfs     defaults,umask=0 0 0
    execute 'mount -a' after adding entries in 'fstab' file and check ntfs folders in /media.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    474
    Erm, should I clear my whole FSTAB or what? Sorry I don't quite understand well. Is this how my fstab should look in the end ?

    Code:
    /dev/sdb2            /                    ext3       acl,user_xattr        1 1
    /dev/sda4            swap                 swap       defaults              0 0
    /dev/sdb3            swap                 swap       defaults              0 0
    proc                 /proc                proc       defaults              0 0
    sysfs                /sys                 sysfs      noauto                0 0
    debugfs              /sys/kernel/debug    debugfs    noauto                0 0
    usbfs                /proc/bus/usb        usbfs      noauto                0 0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
    cd media
    sudo mkdir ntfs_1 ntfs_2 ntfs_3
    /dev/sda1     /media/ntfs_1    ntfs     defaults,umask=0 0 0
    /dev/sda5     /media/ntfs_2    ntfs     defaults,umask=0 0 0
    /dev/sdb1     /media/ntfs_3    ntfs     defaults,umask=0 0 0

  6. #6
    Linux Engineer oldcpu's Avatar
    Join Date
    Aug 2005
    Location
    Europe
    Posts
    1,142

    not quite

    Quote Originally Posted by netstrider
    Erm, should I clear my whole FSTAB or what? Sorry I don't quite understand well. Is this how my fstab should look in the end ?

    Code:
    cd media
    sudo mkdir ntfs_1 ntfs_2 ntfs_3
    This definitely does NOT belong in an FSTAB.

  7. #7
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    474
    Wait, I was extremely stupid and read too fast. I managed it and it worked thanks

    EDIT: Oops, I edited the lines in fstab so I can read my Ubuntu drive from suse, but I think i should do it in another way:

    /dev/sda3 /media/ext3 ext3 defaults,umask=0 0 0

    Thats what I did and this is what the output of mount -a is thereafter:

    Code:
    SuSEi686:/home/uholtz # mount -a
    mount: wrong fs type, bad option, bad superblock on /dev/sda3,
           missing codepage or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    I did this now after creating an 'ext3' folder in /media

    >>> mount -t ext3 /dev/sda3 /media/ext3

    It works....

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Thats what I did and this is what the output of mount -a is thereafter:
    'mount -a' command reads fstab file and mounts all the partitions listed in it. But you can't mount already mounted partitioned at same mount point.
    first of all, unmount partition ( umount ) and then mount again ( 'mount -a' ).





    Casper
    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
  •  
...