Pogoplug V2 not booting when external drive plugged in

Ask questions about Arch Linux ARM. Please search before making a new topic.

Pogoplug V2 not booting when external drive plugged in

Postby Mewit » Sun Sep 02, 2012 11:13 pm

Hi there,
I've successfully mounted an external harddrive on my pogoplug but it doesn't seem to reboot while it's plugged in. I figure it doesn't know which USB drive to try and boot from. Is that correct? How do I fix this?

Thanks a lot,
Alex
Mewit
 
Posts: 6
Joined: Mon Aug 27, 2012 6:04 am

Re: Pogoplug V2 not booting when external drive plugged in

Postby Socaltom » Tue Sep 04, 2012 4:08 am

Did you follow the install guide?

What is it booted to when it mounts the drive?
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: Pogoplug V2 not booting when external drive plugged in

Postby Mewit » Tue Sep 04, 2012 4:20 pm

Yes I followed the guide and it seemed to work fine. The guide says to only connect the boot disk when setting it up though, so this problem (with the external harddrive) didn't start until I threw that into the mix.

I'm not sure what you mean by "what is it booted to when it mounts the drive". My root drive or whatever is all installed on a thumb drive, which it boots off of normally when I don't attach the external harddrive. When I do mount the external harddrive (sdb1) it works fine until I reboot when it will just sit there, light on but nobody home (apparently). At least it doesn't connect to the network so I have no way to ssh into it.

I thought the problem was that when I mounted the harddrive I didn't tell the system it's not a boot disk, and for whatever reason it has a higher priority than the thumb drive so it's trying to boot from the wrong place. Is that not what's going on? I'm new to Linux, so the problem may be something very basic.

Thanks a lot,
Alex
Mewit
 
Posts: 6
Joined: Mon Aug 27, 2012 6:04 am

Re: Pogoplug V2 not booting when external drive plugged in

Postby hydro » Wed Sep 05, 2012 12:28 pm

$this->bbcode_second_pass_quote('Mewit', '
')I thought the problem was that when I mounted the harddrive I didn't tell the system it's not a boot disk, and for whatever reason it has a higher priority than the thumb drive so it's trying to boot from the wrong place.

I don't think U-Boot is trying to boot from the hard drive. If the USB port the hard drive is attached to has a higher priority, but the hard drive does not contain /boot/uImage in its first partition or its filesystem is not supported by U-Boot, it will continue to try to boot from the thumb drive, telling the kernel "your root filesystem is on the second storage device". But if U-Boot does not detect the hard drive as a storage device at all, it will tell the kernel to mount the first storage device instead, which from the point of view of the kernel may be the hard drive.
Easiest way to fix is probably to switch USB-Ports (while shut down). Or enable netconsole to find out what is going on.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Pogoplug V2 not booting when external drive plugged in

Postby Mewit » Sat Sep 08, 2012 8:34 pm

Thank you! Should have thought of switching which USB was plugged in where before, that did fix it. I can now reboot the pogplug remotely, but I still have to mount the harddrive manually each time using
ntfs-3g /dev/sdb1 /mnt/ftp
(Note I use ntfs-3g rather than normal mount because it's ntfs formatted).

Is it possible for me to make this mount to that folder automatically on each startup? I was trying to follow from here: https://wiki.archlinux.org/index.php/Ud ... SB_devices

But it almost seems like that stuff is just for plug and play type popups on a GUI system, which I'm not using. Isn't there some way I could just make it run a script to mount the harddrive in the same place every time I boot the system?

Thanks again,
Alex
Mewit
 
Posts: 6
Joined: Mon Aug 27, 2012 6:04 am

Re: Pogoplug V2 not booting when external drive plugged in

Postby hydro » Sun Sep 09, 2012 8:20 am

$this->bbcode_second_pass_quote('Mewit', 'I')sn't there some way I could just make it run a script to mount the harddrive in the same place every time I boot the system?

Of course, add a line to /etc/fstab, some examples here. Consider using UUID or LABEL instead of /dev/sdb1. Make sure it works before rebooting: run mount with only one argument (mountpoint or device) or mount -a.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany


Return to User Questions

Who is online

Users browsing this forum: No registered users and 7 guests