Find the answer to your Linux question:
Results 1 to 4 of 4
Hi Everybody, [root@localhost ~]# fdisk -l Code: Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device ...
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229

    /etc/fstab Clarifications Please

    Hi Everybody,

    [root@localhost ~]# fdisk -l

    Code:
    Disk /dev/sda: 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/sda1   *           1        4532    36403258+  83  Linux
    /dev/sda3            4533        9729    41744902+   5  Extended
    /dev/sda5            4533        4597      522081   82  Linux swap / Solaris
    /dev/sda6            4598        9729    41222758+   7  HPFS/NTFS
    [root@localhost ~]#
    I can make my /dev/sda6 mount by using:
    Code:
    su -
    Password
    mount -t ntfs-3g /dev/sda6 /media/Storage\ Bin
    I wanted it to mount at boot and so I changed settings in fstab as follows:

    Code:
    LABEL=/                 /                       ext3    defaults        1 1
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
    LABEL=SWAP-sda5         swap                    swap    defaults        0 0
    /dev                   /media/"Storage Bin"   ntfs-3g auto,rw,user,sync,suid  0 0
    I seem to have made a mistake somewhere since it does not mount automatically after I saved and reboot my system. CentOS 5.4 KDE.

    Can somebody kindly point out what is wrong I am doing?

    Thank you!
    nujinini
    Linux User #489667

  2. #2
    Just Joined! shtromm's Avatar
    Join Date
    Jun 2010
    Posts
    31
    You mean?

    Code:
    /dev/sda6                  /media/Storage\ Bin   ntfs-3g auto,rw,user,sync,suid  0 0

  3. #3
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Thank you shtromm!

    Code:
    /dev/sda6                  /media/Storage\ Bin   ntfs-3g auto,rw,user,sync,suid  0 0
    I changed the entry to the above and still cannot mount auto. I can read an error report at boot saying something "bad....line 7 in fstab"


    Code:
    LABEL=/                 /                       ext3    defaults        1 1
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
    LABEL=SWAP-sda5         swap                    swap    defaults        0 0
    /dev/sda6               /media/Storage\ Bin   ntfs-3g     auto,rw,user,sync,suid  0 0
    nujinini
    Linux User #489667

  4. #4
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    if at all possible, I'd try getting rid of the space in the directory path. They will always haunt you. spaces are evil .. EEEE V V IIIIILLLLL

    other than that, I have no idea what the issue would be.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

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