LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-08-2003, 03:14 PM   #1
threedguy
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandriva LE 2005
Posts: 19

Rep: Reputation: 0
windows xp hard drive mounting error


I installed mandrake 9.2 rc2 on a seperate hard drive from my windows xp drive, and then i decided to put my xp drive back in my computer. I didn't have any trouble setting up a dual boot system, but i can't access my windows files from linux. whenever i try mounting my xp drive i get this error:

Could not mount device.
The reported error was:
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems

I don't think i have too many mounted file systems, just my cd rom and floppy, and i've heard that mandrake is supposed to be able to read ntfs. also, i checked in my mnt/windows directory and there's nothing in it. anyone know how i can mount my windows drive? I'm not very good at commands either, so go easy on me.
 
Old 10-08-2003, 06:06 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
could you post the contents of your /etc/fstab?
 
Old 10-09-2003, 03:21 PM   #3
threedguy
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandriva LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
ok:

/dev/hdb1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdb6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,codepage=850,iocharset=iso8859-1,sync,umask=0 0 0
none /proc proc defaults 0 0
/dev/hdb5 swap swap defaults 0 0
/dev/hda1 /mnt/hd auto user,kudzu,exec,noauto,iocharset=iso8859-1,umask=0,codepage=850 0 0
 
Old 10-09-2003, 03:27 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Quote:
/dev/hda1 /mnt/hd auto user,kudzu,exec,noauto,iocharset=iso8859-1,umask=0,codepage=850 0 0
see if it helps to change this to
/dev/hda1 /mnt/hd ntfs user,kudzu,exec,noauto,iocharset=iso8859-1,codepage=850,umask=0 0 0

If it is ntfs, that is. If the filesystem is fat32, change the ntfs to vfat.

Last edited by quatsch; 10-09-2003 at 03:30 PM.
 
Old 10-09-2003, 03:28 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
also, make sure /mnt/hd exists
 
Old 10-09-2003, 04:50 PM   #6
threedguy
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandriva LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
how do i gain permission to write it? i don't have a root login option.
 
Old 10-09-2003, 05:43 PM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
open a terminal and then become root using su.
then open the /etc/fstab with an editor of choice. E.g. by
kedit /etc/fstab
 
Old 10-09-2003, 05:52 PM   #8
threedguy
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandriva LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
ok, i changed it and it's still showing the error. still nothing in mnt/hd or mnt/windows
 
Old 10-09-2003, 06:03 PM   #9
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
what if you get rid of the kudzu in that line?
 
Old 10-09-2003, 06:18 PM   #10
threedguy
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandriva LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
removed kudzu and still have the error and empty mnt's
 
Old 10-09-2003, 06:21 PM   #11
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
could you post the output of
fdisk -l

you have to be root to run this. It lists the available drives/partitions and some information about them.
 
Old 10-09-2003, 06:22 PM   #12
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
and also the /etc/fstab as it is now.
 
Old 10-09-2003, 09:30 PM   #13
threedguy
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandriva LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
fdisk -l:

Disk /dev/ide/host0/bus0/target0/lun0/disc: 40.0 GB, 40060403712 bytes
240 heads, 63 sectors/track, 5174 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 5173 39107848+ 7 HPFS/NTFS

Disk /dev/ide/host0/bus0/target1/lun0/disc: 20.0 GB, 20020396032 bytes
16 heads, 63 sectors/track, 38792 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target1/lun0/part1 * 1 12190 6143728+ 83 Linux
/dev/ide/host0/bus0/target1/lun0/part2 12191 38792 13407408 5 Extended
/dev/ide/host0/bus0/target1/lun0/part5 12191 13205 511528+ 82 Linux swap
/dev/ide/host0/bus0/target1/lun0/part6 13206 38792 12895816+ 83 Linux


ect/fstab:

/dev/hdb1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdb6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,codepage=850,iocharset=iso8859-1,sync,umask=0 0 0
none /proc proc defaults 0 0
/dev/hdb5 swap swap defaults 0 0
/dev/hda1 /mnt/hd ntfs user,exec,noauto,iocharset=iso8859-1,codepage=850,umask=0 0 0
 
Old 10-09-2003, 09:38 PM   #14
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
ok, I tried your settings in the fstab and I get the same error as you. I'm pretty sure getting rid of iocharset and codepage options will fix it.
/dev/hda1 /mnt/hd ntfs user,noauto,exec,umask=0 0 0
you could also try
/dev/hda1/ /mnt/hd ntfs user,noauto,exec,iocharset=utf8,umask=0 0 0
 
Old 10-09-2003, 10:36 PM   #15
threedguy
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandriva LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
AWESOME! the first line fixed it! I was starting to worry it would never work. Hopefully if anyone else has this problem they can figure it out from here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting hard drive thug_poet22 Linux - Hardware 14 01-04-2005 02:11 AM
mounting a windows format hard drive? cynergysystems Linux - Newbie 8 10-18-2004 11:59 PM
hard drive mounting error?? wwwc21 Linux - Hardware 3 03-16-2004 07:01 PM
mounting a windows 2000 hard drive durden2.0 Linux - Newbie 6 06-19-2003 09:27 PM
mounting a hard drive n_ick2000 Linux - Newbie 5 04-10-2002 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration