Find the answer to your Linux question:
Results 1 to 4 of 4
Just found this anomaly now. My fdisk -l says that /dev/sda1 is NTFS which it is actually (XP partition). However, my fstab says that its an ext3. May I ask ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,272

    [SOLVED] Help Correcting fstab Entry Please


    Just found this anomaly now.

    My fdisk -l says that /dev/sda1 is NTFS which it is actually (XP partition).
    However, my fstab says that its an ext3.

    May I ask what would be the correct entry in fstab please? Thank you!

    Code:
    root@(none):~# fdisk -l
    
    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xc5e3f820
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        1930    15502693+   7  HPFS/NTFS
    /dev/sda2            1931       15817   111547327+   5  Extended
    /dev/sda3           15818       29555   110350485    7  HPFS/NTFS
    /dev/sda4           29556       30401     6795495   82  Linux swap / Solaris
    /dev/sda5            9778       14512    38033856   83  Linux
    /dev/sda6            3836        5224    11157111   83  Linux
    /dev/sda7            5225        8475    26113626   83  Linux
    /dev/sda8           14513       15817    10481663+  83  Linux
    /dev/sda9            1931        3835    15301849+  83  Linux
    /dev/sda10           8476        9777    10458283+  83  Linux
    
    Partition table entries are not in disk order
    
    root@(none):~# nano /etc/fstab
    # Pluggable devices are handled by uDev, they are not in fstab
    /dev/sda10 / ext3 defaults,noatime 1 1
    /dev/sda4 swap swap sw,pri=1 0 0
    proc /proc proc defaults 0 0
    devpts /dev/pts devpts mode=0622 0 0
    # Dynamic entries below
    /dev/sda1 /mnt/sda1 ext3 noauto,users,exec,relatime 0 0
    /dev/sda3 /mnt/sda3 ntfs-3g noauto,users,gid=users,dmask=002,fmask=113,relatime$
    /dev/sda5 /mnt/sda5 ext3 noauto,users,exec,relatime 0 0
    /dev/sda6 /mnt/sda6 ext4 noauto,users,exec,relatime 0 0
    /dev/sda7 /mnt/sda7 ext4 noauto,users,exec,relatime 0 0
    /dev/sda8 /mnt/sda8 ext4 noauto,users,exec,relatime 0 0
    /dev/sda9 /mnt/sda9 ext4 noauto,users,exec,relatime 0 0
    /dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
    /dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
    nujinini
    Linux User #489667

  2. #2
    Just Joined!
    Join Date
    Mar 2010
    Posts
    79
    I seldom mount ntfs, but if the entry for /dev/sda3 does work i would take that one as a blueprint (or simply replace ext3 with ntfs-3g) No?

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Code:
    /dev/sda1 /mnt/sda1 ntfs-3g  defaults,umask=0  0 0
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,272
    Quote Originally Posted by devils casper View Post
    Code:
    /dev/sda1 /mnt/sda1 ntfs-3g  defaults,umask=0  0 0
    Done!

    Thanks!
    nujinini
    Linux User #489667

Posting Permissions

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