LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2003, 10:25 PM   #1
jrpretz
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Rep: Reputation: 0
Mounting DOS partition ... easy question.


Ok, I'm new to this. I have all the pieces but I don't know how to put them together.

Here's the output of 'fdisk -l'
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1307 10498446 7 HPFS/NTFS
/dev/hda2 1308 4800 28057522+ 83 Linux
/dev/hda3 4801 4864 514080 82 Linux swap

Here's my /etc/fstab
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/hda1 /dos hpfs/ntfs defaults 0 0

That last line is mine. What a I doing wrong? When I do
mount /dos
I get
mount: fs type hpfs/ntfs not supported by kernel

What file system type does my fstab -l dictate for the fstab file?

John
 
Old 07-20-2003, 10:28 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
hpfs/ntfs is not a valid filesystem type. man mount will list the different filesystem keywords that can fit in that column.

You'll probably end up using ntfs or vfat

EDIT:
fdisk -l doesn't give you the keyword. They may be loosely related, but you have to know what filesystem is on each drive's partition and specify it accordingly with what options the man pages give you.

Last edited by Dark_Helmet; 07-20-2003 at 10:31 PM.
 
Old 07-20-2003, 10:34 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Have you created a mount point in /mnt ?

If your mount point is /mnt/john then try



/dev/hda1 /mnt/john ntfs ro,auto,0 0
 
Old 07-20-2003, 10:34 PM   #4
jrpretz
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
solved!

Thank you. Solved it myself. You're right, I needed ntfs rather than hpfs/ntfs. I also needed to install some support for that file system which came from
http://linux-ntfs.sourceforge.net/info/redhat.html

Thank you all.
John
 
  


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
help with mounting a dos partition! omanno Linux - Newbie 6 03-15-2003 11:03 PM
question about mounting a partition ... purpleburple Linux - General 6 12-12-2002 05:27 PM
Mounting Dos partition failed!! RKris Linux - General 1 09-18-2002 10:20 AM
Question about mounting a FAT32 partition Genshooter Linux - Hardware 2 08-20-2002 10:59 PM
mounting dos ext partition mose Linux - General 6 11-13-2001 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 PM.

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