Cloned system drive, kicked out of SSH

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Cloned system drive, kicked out of SSH

Postby igor » Thu Sep 22, 2011 8:39 pm

Hi,

I just cloned my 2GB USB stick that I am using as system drive. The new stick seams to be working fine except one thing. I am not able to ssh to the device any longer. When I ssh I get the welcome banner and password prompt but as soon as I enter my password I get kicked out.
I am able to run remote commands via SSH. I have tried changing to another shell but no change.
As far as I know the two sticks should be identical, but when I try my first stick again everything works like before.

What's going on??
igor
 
Posts: 7
Joined: Mon Sep 19, 2011 11:46 am

Re: Cloned system drive, kicked out of SSH

Postby igor » Fri Sep 23, 2011 5:34 am

The date is correct on the device. The device is a Seagate GoFlex Net. Went from a 2 GB stick to another 2 GB stick.
igor
 
Posts: 7
Joined: Mon Sep 19, 2011 11:46 am

Re: Cloned system drive, kicked out of SSH

Postby pepedog » Fri Sep 23, 2011 12:05 pm

How did you clone? dd/cp/rsync
Show us the command you used please
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cloned system drive, kicked out of SSH

Postby igor » Fri Sep 23, 2011 12:39 pm

Used this command:
dd if=/dev/sdb of=/dev/sdc conv=notrunc

but with my drives instead.
igor
 
Posts: 7
Joined: Mon Sep 19, 2011 11:46 am

Re: Cloned system drive, kicked out of SSH

Postby xenoxaos » Fri Sep 23, 2011 4:07 pm

What I would try would be to reformat the new flash drive and cp the files over. $this->bbcode_second_pass_code('', 'cp -aR /media/sdb1/* /media/sdc1/') Give that a whirl and see what happens. Of course, use mount points that corresponds to your media.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Cloned system drive, kicked out of SSH

Postby WarheadsSE » Fri Sep 23, 2011 4:10 pm

Also, cloning this from a live file system might not be the best idea.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cloned system drive, kicked out of SSH

Postby xenoxaos » Fri Sep 23, 2011 4:30 pm

Especially when dd is involved...
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Cloned system drive, kicked out of SSH

Postby igor » Fri Sep 23, 2011 9:12 pm

The filesystem wasn't mounted. Thinking it might be something with the target drive not being the same 2GB as the source was, meaning it might have been a bit smaller.. Don't know, but I'll give cp a try and if that doesn't work I'm getting a new 4 GB stick and installing fresh on that one instead.
Also thought about doing dd to a file first and then to the target from that file, don't know if that would change anything?

But still, if there's something on the drive that gets corrupted, what are the chances that is has to do with just shell or tty access??
igor
 
Posts: 7
Joined: Mon Sep 19, 2011 11:46 am

Re: Cloned system drive, kicked out of SSH

Postby slycat » Sat Sep 24, 2011 4:03 am

Heres my method
$this->bbcode_second_pass_code('', '##This is done on the plug itself
##cd to the drive you want to back it up to (mine is /media/Harddrive/backups/)
tar -cvpzf POGO$DA.tgz --exclude=/media --exclude=/proc --exclude=/lost+found \
--exclude=/sys --exclude=/dev --exclude=/mnt /
##$DA is the `date +%m%d%y')

I've been doing this roughly every weekend for peace-of-mind via crontab. I had to (once) use the backups. Simply connected the drives (rootfs drive and the drive with the backup POGO.tgz) to a linux box, reformat the rootfs drive, and unpack the .tgz into the newly wiped drive. Afterwards you have to create the excluded folders (mkdir /media /proc /sys ..etc.)
All worked fine. This is the same process suggested for other distro backups so I figured why not for my plug?
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Cloned system drive, kicked out of SSH

Postby igor » Mon Sep 26, 2011 6:48 am

I'll give that a try and see what happens.
igor
 
Posts: 7
Joined: Mon Sep 19, 2011 11:46 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests