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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.