Not seeing windows partitions with df and mount command
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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'.
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).
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
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.
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?
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.