Accessing NTFS Data - Windows XP
So my one-year old turned off the power to my in-laws Windows XP machine while I had the system configuration utility up. Now it won't even boot up. I created a DOS boot CD; but once in DOS it's not even recognizing the other drives so I can't go in and make any needed changes to the corrupted file. So I created a Knoppix boot CD and I'm just wondering what it will do if I force the mount of their hard drive. Would I possibly lose all the data on the NTFS partition? Would I be able to go in and open the files and make the needed changes and then get Windows to boot properly? If not, then what is my best option to recover the files before I format (NTFS again) and reinstall XP for them? Thanks.
Re: Accessing The Harddrive
Quote:
Originally Posted by rahmuss
.... and I could try to force the mount in Knoppix; but I'm worried it will kill the data. ....
If you want to try to force something, use the mount command and the read-only option (man mount for details), it should not harm anything. But you may very well find that Linux can't mount the partition. Windows is quite capable of destroying partitions that way, I have several drives that it has done it to, even without a one year old.
Even if you can't force a mount, there is a chance that only the partition table is mucked up, not the partition itself. Gpart or testdisk may help you recover in that case, see man gpart and/or man testdisk for details.
unable to mount hard drive
I too get the error
Unable to mount device
Error org.freedesktop.Hal.Device.Volume.UnknownFailure
but only after installing to usb flash drive. I've tried it 3 times with the same result. When I first boot from the flash drive I can access local hard drive partitions be they fat32, ntfs or ext3 and copy information into my newly created persistant storage space (the knoppix data file). When I reboot I can't. At first I thought since I had installed some software with the synaptic package manager that I had broken something. But it happens even if I just reboot and do nothing except move some files.
Using the pen drive in the machine I installed it with I can access the local hard drive. It is on another machine I can't. suppose rebuilding fstab will work.
Any ideas?? cheers
usb install problem mounting hard drive partitions
Quote:
Originally Posted by mbagni
Hi all,
I have investigated the problem. The /etc/fstab file is dynamically built at every reboot (NOT ALWAYS SEE LATER) by the script /usr/sbin/rebuildfstab which takes care to popilate the directory /media with the proper mount points (es. /media/sda1, /media/sda2, /media/hdc1 etc.).
It is the failure in populating this directory the source of your (and mine) problem. I have tried to launch the script after bootstrap in a root terminal but the script checks the current filesystems (from /proc/partitions) against the current /etc/fstab (which has been correctly populated) and refuses to re-create the mount points in /media.
I am still working on the problem since it seems that there is another task that takes care to CLEAN the /media directory at every reboot so my temptative to call rebuildfstab in my /etc/rc.local has not solved the problem since, although I am sure that the call has regenerated the content of the directory /media, there is the second cleaning task that has deleted the newly created mount points just after their creation.
I am still investigating to find out what is this son-of-a-program that cleans that directory in order to address the problem properly.
If there is someone of the KNOPPIX Team that would kindly help us he/she is welcome.
In my case the problem shows up in the version booting from an USB ket with a persistent user disk (knoppix-data.img).
Cheers
@OErjan. Many thanks for coming back to me with some help. I apologise for not providing more information. My only excuse is lack of time. But if I cannot take the time to describe the situation how can I expect help!? I am quoting mbagni above since he/she seems to be experiencing the same difficulty which I am having.
Background: I am a seasoned Puppy Linux user and have been running my machines from a flash drive with puppy very successfully. Why am I here? Discovered the 6.0.1 version of Knoppix last week and I am very impressed with its simplicity, speed and the overall look of the operating system. I don't wish to install it onto a hard drive but it seems ideal as a portable system to run from a usb flash memory stick.
I like the puppy frugal install very much and am keen to use knoppix and find out more about the way it uses a persistant user disk (knoppix-data.img) since this seems very similar to the Pup_save squashed file system created by puppy.
Puppy has the pmount program which, if I run it, has always correctly found the partitions on whatever machine I happen to be on and then allowed me to click on mount to mount them.
Knoppix on a USB stick seems to find the partitions correctly on different machines but is not able to mount them. Going back to the machine I used to set up the usb stick on the info for the mount points was still there. And I could mount them ok. But booting up on another machine is fine except the partitions on the hard drive cannot be mounted - directory doesn't exist ... error...
Otherwise knoppix on USB is working really well. Auto detection of hard ware while not perfect is very good. THe 3d effects are impressive and it is a delight to use. So hopefully someone is able to give me some help on how to get knoppix to find and use the mount points correctly?
I did notice that this is a beta version.....hope it works ok in the next. By the way - I don't get any desktop icons for the hard drive partitions when I run from a CD or from USB,
Happy to provide more info if necessary and do any testing required. I have 4 pentium 4 machines capable of booting from USB and am currently experimenting with two 4 gig Corsair flash drives. The machines are desktops with 1 or 2 gig of RAM.
Thanks for the help. I am looking forwarding to using knoppix more in this new version.
problem mount the hard drive (knoppix-data.img)
for problem mount the hard drive / version booting from an USB (knoppix-data.img) knoppix 6.0.1
I suggest you make a patch
1 Create a new file and put the name patch.sh in /home/knoppix/patch.sh
2 Paste the following script in the file:
#!/bin/bash
sudo mkdir /media/sda1
sudo ntfs-3g /dev/sda1 /media/sda1 -o noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x
3 Save and Close the file
4 Give the file execution permission (secondary button, properties)
5 for lxde: create the autostart folder in /home/knoppix/.config/
for kde: /home/Knoppix/.kde/autostart
6 Paste patch.sh in /home/knoppix/.config/autostart
7 to test the patch: open a console and type ./patch.sh
greetings