LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-04-2004, 02:46 PM   #1
Mandrake92
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake 9.2
Posts: 29

Rep: Reputation: 15
having trouble mounting my hard drive


i have XP on my pc and i boot from a cd running Knoppix STD and im trying to have read/write access to files on XP.

i (think) i understand that i have to make a directory before i mount so i try:

mkdir /dev/hda

that goes down fine so i try to mount now like this:

mount /dev/hda (or hda1) <-----it gives me and error saying can find it in /dev/fstab or something like that

i also tried many variations of the above but have had no luck

can someone help a noob out or give some examples or something...also i don't want to do a hard drive install of linux.
 
Old 06-04-2004, 03:05 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
First, if your Windows XP partitions are formatted as NTFS, then you can only read them. Write support for NTFS is (to my knowledge) only experimental and not worth risking your data.

Second, the mkdir command you want to execute is something like:
mkdir /mnt/hda1

The device file should already exist (the mkdir command you listed above should not have worked).

Third, when mounting a device, you need to tell the system what device to mount, and where to mount it in the filesystem. So mount needs two arguments:
mount /dev/hda1 /mnt/hda1

From that point on, you can access your drive's contents from the /mnt/hda1 directory. If your Windows XP partition is not hda1, then replace hda1 with whatever you need (hda2, hdb1, or whatever). When finished using the drive, make sure you remember to unmount it:
umount /mnt/hda1

If the mount command fails with an "unknown filesystem" error, the you need to specify which filesystem is on the device. You do that with the -t argument.

If your device was formatted with FAT32:
mount -t vfat /dev/hda1 /mnt/hda1

If your device was formatted with NTFS:
mount -t ntfs /dev/hda1 /mnt/hda1

If you get an error saying the filesystem is not supported, then the kernel is not prepared to handle that particular filesystem. In that case, there's very little (if anything) you can do to work around it without getting overly complicated.
 
Old 06-04-2004, 08:29 PM   #3
Mandrake92
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake 9.2
Posts: 29

Original Poster
Rep: Reputation: 15
thx for the awesome post...havent tried it yet but will later..just 1 question...if i get Knoppix 3.4 with the new kernal does this mean i can read and write from my hd?
 
Old 06-04-2004, 08:48 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I honestly can't say because of two reasons:[list=1][*]I'm not sure if NTFS-write support in the 2.6 kernel is considered stable/reliable[*]The Knoppix maintainers would have to enable that option in the kernel configuration for the new version of Knoppix to have access to it[/list=1]
I would be shocked if NTFS-write support were finalized, and nobody on the forums posted messages saying as much. It's usually a big thing for people switching over or testing out Linux that somebody would post a "hooray" message.

The last time I used Knoppix, I believe it had full read support for FAT16, FAT32, and NTFS. It had full write support for FAT16 and FAT32. So, the only stumbling block is writing to NTFS.

That reminds me, the last time I used Knoppix, the desktop had an icon for each hard drive partition it detected. I remember being able to right-click on the icon and seeing an option to "remount this partition as read/write" or something to that effect. If your partition is NTFS, then it probably won't have that option. If it does, then again, write support would be experimental. Just thought I'd mention that; it might make your life simpler if you don't have to futz with all those other commands.
 
  


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
trouble mounting usb drive adssse Linux - Newbie 5 05-13-2005 02:33 PM
Having trouble mounting a vfat partition on my slave hard drive eyebrowsoffire Linux - General 27 10-10-2004 08:45 PM
Trouble mounting drive rw paradoxdruid Linux - Hardware 3 09-21-2004 02:07 AM
Trouble mounting cd drive Mahony Linux - General 2 04-14-2004 06:16 PM
Trouble mounting a CD+RW drive Tiot Linux - Newbie 19 10-25-2003 10:47 AM

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

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