Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Basic help recovering files off bad hard drive

Hybrid View

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    2

    Basic help recovering files off bad hard drive

    I'm a novice Knoppix user and I'm trying to recover files off a Windows XP hard drive where the OS has failed. I had been successful in recovering files before, but it has taken me a while to try several ways to get it right and it has been a while since I've done this.

    I'm trying to recover a user's personal folder from the hard drive to an external USB hard drive. I boot up to Knoppix and I can see three hard drives. One is the partitioned recovery HD and then the HD with the files I'm trying to recover. The other HD is the external USB drive.

    I have gone into the properties of each drive and given them read/write permissions. If I try to change the permissions on the folders I'm trying to copy from and to I get the error "Could not change permissions for /mnt/uba1/recover". If I copy the folder I'm trying to move, in this case iTunes, to the external USB I get errors like "could not make folder mnt/uba1/itunes".

    The files I'm looking to recover are on hda2 and I'm trying to move to a folder I created on the USB drive UBA1. From the hda2 drive I'm trying to recover this directory: /Documents and Settings/Owner/My Documents/My Music/iTunes. I'm trying to move them to the UBA1 to a folder named "recover".

    Am I missing permission settings, is there a command that I can run that makes this easier?

  2. #2
    Junior Member
    Join Date
    Apr 2011
    Posts
    2
    I should also add that I have unchecked the "Read Only" for the drive I'm trying to move the files to. The drive is mounted.

  3. #3
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    What version of Knoppix are you using? Version 6 mounts drives writable in most cases, while earlier versions did not. I believe in version 5 you had to click the icon to mount it, then right-click and set it writable.

    Cheers!
    Krishna

  4. #4
    Senior Member
    Join Date
    Jan 2011
    Posts
    242
    Quote Originally Posted by krishna.murphy View Post
    What version of Knoppix are you using?
    My thought exactly. I think Ansky926 has an old Knoppix 5 CD.

    I think all he wants to do is drag 'n' drop a folder (aka directory) from his hard drive to his USB drive.

    That would be with this pcmanfm that folks are always talking about ? Under Knoppix 6 sure but under Knoppix 5 I think you'd use Konqueror. How hard can that be ? Command line man myself so I really don't know.

    The devices have to be mounted first. Can you do that from pcmanfm ? (doubt it). It is easy enough ... open a terminal and type:

    Code:
    mount /media/sda2    # Ansky926's Windoze partition
    mount /media/sdb1    # Ansky926's USB partition
    My guess is something very similar would work under Knoppix 5 but the Windows partition probably does get mounted under /mnt/hda2. I've never known USB sticks get mounted anywhere other than /media but I never used Knoppix 5 all that much.

    Knoppix 5 (and earlier) had a nice set of icons representing disk partitions on the desktop and you could (didn't have to) mount partitions by clicking on them. That's gone from Knoppix 6. I guess that UFD partitions could be mounted the same way.

    Knoppix 5 (and earlier) could not mount NTFS partitions r/w so there is no point trying to make the mount read/write. It might let you do this but it has no real effect. So you can copy, but not move, files off a Windoze Ex drive. I don't quite understand why to 'recover' files from a duff disk you would move rather than copy them but perhaps it involves fewer mouse clicks. Save the planet and all that.

    I can't see why the mount of the USB stick would be by default read/only but Ansky926 writes that he has unchecked the "read-only" (which I guess is an indication that he's using a wimpy UI and not a CLI).

    So he writes he can't copy. The copy command under Linux is cp. Ansky926 doesn't say he using something else so I gave it a go:

    Code:
    @Microknoppix:~$ cp -R tmp mnt/uba1/itunes
    cp: cannot create directory `mnt/uba1/itunes': No such file or directory
    Note the error message says directory but Ansky926 writes that the error message he gets says folder. I am not aware of Knoppix having a special en-windows locale so I guess he's not using cp. My guess is he is using some drap-n-drop. In which case how did Ansky926 manage to leave off the leading /?

    My real question is how does one help such people ? No wonder questions at this level are usually ignored by regular forum readers.

    Cheers

  5. #5
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    From the hda2 drive I'm trying to recover this directory: /Documents and Settings/Owner/My Documents/My Music/iTunes. I'm trying to move them to the UBA1 to a folder named "recover".

    Am I missing permission settings, is there a command that I can run that makes this easier?
    ... I hope you are not using some very old Knoppix-Version.

    Open PCManFM twice. In the first instance of PCManFM select whatever you want to copy to the usb-drive. In the socond instance of PCManFM select the usb-drive - here you must be root! (PCManFM-menu/ Tools/ Open current folder as root).


    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD with Knoppix (Knoppix V6.4.4 remaster)

  6. #6
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by Werner P. Schulz View Post
    PCManFM-menu/ Tools/ Open current folder as root
    Why is it imperative to "take root"? That seems an odd way for things to be set up.

    Cheers!
    Krishna

  7. #7
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Why is it imperative to "take root"? That seems an odd way for things to be set up.
    ... you are right! It also works for simple user knoppix - just tested it for my own,
    Last edited by Werner P. Schulz; 04-07-2011 at 06:55 PM. Reason: cancel my answer

  8. #8
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    ... oh! I have make a mistake - it doesn't work for user "knoppix"; I tested at the wrong location

    On extern usb-drive I can not work as user knoppix. Either i work in the second instance of PCManFM as root or root creates a storage folder and "chown" it for user knoppix.

    I think, the first way is easier to use for knoppix novice.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD with Knoppix (Knoppix V6.4.4 remaster)

  9. #9
    Senior Member
    Join Date
    Jan 2011
    Posts
    242

    Look Mum: no root !

    Quote Originally Posted by krishna.murphy View Post
    Why is it imperative to "take root"? That seems an odd way for things to be set up.
    My thought exactly.

    So I stuck in a USB stick and Knoppix added the following line to /etc/fstab:

    Code:
    /dev/sdc1 /media/sdc1 vfat noauto,users,exec,umask=000,shortname=winnt,uid=knoppix,gid=knoppix 0 0
    So I typed in (look Mum, no sudo):

    Code:
    mount /media/sdc1
    fgrep sdc1 /etc/fstab
    and got:

    Code:
    /dev/sdc1 /media/sdc1 vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp850,iocharset=iso8859-1,shortname=winnt,errors-remount-ro 0 0
    Taking the letters rw as a good sign, I tried (without sudo):

    Code:
    touch /media/sdc1/werner
    rm /media/sdc1/werner
    and got no error. So I did:

    Code:
    pcmanfm &
    pcmanfm &
    and dragged and dropped arbitrary file from my the file manager open at my home directory to the file manager open on the usb top-level directory and again got no error. I deleted the file again using the file manger and again no error. I opened nothing as a root window.

    What have I got wrong ? Installing to USB ? Using the DVD edition ? Running the KDE desktop instead of the latest toy ? Or did I just cheat by using the command line ?

    Every release the GUI seems to change and people are all lost, confused or frustrated because the hack they used to use no longer works. Here's me typing in the same kind of thing I did 30 years ago (before there were PCs and stuff) and, "well, knock me down with a feather", it still works.

    Cheers,

  10. #10
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    What have I got wrong ? Installing to USB ? Using the DVD edition ? Running the KDE desktop instead of the latest toy ? Or did I just cheat by using the command line ?
    ... I found the difference - my usb-drive is ext3-formatted.

    I attached an external usb-drive and found in /etc/fstab
    # Added by KNOPPIX
    /dev/sdd2 /media/sdd2 ext3 noauto,users,exec 0 0
    In this case user "knoppix" get error message "Permission denied" if he wants to create files or folders on this partition.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD with Knoppix (Knoppix V6.4.4 remaster)

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Samsung Galaxy Tab A8 10.5

Samsung Galaxy Tab A8 10.5" 64GB Gray Tablet SM-X200NZAZXAR 2022 Model

$74.99



Samsung Galaxy Tab A9+ 11.0

Samsung Galaxy Tab A9+ 11.0" 64GB Gray Wi-Fi Tablet Bundle SM-X210NZAYXAR 2023

$139.99



Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New) picture

Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New)

$115.99



Samsung 990 PRO 2TB PCIe 4.0 NVMe M.2 2280 SSD with Heatsink - Unopened - Ps5 picture

Samsung 990 PRO 2TB PCIe 4.0 NVMe M.2 2280 SSD with Heatsink - Unopened - Ps5

$140.00



Samsung Galaxy Tab A9+ 11'' 4GB RAM 64GB Storage Navy Wi-Fi Tablet picture

Samsung Galaxy Tab A9+ 11'' 4GB RAM 64GB Storage Navy Wi-Fi Tablet

$116.00



OEM Samsung TA845 45W Galaxy S22+ S23 Ultra SUPER FAST Wall Charger  20V - 2amps picture

OEM Samsung TA845 45W Galaxy S22+ S23 Ultra SUPER FAST Wall Charger 20V - 2amps

$9.95



Samsung Reversible USB Type C Flash Drive 512 GB Model MUF-512DA picture

Samsung Reversible USB Type C Flash Drive 512 GB Model MUF-512DA

$50.00



SAMSUNG 32

SAMSUNG 32" Class Curved Full HD (1,920 x 1,080) Monitor - LC32R500FHNXZA

$125.00



Samsung Chromebook 4 - 11.6

Samsung Chromebook 4 - 11.6" (Intel N4020, 4GB, 32GB) XE310XBA-KB2US OpenBox

$99.99



Samsung Galaxy Tab A9+ 11

Samsung Galaxy Tab A9+ 11" 128GB Navy Wi-Fi SM-X210NDBEXAR

$143.00