Find the answer to your Linux question:
Results 1 to 3 of 3
OK, so i have downloaded ntfs support kernel in my redhat 9.0. This is great because i can now mount my ntfs disk using the command: Code: [root@localhost mnt]# mount ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Location
    Bristol UK
    Posts
    15

    ARRRGGGHHH!!!! HELP::: My fstab file


    OK, so i have downloaded ntfs support kernel in my redhat 9.0. This is great because i can now mount my ntfs disk using the command:

    Code:
    [root@localhost mnt]# mount /dev/hdb1 /mnt/winxp -t ntfs
    [root@localhost mnt]# ls /mnt/winxp
    AUDIO BOOKS   CD IMAGES   ETOMI  IO.SYS        MATTS MUSIC     MSDOS.SYS  NTDETECT.COM  SNES ROMS                  WEBSITE
    AUTOEXEC.BAT  CONFIG.SYS  GAMES  K750i         MATTS PICTURES  MSOCache   ntldr         System Volume Information
    boot.ini      EMAILS      ICONS  MATTS MOVIES  MATTS WORK      N64        RECYCLER      USMT.TMP
    However, I want to connect to this disk at startup, so i have edited my fstab file, it now looks like:

    Code:
    LABEL=/                 /                       ext3             defaults                             1 1
    LABEL=/boot             /boot                   ext3             defaults                             1 2
    none                    /dev/pts                devpts gid=5,    mode=620                             0 0
    none                    /proc                   proc             defaults                             0 0
    none                    /dev/shm                tmpfs            defaults                             0 0
    /dev/hda5               swap                    swap             defaults                             0 0
    /dev/fd0                /mnt/floppy             auto             noauto,owner,kudzu                   0 0
    /dev/cdrom              /mnt/cdrom              udf,             iso9660 noauto,owner,kudzu,ro        0 0
    /dev/cdrom1             /mnt/cdrom1             udf,             iso9660 noauto,owner,kudzu,ro        0 0
    LABEL=winxp /dev/hdb1   /mnt/winxp              ntfs             ro                                   1 0
    LABEL=usb   /dev/sda1   /mnt/usb                vfat             -t
    To me, this looks fine! However, when i type: mount winxp, I get the following errors:

    Code:
    [root@localhost mnt]# mount winxp
    [mntent]: line 3 in /etc/fstab is bad
    [mntent]: line 8 in /etc/fstab is bad
    [mntent]: line 9 in /etc/fstab is bad
    [mntent]: line 10 in /etc/fstab is bad
    [mntent]: warning: no final newline at the end of /etc/fstab
    [mntent]: line 11 in /etc/fstab is bad; rest of file ignored
    mount: /dev/hdb1 already mounted or /mnt/winxp busy
    mount: according to mtab, /dev/hdb1 is already mounted on /mnt/winxp
    The same goes for the case when i try to mount my usb pendrive, i get the output:

    Code:
    [mntent]: line 3 in /etc/fstab is bad
    [mntent]: line 8 in /etc/fstab is bad
    [mntent]: line 9 in /etc/fstab is bad
    [mntent]: line 10 in /etc/fstab is bad
    [mntent]: warning: no final newline at the end of /etc/fstab
    [mntent]: line 11 in /etc/fstab is bad; rest of file ignored
    mount: can't find usb in /etc/fstab or /etc/mtab
    BUT: there is the directorys usb and winxp in my /mnt directory:

    Code:
    [root@localhost mnt]# ls /mnt
    cdrom  cdrom1  documents  floppy  usbstick  winxp

    If anyone could help that would be v.much appriciated! ...I am fairly new to linux, so please bear with me!!! ...I just dont want to have to type the full mount commands for my usbstick and winxp disk whenever i want to access data on them!!!!!









    [/code]

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    I'm not sure but the "LABEL=..." comments in those two entries don't look quite right to me. This is my ntfs entry,
    Code:
    /dev/hda1               /mnt/windows/C  ntfs            ro,users,gid=users,umask=0002,nls=utf8 0 0
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    1
    Quote Originally Posted by smolloy View Post
    I'm not sure but the "LABEL=..." comments in those two entries don't look quite right to me. This is my ntfs entry,
    Code:
    /dev/hda1               /mnt/windows/C  ntfs            ro,users,gid=users,umask=0002,nls=utf8 0 0
    That helped solve my problem

Posting Permissions

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