BleepingComputer.com: Trying to save some files...Midnight Commander

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Trying to save some files...Midnight Commander

#1 User is offline   Aaflac 

  • Doin' Dis 'n Dat...
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Team
  • Posts: 1,178
  • Joined: 15-September 06
  • Gender:Not Telling
  • Location:USA

Posted 22 June 2009 - 01:28 AM

Would appreciate some help. I’m a newbie to Linux!!

How could one save files from a non-bootable Windows, and mount the Windows partition (source), as well as mount a USB pen drive (destination).

Using Dr.Web LiveCD, Terminal accepted a command to detect the Windows disks: fdisk -l
It shows the Windows partition as /dev/hdc1, and the USB pen drive as /dev/sdb1.
The USB pen drive is FAT32.

Then, issued the following commands (not all together!!):
mkdir /mnt/usbsc /mnt/winhd
mount /dev/hdc1 /mnt/winhd
mount /dev/sdc1 /mnt/usbsc

However, this is as far as I’ve gone, and would like to know how to use Midnight Commander (MC) to copy and save the files.

MC has not recognized hdc1 or sdc1. What am I doing wrong?

Also, using MC, how would one see the contents of the Windows partition to save some of the files in it?? What is the right command for this, if one wanted to view what is in Documents and Settings?


Thanks again for your help.
To do is to be - Socrates

#2 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 22 June 2009 - 01:55 AM

try

mount -t ntfs -r /dev/hdc1 /mnt/winhd


to mount the NTFS volume in read-only mode (to prevent further damage)

I've not used MC so I can't offer much help there. I've also never used Dr. Web Live CD, so I'm not sure which filesystems it supports, or if it has the latest NTFS3g driver.

If I were in your shoes (and I HAVE been before), I'd probably be using the Ubuntu Live CD sice I know it can mount USB and NTFS drives easily.
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#3 User is offline   Aaflac 

  • Doin' Dis 'n Dat...
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Team
  • Posts: 1,178
  • Joined: 15-September 06
  • Gender:Not Telling
  • Location:USA

Posted 22 June 2009 - 02:57 PM

Thanks, Amazing Arnold!!

Have seen something like this used:
mount -t ntfs-3g /dev/hdc1 /mnt/winhd

…there is no -r, and I understand your rationale for using it
…there is ntfs-3g instead of ntfs

From what I found, ntfs-3g is, a driver (so to speak) that supports all operations for writing files. Files of any size can be created, modified, renamed, moved, or deleted on NTFS partitions. It provides safe and fast handling of the Windows XP, and other file systems.

Is there an advantage to using ntfs-3g instead of ntfs in the command:
mount -t ntfs -r /dev/hdc1 /mnt/winhd

This post has been edited by Aaflac: 22 June 2009 - 02:59 PM

To do is to be - Socrates

#4 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 22 June 2009 - 03:27 PM

Actually, I think I made a type there. use 3g!
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#5 User is offline   Aaflac 

  • Doin' Dis 'n Dat...
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Team
  • Posts: 1,178
  • Joined: 15-September 06
  • Gender:Not Telling
  • Location:USA

Posted 22 June 2009 - 09:55 PM

It worked:

mount -t ntfs-3g /dev/hdc1 /mnt/winhd

:thumbsup:

Could I have used:

mount -t ntfs-3g -r /dev/hdc1 /mnt/winhd

Or, does the 3g negate the need for the -r?

Thank you very much for your help.
To do is to be - Socrates

#6 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 22 June 2009 - 10:21 PM

The -r option mounts the filesystem as read only. I suggest you use it in this case, and all data recovery cases.
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#7 User is offline   Aaflac 

  • Doin' Dis 'n Dat...
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Team
  • Posts: 1,178
  • Joined: 15-September 06
  • Gender:Not Telling
  • Location:USA

Posted 22 June 2009 - 11:01 PM

So this would be correct:

mount -t ntfs-3g -r /dev/hdc1 /mnt/winhd
To do is to be - Socrates

#8 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 22 June 2009 - 11:40 PM

Yep.
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#9 User is offline   Aaflac 

  • Doin' Dis 'n Dat...
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Team
  • Posts: 1,178
  • Joined: 15-September 06
  • Gender:Not Telling
  • Location:USA

Posted 23 June 2009 - 12:10 AM

:thumbsup:
To do is to be - Socrates

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users