LinuxQuestions.org
Help answer threads with 0 replies.
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 06-20-2002, 01:25 AM   #1
MrPolite
Member
 
Registered: Jun 2002
Location: Middle of nowhere
Posts: 109

Rep: Reputation: 15
Angry Again, how to access windows partition


I know this has been asked about 10 ^ 100000000000 times, but I'm asking it agian because I cant figure it out from the old posts
I'm trying to access my MP3 files on my WinXP parition (NTFS). I tried that mount command, but it just prints the manual (it knows I'm a Linux idiot )

I'm very new to Linux so I would be happy if you can explain it in details

Last edited by MrPolite; 06-20-2002 at 08:26 PM.
 
Old 06-20-2002, 01:31 AM   #2
DaDdY SnEb
Member
 
Registered: Jun 2002
Location: Nice
Distribution: SuSE Linux Pro Version: 8.2
Posts: 159

Rep: Reputation: 30
Hehehe, I've used Linux for nearly the first time yesterday and finally a question I can answer.

Well in my version I had to be logged in as root, create a /windows/C folder and then use the command mount /dev/hd.... and it automatically mounted it in the folder I created. Well I'd tried the command before I created the folders but it said /windows/C folder doesn't exist so I created it.

My turn to ask you some now, I can't get WinXP to load anymore, it just says "missing NTLDR". Did you manage to do it? What did you install first, WinXP or Linux? On which partition have you got WinXP and on which one have you got Linux? Which partition is activated?

Last edited by DaDdY SnEb; 06-20-2002 at 01:50 AM.
 
Old 06-20-2002, 01:38 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Well first off if you have NTFS file support built into the kernel, how are you trying to mount the partition ??

Usually a:

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

Will work... where the X in hdX is the drive it resides on and you can create a empty directory to mount it to. For example I set it at /mnt/windows, that is where my empty directory is that I use to mount windows drives.

Just a word of advise though, NTFS doesn't or isn't read so well under Linux, it can work, but you might run into problems though. Linux is much better at reading fat filesystems.
 
Old 06-20-2002, 02:00 AM   #4
MrPolite
Member
 
Registered: Jun 2002
Location: Middle of nowhere
Posts: 109

Original Poster
Rep: Reputation: 15
ok tnx everyone, I tried this but I'm still confused...
I tried mount -t ntfs /dev/hda1 /mnt/windows and it didnt give me any errors this time, so I'm guessing it was successful. Now that it is "mounted" how can I access it????
 
Old 06-20-2002, 02:02 AM   #5
MrPolite
Member
 
Registered: Jun 2002
Location: Middle of nowhere
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by DaDdY SnEb
My turn to ask you some now, I can't get WinXP to load anymore, it just says "missing NTLDR". Did you manage to do it? What did you install first, WinXP or Linux? On which partition have you got WinXP and on which one have you got Linux? Which partition is activated?
Umm I just use System Commander, it lets you have different OS on your system. I rather use that and not the linux or windows boot manager stuff becuase maybe I want to uninstall linux someday.... System Commander is good.
see www.v-com.com (or a warez site if you like)
 
Old 06-20-2002, 02:08 AM   #6
MrPolite
Member
 
Registered: Jun 2002
Location: Middle of nowhere
Posts: 109

Original Poster
Rep: Reputation: 15
AAAH!! found it!!!!!!!
Ok one more question, sorry to bother you all

It sounds like that I can only access this through the console thingie, can I make it somehow that I would be able to access it through the graphical interface too?
another one, how can I tell the MP3 player to read from the windows partition? when I go to the MNT folder with the MP3 player, I only see CD-ROM and DISK. I guess it's because I'm logged in as root in the console only.... what should I do?
 
Old 06-20-2002, 02:12 AM   #7
DaDdY SnEb
Member
 
Registered: Jun 2002
Location: Nice
Distribution: SuSE Linux Pro Version: 8.2
Posts: 159

Rep: Reputation: 30
if you used mount -t ntfs /dev/hdX /mnt/windows it mean "mount this device to this folder, which means that the content of your C windows drive is down in /mnt/windows, so just go to the root and type cd /mnt/windows and then use the ls command to see what's in it.
 
Old 06-20-2002, 02:14 AM   #8
DaDdY SnEb
Member
 
Registered: Jun 2002
Location: Nice
Distribution: SuSE Linux Pro Version: 8.2
Posts: 159

Rep: Reputation: 30
Oh, I've tried to read my mp3 and it didn't work and they were on the Linux partition I guess it's just me. But now that the drive is mounted you can access it through the File manager in the graphical interface.
 
Old 06-20-2002, 02:16 AM   #9
MrPolite
Member
 
Registered: Jun 2002
Location: Middle of nowhere
Posts: 109

Original Poster
Rep: Reputation: 15
umm I tried that. I closed the console and now when I try to access mnt/windows, it says " you dont have enough permissions to read" and on the icon there is a little LOCK icon. I dont want to log in as root, any ways to access it?
 
Old 06-20-2002, 02:35 AM   #10
DaDdY SnEb
Member
 
Registered: Jun 2002
Location: Nice
Distribution: SuSE Linux Pro Version: 8.2
Posts: 159

Rep: Reputation: 30
I know I had the same problem, it looks like it doesn't want to mount a hard drive unless you're logged in as root, but try without closing the console.
 
Old 06-20-2002, 02:42 AM   #11
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Ok ok ok...

You will need permissions to access it. You can either gain those by mounting the drive in fstab with the 'users' option or by chowning /mnt/windows to users.

Code:
chown user:user /mnt/windows
OR
Code:
pico /etc/fstab
(add to the bottom)
/dev/hda    /mnt/windows  ntfs     users,ro  0   0
CTRL+X
Yes
ENTER
That is if you use pico, you can use whatever text editor you like, just add the line beginning with /dev... and end it at 0 0

Cool, I think that's it?

But just as trickykid said, if you want to be able to READ AND WRITE to this drive with Linux, then you will want to change it to Fat32 rather than NTFS. If you are just going to add MP3's to it from windows, and just READ them from Linux, then don't worry about changing.
 
Old 06-20-2002, 02:50 AM   #12
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Oh, almost forgot about your Mp3 Player prog. You can access the files just the same as you would in linux, if you need to supply a folder like this: C:\Program Files\Mp3's\ Then you would type it with either of the following:
"/mnt/windows/Program Files/Mp3's/" with the quotes OR
/mnt/windows/Program\ Files/Mp3's/ where the \ represents the space. The quotes one has seemed to work for me pretty good so far, but I am sure that it won't always, so the more correct way is the \ way. Also, you SHOULD be able to access the drive the same way in a GUI. Open a file manager, go to the mnt directory, and go from there.
 
Old 06-20-2002, 04:21 PM   #13
MrPolite
Member
 
Registered: Jun 2002
Location: Middle of nowhere
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by MasterC

Code:
chown user:user /mnt/windows
OR
[code]
Umm tnx everyone for answering
MasterC, I tried what you said. I tried this:
Code:
chown mandrake:mandrake /mnt/windows
it gives me this error: chown: changing of ownership of '/mnt/windows': Operation not permitted

I used SU to log in as root, but it aint working
 
Old 06-20-2002, 09:34 PM   #14
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
MrPolite, try MasterC's suggestion of editing your /etc/fstab file.

pico /etc/fstab
(add to the bottom)
/dev/hda1 /mnt/windows ntfs users,ro 0 0
CTRL+X
Yes
ENTER


After you edit and save the file, then run:

mount /mnt/windows
ls /mnt/windows


See if that lists the files and folders on your xp partition. Remember that after you are finished with using the xp partition to unmount it ( umount /mnt/windows ).

Last edited by linuxcool; 06-20-2002 at 09:36 PM.
 
Old 06-21-2002, 03:45 AM   #15
DaDdY SnEb
Member
 
Registered: Jun 2002
Location: Nice
Distribution: SuSE Linux Pro Version: 8.2
Posts: 159

Rep: Reputation: 30
Why is it so important to unmount it afterwards?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
Can't Access Windows Partition nostrum Linux - Newbie 8 06-18-2004 11:17 PM
Windows partition & access Denwar Linux - Newbie 2 04-04-2004 09:13 PM
Access a Windows Partition in Linux izibo Linux - Software 12 07-12-2003 01:51 AM
Access to windows partition? DeadlySin3 Linux - Newbie 2 05-05-2003 10:46 AM


All times are GMT -5. The time now is 12:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration