Boot disk moved from front to back. Fix?

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

Boot disk moved from front to back. Fix?

Postby yazyazoo » Sun Feb 24, 2013 5:59 am

My 3 year old unplugged my boot USB stick from the front to the back. I can no longer boot into Arch. Is there a way to fix this?
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: Boot disk moved from front to back. Fix?

Postby Socaltom » Sun Feb 24, 2013 10:19 am

Put the stick into another Linux box and run fsck on it. If that doesn't work then follow the reinstall instructions on the install page.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Boot disk moved from front to back. Fix?

Postby yazyazoo » Sun Feb 24, 2013 2:47 pm

Thanks for the reply. I am a newb at this. So I could use an Ubuntu Live CD and then what would I look for? The drive should show up and then just type in fsck? Would the command be /sbin/fsck -fy ?

I don't know if I can reinstall because I don't get can't SSH into the Pogo. I haven't tried to SSH with the USB stick not installed.

Thanks
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: Boot disk moved from front to back. Fix?

Postby tedm » Sun Feb 24, 2013 5:29 pm

this *may* work:

once your live cd has loaded, insert your usb stick into the pc, and it will hopefully automount.

bring up a terminal window on the desktop (ctrl-alt-t) and type sudo fsck and follow the prompts, if any.

unmount/eject the usb stick with the file manager on your pc, and put it in the original location it was in, with your pogo powered off. power on your pogo and try to ssh into it. you need to have sshd running on your pogo to be able to ssh into the pogo linux (arch arm), so if you haven't previously installed openssh-server, you would need to do that with pacman. i can't recall how to ssh into the boot-loader, if that's possible at all.


$this->bbcode_second_pass_quote('yazyazoo', 'T')hanks for the reply. I am a newb at this. So I could use an Ubuntu Live CD and then what would I look for? The drive should show up and then just type in fsck? Would the command be /sbin/fsck -fy ?

I don't know if I can reinstall because I don't get can't SSH into the Pogo. I haven't tried to SSH with the USB stick not installed.

Thanks
tedm
 
Posts: 88
Joined: Tue Jan 01, 2013 1:12 am

Re: Boot disk moved from front to back. Fix?

Postby yazyazoo » Wed Feb 27, 2013 7:31 pm

I couldn't get it to work so I wanted to try reinstalling.

I can SSH into the pogoplug but now the prompt is different than the tutorial. I can only login with root and ceadmin.

Before it was -bash3.2# but now it says Pogoplug:~ $ Can I just intall with this ?
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: Boot disk moved from front to back. Fix?

Postby Socaltom » Wed Feb 27, 2013 8:46 pm

you are at the pogoplug prompt. Here are the reinstall instructions once you are at that prompt

$this->bbcode_second_pass_code('', 'cd /tmp')
Start fdisk on the USB drive:
$this->bbcode_second_pass_code('', '/sbin/fdisk /dev/sda')
At the fdisk prompt, delete old partitions and create a new one:
Type o. This will clear out any partitions on the drive.
Type p to list partitions. There should be no partitions left.
Now type n, then p for primary, 1 for the first partition on the drive, and then press ENTER, accepting default values.
Exit by typing w.
Now create the ext3 filesystem:
$this->bbcode_second_pass_code('', 'wget http://archlinuxarm.org/os/pogoplug/mke2fs')
$this->bbcode_second_pass_code('', 'chmod 755 mke2fs')
$this->bbcode_second_pass_code('', './mke2fs -j /dev/sda1')
$this->bbcode_second_pass_code('', 'mkdir /tmp/usb')
$this->bbcode_second_pass_code('', 'mount /dev/sda1 usb')
Download and install Arch Linux ARM:
$this->bbcode_second_pass_code('', 'cd /tmp/usb')
$this->bbcode_second_pass_code('', 'wget http://archlinuxarm.org/os/ArchLinuxARM-armv5te-latest.tar.gz
tar -xzvf ArchLinuxARM-armv5te-*.tar.gz # This will take a long time
rm ArchLinuxARM-armv5te-*.tar.gz
sync # Takes a while when using a flash drive')
Clean up and reboot. Cross your fingers and hope for the best.
$this->bbcode_second_pass_code('', 'cd ..
umount /tmp/usb
/sbin/reboot')
The SSH key of your device will be different, so you need to tell Mac OS X or Linux to remove it from ~/.ssh/known_hosts before using SSH again:
ssh-keygen -R 192.168.1.123 # Use your device's IP
Log back in after your Pogoplug reboots using username root and password root.
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Boot disk moved from front to back. Fix?

Postby yazyazoo » Wed Feb 27, 2013 10:47 pm

Thanks for the information!! I will try it tonight.

As a side note as I was researching on how to fix this I read a few threads where they said that your ArchLinux USB install stick should be on the back closest to the power and ethernet cords. Is this location needed or can I install on the front USB port?
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: Boot disk moved from front to back. Fix?

Postby Socaltom » Thu Feb 28, 2013 2:20 am

On a V2 plug it should be fine anywhere.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Boot disk moved from front to back. Fix?

Postby yazyazoo » Fri Mar 01, 2013 4:22 am

Tried to use the commands. I can SSH into Pogoplug and get that prompt. However if I put the USB Stick in and type /sbin/fdisk /dev/sda I get an error.

I tried to reboot the Pogo with the USB stick already in but I can't SSH into the Pogoplug anymore.

Any reason why?
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: Boot disk moved from front to back. Fix?

Postby yazyazoo » Fri Mar 01, 2013 5:55 am

Got it to work. Thanks SocalTom
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 7 guests