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.
[knoppix]
hi i am trying to mount an ntfs drive but i get the error:
Code:
[~root]# mkdir win; mount -o rw /dev/hdb2 win
couldn't mount device '/dev/hdb': operation not supported
windows did not shut down properly. try to mount volume in windows, shut down and try again.
mount failed
// read-only works fine.
// i am trying to copy a downloaded samsrv.dll to the ntfs disk because the winxp install cd is bad.
i am unable to shutdown windows properly because when it starts all it gives me is an error saying that
Code:
lsass.exe - entry point not found
the procedure entry point samiamigc could not be located in the dynamic link library samsrv.dll.
is there any way to force knoppix to mount this drive ?
how can i properly shutdown windows when it wont even start (fdisk/ dos/ 3rd party bootable-cd) ?
[/knoppix]
i switched to redhat-9 and installed fuse and ntfsprogs.
these are my options:
Code:
[root@hyper root]# ntfsmount /dev/hdb2 winnt
Failed to mount '/dev/hdb2': Operation not supported.
Access is denied because the NTFS journal file is unclean. Choices are:
A) Shutdown Windows properly.
B) Click the 'Safely Remove Hardware' icon in the Windows taskbar
notification area before disconnecting the device.
C) Use 'Eject' from Windows Explorer to safely remove the device.
D) If you ran chkdsk previously then boot Windows again which will
automatically initialize the journal.
E) Submit 'force' option (WARNING: This solution it not recommended).
F) ntfsmount: Mount the volume read-only by using the 'ro' mount option.
Mount failed.
[root@hyper root]# ntfsmount -o ro /dev/hdb2 winnt
fuse: device not found, try 'modprobe fuse' first
fuse_mount failed.
Unmounting /dev/hdb2 ()
[root@hyper root]# modprobe fuse
modprobe: Can't locate module fuse
[root@hyper root]# uname -a
Linux hyper 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/Linux[root@hyper root]# apt-get install fuse-source
You could take out your hard drive, put it in an other machine with proper windows and run checkdisk on it
during my thanksgiving break i took my hard drive to my parents house in florida (they have winxp) and was able to boot up with it as a secondary hard drive, browse the directories and shut it down properly. i reconnected it to my hard drive at home and was able to mount it read-write in knoppix. i backed up and copied the file that it errored on but i still get the same error as my original post (i.e.- lsass.exe - entry point not found...) :
Code:
root@1[~]# mkdir winnt
root@1[~]# mount /dev/hdb2 winnt
Couldn't mount device '/dev/hdb2' : Operation not supported
Windows did not shut down properly. Try to mount volume in windows, shut down and try again.
Mount failed.
root@1[~]# mount -o ro /dev/hdb2 winnt
root@1[~]# cd winnt/winnt/system32/dll*
root@1[dllcache]# ll samsrv*
-rw------- 1 root root 415744 Nov 24 18:58 samsrv.dll
-rw------- 1 root root 390416 Apr 8 2005 samsrv.dll.bak
root@1[dllcache]# strings samsrv.dll.bak | grep -i samiam
root@1[dllcache]# strings samsrv.dll | grep -i samiam
SamIAmIGC
root@1[dllcache]#
so the entry point does exist in the new copy of the file; what is windows talking about ?
now im back to knoppix not being able to mount the drive in read-write anymore - and flying back to my parents house to reset the drive would be excessive.
Then my advice is to look for a boot floppy disk image, not necessarily floppy disk, that supports NTFS and has checkdisk on it. When you shut down knopix unmount the ntfs partition first.
fyi:
hi, the original problem was only due partially to a bad cd. my hardrive setup is:
hda1 - ext2-boot
hda2 - ext3
hda3 - swap
hdb1 - fat32
hdb2 - ntfs
since windows wants the c-drive to be the first partition on the first disk it basically crashed on the setup because it cant read a linux harddrive.
i physically unplugged the first harddrive (as well as mess with a few jumpers and updated the bios). reformat ntfs.
i then booted up with knoppix live-usb (live-cd/ dvd should also work) i clicked on the penguin icon and did 'services -> start ssh server' and mount the ntfs drive.
i got my brothers laptop that came with xp preinstalled and used winscp to copy the i386 directory to the machine running knoppix. (i didnt try to use wine to execute winnt.exe, i thought the xp cd's recovery console would allow me to do it but for some reason it wouldnt let me in that directory -- access denied). whatever, i used bart-pe to start the install with winnt32.exe.
ironically my cd-key didnt work, i used the product key under my brothers laptop. is this illigal ? amways, i own a legit copy so im ok.
so after a restart the remainder of the install program went fine.
now hopefully i wont have any more complications when i re-attach my redhat disk and use grub to boot windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.