Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Hi everyone. I am fairly new to Linux and as such I have a few questions. I have two hard drives; one with Windows XP and one with Suse 10.0. ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    7

    Mounting Error

    Hi everyone. I am fairly new to Linux and as such I have a few questions.

    I have two hard drives; one with Windows XP and one with Suse 10.0.

    The Windows drive says "unmounted". So I type
    Code:
    mount /dev/hdc1
    It says,
    Code:
    Can't find /dev/hdc1 in /etc/fstab or /etc/mtab
    I read about fstab here so I add a new line to it that says,
    Code:
    /dev/hdc1 / ntfs defaults 0 0
    It then gives me this error when I try to mount,
    Code:
    wrong fs type, bad option, bad superblock on /dev/hdc1,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    I don't know what any of this means, so hopefully someone who does can help. I never edited mtab. Could that be part of the problem?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    hi SolidusSnk !

    Welcome to the Fourms !

    you are not using correct syntax of 'mount' command.
    Code:
    mount -t  <file system> /dev/<partition>   <mount_point>
    check the partitions using 'fdisk -l' command and create mount point.

    OR

    execute this
    Code:
    su -
    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

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    7
    I ran fdisk -l and here's the result:



  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    execute this
    Code:
    su -
    mkdir /media/win_ntfs
    mount -t ntfs /dev/hdc1 /media/win_ntfs
    check /media/win_ntfs folder.

    Linux doesn't support NTFS write access out of box. for write access, install ntfs-3g package.

    log in as root and open /etc/fstab file.
    add this line
    Code:
    /dev/hdc1     /media/win_ntfs    ntfs    defaults, umask=0 0 0
    you dont have to mount partitions manually after adding that line. System will mount it at boot up.





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

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    7
    Quote Originally Posted by devils_casper
    execute this
    Code:
    su -
    mkdir /media/win_ntfs
    mount -t ntfs /dev/hdc1 /media/win_ntfs
    check /media/win_ntfs folder.

    Linux doesn't support NTFS write access out of box. for write access, install ntfs-3g package.

    log in as root and open /etc/fstab file.
    add this line
    Code:
    /dev/hdc1     /media/win_ntfs    ntfs    defaults, umask=0 0 0
    you dont have to mount partitions manually after adding that line. System will mount it at boot up.





    Casper

    Okay, I did all of that and it still gives me the same error,
    Code:
    wrong fs type, bad option, bad superblock on /dev/hdc1,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    I installed ntfs-3g and added that fstab line.

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    are you able to mount it manually in terminal?








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

  7. #7
    Just Joined!
    Join Date
    Jan 2007
    Posts
    7
    No, but I checked out the ntfs-3g site and they gave me some commands to run. http://www.ntfs-3g.org/.

    Typing
    Code:
    ntfs-3g /dev/hdc1 /media/win_ntfs
    does work. It then wanted me to run ntfsfix (I think that's what it was) and it fixed any problems on the partition. I tried to mount it again and it wanted me to force mount it. But I don't know the command for force mounting.

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    execute this
    Code:
    mount -t ntfs3g /dev/hdc1  /media/win_ntfs




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

  9. #9
    Just Joined!
    Join Date
    Jan 2007
    Posts
    7
    This is what I get:

    Code:
    Volume is scheduled for check.
    Please boot into Windows TWICE, or use the 'force' mount option.
    I can't boot into Windows. For some reason my computer just restarts whenever I try. I can try connecting the hard drive to a different computer if I can't use the "force mount option".

  10. #10
    Linux Newbie
    Join Date
    Dec 2006
    Posts
    105
    Try if it works :

    Enter
    ntfs-3g /dev/hda2 /mnt/windows -o force
    or
    mount /dev/hda2 /mnt/windows -t ntfs-3g -o force

    or put into fstab

    /dev/hda2 /mnt/windows ntfs-3g defaults,force 0 0

    then use 'mount' the usual way.
    Unix, Linux tips...

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