Eben King wrote:
> On Tue, 2 Aug 2005, Chuck Hast wrote:
>
>>On 8/2/05, Eben King <eben1@tampabay.rr.com> wrote:
>>>On Tue, 2 Aug 2005, Chuck Hast wrote:
>>>
>>>>On 8/2/05, Levi Bard <taktaktaktaktaktaktaktaktaktak@gmail.com> wrote:
>>>>>>Any recommendations, I need to suck all of this stuff off of the HD onto
>>>>>>the new HD and at least Linux will let me get in there (windows just
>>>>>>grins and says 'yea right!'.
>>>>>>
>>>>>>All I want to be able to do is set all on the disk read only for others
>>>>>>besides root so I can start the process of copying it off.
>>>>>Why not copy it first and fix the permissions later? Or am I misunderstanding?
>>>>When I try to copy it over it says I do not have permission to do so, only
>>>>root (the samba piece under the Mepis CD is started up under DEMO)
>>>Why is Samba involved? So mean Samba is running as the user "DEMO"
>>>(all-caps username? are you sure?), and only root has permission to do
>>>whatever you're trying to do?
>>>
>>>If you have scratch space at least as big as the dying drive, I recommend
>>>something like
>>>
>>>cat /dev/hd$OLD_DRIVE > new_drive/old_drive.img
>>>
>>>and deal with it later. Less messy to use (but more work to make) is
>>>
>>>cat /dev/hd$OLD_DRIVE1 > new_drive/old_drive_p1.img
>>>cat /dev/hd$OLD_DRIVE2 > new_drive/old_drive_p2.img
>>>etc.
>>>
>>>That way you have the malfunctioning drive spinning for as short a time as
>>>possible. I've done this through an SSH connection, but it's much easier
>>>and faster to do locally. I don't know what to do with the image(s) under
>>>Windows.
>>>
>>The windows one is the one I am trying to save, the SuSE one has data
>>on it and I am not worried about getting it, I have already moved all of the
>>real important stuff.
>>
>>But I need to get all of the windows stuff off so I can get it on the new
>>windows machine. That is what I am trying to do is move it to that
>>machine has I have plenty of space to do so.
>>
>>There is about 15G that I need to move, and I have 33G of free space on the
>>machine. I was trying to use smb in order to talk to the windows box and try
>>to move the files to it. I was trying the different live CD's to try
>>to get the thing
>>setup.
>
> OK. Assuming:
> - dying machine is "A"
> - temporary host ("B") runs Linux (a LiveCD is OK as long as you can
> SSH into it
> - the free space is on some Linux-writable filesystem
> - A's Windows partition is /dev/hda1,
> - which is NOT mounted
>
> from A, booted from some LiveCD (you'll be root in both places):
> ssh -e none B 'cat - > free_space/windows.img' < /dev/hda1
>
> I think that since ">" is inside '' it's safe. If not, escape it with "\".
>
> When that's done free_space/windows.img is on B. Where do you want it?
Assuming both hosts are on a trusted lan you can avoid the ssh encryption
overhead by using dd and netcat (nc). Something like:
temporary host: nc –l –p <port> –w 3 > free_space/windows.img
machine A: dd if=/dev/hda1 | nc <temporary host ip> <port>
(making sure that firewalls don't block the ports involved)
I did this once and it seemed to work (fsck.vfat on the copied partition was
ok). Got the idea from
http://www.laportestyle.org/tutorials/ghostinthemachine.php.
-- Mark Polhamus
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:39:33 EDT