LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-16-2004, 11:38 PM   #1
acidbreez
Member
 
Registered: Aug 2003
Posts: 56

Rep: Reputation: 15
mounting windows partition


i am having problems mounting my windows partition in redhat linux 8.0 i am using this command:

mount /dev/hda1 /mnt/windows -t ntfs

and when ever i go to /mnt/windows i dont get my windows partition but this stuff:

boot.ini NTDETECT.COM ntldr RECYCLER System Volume Information

can somebody please tell me what this is and please help me mount my windows partition.
 
Old 01-17-2004, 01:58 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
That is your windows partition. Those are hidden files on C:\. But the -t ntfs is probably being ignored if it doesn't generate an error. It's supposed to be between 'mount' and '/dev/...' Is that *all* you get? I have no idea where the rest of your C: drive/disk partition is.
 
Old 01-17-2004, 03:53 AM   #3
adil
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
you may try without ' -t ' option.......
 
Old 01-17-2004, 04:02 AM   #4
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
What version of windows are you using? And are you sure it's an NTFS partition? (Windows XP uses FAT32 in some cases...)
 
Old 01-17-2004, 08:36 AM   #5
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Rep: Reputation: 30
You have the order of your command wrong, it should go like this:

mount -t (type) /dev/(device) /mnt/(localDir)

Try the auto filetype, that may work. Do this:
mount -t autofs /dev/hda1 /mnt/windows

What you are doing right now is telling the mount script that you only wish to mount certain files in the drive that contain the word 'ntfs'
 
Old 01-17-2004, 09:16 PM   #6
acidbreez
Member
 
Registered: Aug 2003
Posts: 56

Original Poster
Rep: Reputation: 15
i am using Microsoft Windows XP Professional edition and my partition is ntfs and none of this stuff worked
 
Old 01-17-2004, 09:32 PM   #7
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Rep: Reputation: 30
oh, well there is your problem. you cant mount ntfs file formats. sorry I didnt notice that before. I dont know why it isnt supported, or if it will ever be, all I know is that it isnt. If you still have some space left on your harddrive, I would reccomend making a 2-4 GB FAT32 partition that you can use to transfer files between the two OSs.
 
Old 01-17-2004, 10:24 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally posted by LinuxBlackBox
oh, well there is your problem. you cant mount ntfs file formats.
Yes you can. You just can't safely write to it.

If /etc/fstab has something like

/dev/hda2 /mnt/hda2 ntfs uid=1000,gid=100,ro 0 0

it's mounted automatically at boot and is accessible to me as normal user. (That's my offline box.)

You could try something like adding noauto to the options section (if you don't want it mounted all the time) and it should still mount with a simple 'mount /mnt/hda2'. Can't remember the details but I think

mount -t ntfs -o uid=1000,gid=100,ro /dev/hda2 /mnt/hda2

issued as root at the command line should give you the partition as user. (Otherwise I guess you'd have to change the perms on the device file itself, first.)

Substitute the actual partitions, mountpoints, id's, and so on, where appropriate, of course.

Irrelevant explanatory digression: I have a symlink '~/c_my_documents' to '/mnt/hda2/blahblah/My Documents' because I have to mount the whole partition but don't want to have the whole drive in /home or to navigate through all the crap to get to my files. My NTFS drive on that box is a hell of a lot bigger than my reiser drive so I keep audiofiles and similar files that take up a lot of space and that I don't need to write to there to save space since I have one of those screwed up OEM XP's and, while I never use it, I don't feel like deleting it or reinstalling it in order to repartition. My boxes are a mess. And I'm sure this is not recommended procedure but it works and the box is invulnerable to remote exploits so I don't care if I'm tripping over some security issue. If anybody has better stuff, I'd love to hear it. And if this doesn't work for you, acidbreez, I have no idea what's wrong.
 
Old 01-18-2004, 04:04 AM   #9
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
Make sure you have your ntfs kernel support. Either compiled in from the kernel source, or there are modules obtainable here: http://linux-ntfs.sourceforge.net
 
Old 01-18-2004, 01:16 PM   #10
acidbreez
Member
 
Registered: Aug 2003
Posts: 56

Original Poster
Rep: Reputation: 15
none of this stuff still didnt work i keep getting the same thing thanks any way
 
Old 01-18-2004, 04:22 PM   #11
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
If none of this works, then I'd say that something is really wrong... Are you sure there are files there actually? You seem them in windows then?
 
Old 01-18-2004, 05:24 PM   #12
acidbreez
Member
 
Registered: Aug 2003
Posts: 56

Original Poster
Rep: Reputation: 15
no i dont see those files in windows.
 
Old 01-18-2004, 05:50 PM   #13
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Ouch. Well, if Windows doesn't see 'em and Linux doesn't see 'em, they aren't there to be seen. But how do you even boot Windows? Or is that list you gave in your first post incomplete? What exactly is your disk/partition layout and what exactly do 'ls' and 'dir' output regarding the Windows partition(s) from each system?

But it sounds like the files you're looking for got deleted somehow.
 
Old 01-19-2004, 12:21 PM   #14
acidbreez
Member
 
Registered: Aug 2003
Posts: 56

Original Poster
Rep: Reputation: 15
i figured it out but thanx everyone for trying to help. (hda1 is the boot loader bios so i wanted hdb1 instead.)
 
  


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 Windows partition ZeroIdea Linux - General 6 10-25-2005 02:38 AM
Mounting Windows Partition pibby Fedora 3 11-19-2003 05:46 PM
Mounting Windows Partition johnny_575 Linux - Newbie 4 08-30-2003 06:36 PM
mounting a windows partition? codename000 Linux - Newbie 1 04-15-2003 10:27 PM
mounting windows partition. FLuff_Suit Linux - General 2 05-10-2002 12:31 AM

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

All times are GMT -5. The time now is 03:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration