Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access a hard drive via console window

Status
Not open for further replies.

vttech

Technical User
Jan 28, 2006
297
US
I am trying to delete a directory located on a windows hard drive. I booted into Knoppix via a CD and tried using the GUI but I receive the error unable to delete directory. I know that I can properly do this via the root account in a console window. Here is my problem, how do I access the Hard Disk (hda1) via the console window, which would enable me to see the files on the hard drive and how do I force a removal of that directory??

Newbie in search of knowledge
 
If you did the default mount in KNOPPIX, the partition is mounted read-only. You have to remount the partition with read/write permissions.

And I can't recall how well the KNOPPIX rw driver for NTFS works now. For a while they were using CaptiveNTFS, which I thought worked quite well, but I think that it became deprecated. I believe that they are using FUSE as the NTFS write utility.

Try:
Code:
ntfsmount /dev/hda1 /media/hda1

You can also just right-click on the hard disk icon on the desktop and choose the "Change read/write mode" option.


pansophic
 
The current version still uses the Captive-Installer for read/write access, but uses the kernel NTFS for read only by default.

Go to the menu, and select the menu item to run the Captive Live Installer (or whatever the similar title they use is), and after going through the wizard:

Code:
mount -t [red]c[/red]aptive-[red]ntfs[/red] [green]/dev/hda1 /mnt/hda1[/green]
cd /mnt/hda1/[green]path/to/file[/green]
rm [green]filename[/green]
cd /mnt
unmount hda1
media and mount work the same, mnt is the "old way" and it's where I learned to mount things an eon ago. As a fs type, Captive in the above code may be capitalized.

Green stuff may vary based on your system and needs, red may be capitalized wrong in my tip.

[plug=shameless]
[/plug]
 
I was just running 5.01, and it uses FUSE. I thought that I saw Captive removed in 4.02?? as well, but haven't used it in a while.

Current version of KNOPPIX is 5.1.


pansophic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top