LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-15-2003, 01:04 PM   #1
deepika
Member
 
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Rep: Reputation: 15
Not seeing windows partitions with df and mount command


Hi all,

I have both Windows and Linux installed on my laptop. But I am unable to see partitions associated with Windows using both df and mount command.
But if I run /sbin/fdisk and enter command 'p' it shows the same.

Can anyone please tell me what can be the problem with 'df' and 'mount'.

Thanks & regards,
Deepika
 
Old 07-15-2003, 01:20 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Do a search in this forum for "mount vfat". It sounds that you don't even have your win partition in your /etc/fstab (the file that automounts everything there, when your system boots up).
 
Old 07-15-2003, 01:20 PM   #3
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
If you dont have your windows partitions mounted, do so before you use df and mount. These commands do not scan your HDD, they find out what's mounted ( from /proc/mounts for instance ) and report on those.
 
Old 07-15-2003, 01:41 PM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi Deppika

Have you created a mount point in a Linux directory for this yet?

Post the complete code you use for the mount command.
 
Old 07-15-2003, 02:51 PM   #5
deepika
Member
 
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Original Poster
Rep: Reputation: 15
Thanks everyone,

yes, /etc/fstab file doesn't contain win partition info, that's why it's not getting mounted. Isn't it?

well, when I run /sbin/fdisk command I get following output.

---------------------------------------------------------------------------
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1354 10236208+ c Win95 FAT32 (LBA)
/dev/hda2 3750 3876 960120 1c Hidden Win95 FAT32 (LBA)
/dev/hda3 1355 3749 18106200 f Win95 Ext'd (LBA)
/dev/hda5 1355 3183 13827208+ 7 HPFS/NTFS
/dev/hda6 3184 3668 3666568+ 83 Linux
/dev/hda7 3669 3749 612328+ 82 Linux swap
---------------------------------------------------------------------------

I could mount first two win partitions (hda1 and hda2) but couldn't mount other two (hda3 and hda5). It gives "wrong fs type........" error. Can anyone tell what fs type I should give while using mount command.

And also how should I modify my /etc/fstab so that these are mounted at boot time along with Linux partitions?
 
Old 07-15-2003, 04:04 PM   #6
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
When they made those 20Meg drives that look and weigh like a suitcase a decade and some ago, 4 primary partitions sounded like a lot more than one could wish for, but the legacy got carried forward.

Your /dev/hda3 is an extended partition that houses your hda5,6 and 7. It is more of a 'container' than a real partition that contains a filesystem and can hold data on its own. So you cannot mount it, not that you would ever need to.

Coming to /dev/hda5, you need to have NTFS support enabled so that the kernel can understand the underlying filesystem. Check out http://linux-ntfs.sourceforge.net/

Once you have your NTFS driver, something like
/dev/hda5 /mnt/windohs ntfs defaults,rw,user,uid=500,gid=100,umask=137 0 0

should do the job.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm not able to mount windows partitions as rw akudewan Ubuntu 2 05-21-2005 02:11 AM
mount windows xp partitions in ubuntu newbieSC Linux - Newbie 8 04-20-2005 09:47 PM
need help to mount and add Windows Partitions ilectrcbob Linux - Newbie 7 06-03-2004 07:56 AM
Unable to mount Windows partitions ! shankariyer Red Hat 8 12-22-2003 07:02 AM
Mount Windows Partitions? RedHatMN Linux - Newbie 9 12-15-2001 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:55 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