Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20
Hi, I've connected a SATA harddrive which I've formatted as a FAT32 so I can acces it both under linux and windows. Now I can mount it properly, and I've ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    10

    fstab doesn't auto mount

    Hi, I've connected a SATA harddrive which I've formatted as a FAT32 so I can acces it both under linux and windows. Now I can mount it properly, and I've added it under fstab, but on boot it doesn't mount automatically.

    Line added in fstab:

    Code:
    /dev/sda1 /win/apps vfat auto,users,umask=000   0     0
    I've tried alot of different options in fstab but non of them boot the drive automatically. But when I mount it manually with "mount -a" it does show up and I can acces it and everything.

    Also, if there might be an error when booting Linux, how can I pause the boot progress, because it goes to fast to read?

    Thanks.

  2. #2
    Just Joined!
    Join Date
    Jun 2006
    Posts
    50
    There's not a way to pause that I'm familiar with, but you can find out the error by simply doing this:
    as root, or sudo or however you want to do something with root permissions
    Code:
    mount /dev/sda1
    just like that. it'll try to mount it the exact same way that the initscripts do (by reading fstab and following the instructions there). The reason to do as root, is to be safe since that's the permissions init will be using and the errors will occasionally be different for a user than admin.

    That error should tell you a great deal of what the problem is. If you don't get an error...... ..... exorcism?

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by andromedae
    Hi, I've connected a SATA harddrive which I've formatted as a FAT32 so I can acces it both under linux and windows. Now I can mount it properly, and I've added it under fstab, but on boot it doesn't mount automatically.
    post the output of 'fdisk -l' command.

    Quote Originally Posted by andromedae
    Also, if there might be an error when booting Linux, how can I pause the boot progress, because it goes to fast to read?
    you can't pause boot preccess or boot messages. you can check messages later on.
    Code:
    dmesg | less





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

  4. #4
    Just Joined!
    Join Date
    Nov 2006
    Posts
    10
    No errors are reported when I mount the harddrive, that is the strange thing. Data I store on the drive seems to be ok, so the only problem is that it is not mounted after boot. I can mannually mount it, but isn't fstab responsible for doing that. If all else fails, is there a way to add "mount /dev/sda1" to some other script which is executed on boot? That would solve the problem as well.

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    OS mounts all the partitions listed in '/etc/fstab'. post the contents of /etc/fstab file and 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

  6. #6
    Just Joined!
    Join Date
    Nov 2006
    Posts
    10
    fdisk -l doesn't show anything

    fstab:

    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    /dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
    /dev/hda6       /home           ext3    defaults        0       2
    /dev/hda5       none            swap    sw              0       0
    /dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
    /dev/sda1       /win/apps       ext3    defaults,auto,user        0       2

    These changes give me an error when booting:

    Checking all filesystems...
    fsck 1.37 (21-Mar-2005)
    /home: clean, 40/3204992 files, 161331/6397878 blocks
    SCSI subsytem driver Revision: 1.00
    fsck.ext3: No such device or address while trying to open /dev/sda1
    Possibly non-existent or swap device?

    fsck failed. Please repair manually



    Could it have something to do with the fact that my SATA drive is connected through a PCI SATA controller?

  7. #7
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    you said your drive is formatted to fat32 but in the fstab you wrote ext3

    repair this
    /dev/sda1 /win/apps ext3 defaults,auto,user 0 2

    to this
    /dev/sda1 /win/apps vfat rw,defaults,auto,user 0 2

  8. #8
    Just Joined!
    Join Date
    Nov 2006
    Posts
    10
    Ah, I forgot to mention I've reformatted it as ext3 (and I've changed fstab accordingly) hoping that would solve the problem, but apparently it didn't.

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    you must be root to execute 'fdisk' command.
    Code:
    sudo fdisk -l
    post output here.





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

  10. #10
    Just Joined!
    Join Date
    Nov 2006
    Posts
    10
    Output of "fdisk -l"


    Code:
    Disk /dev/sda:300.0 GB, 300090728448 bytes
    255 heads, 63 sectors/track, 36483 cylinders
    Units = cylinders of 16065 *512 = 8225280 bytes
    
    Device Boot   Start      End        Blocks       Id         System
    /dev/sda1           1   36483  293049666      83         Linux

Page 1 of 2 1 2 LastLast

Posting Permissions

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