hard drive not accessible I

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

hard drive not accessible I

Postby rogerdygas » Mon Nov 26, 2012 3:50 pm

I have a goflex net with arch linux arm installed to USB thumb drive and a sata drive connected on one of the top sata ports.

My son removed the hard drive whilst it was turned on, now I can't access the hard drive via samba or pogoplug. I have tried rebooting and repeating the hard drive but no look

The goflex net itself is accessible and has obtained an ip address and the hard drive can be heard spinning up. I have automount enabled.

I suspect the filesystem is damaged, if this is the case how can I repair it without losing the data on it?
rogerdygas
 
Posts: 33
Joined: Mon Oct 08, 2012 4:29 pm

Re: hard drive not accessible I

Postby rogerdygas » Sat Dec 01, 2012 8:13 pm

Does anybody know how to repair the file system?

I.know this forum has lots of knowledge.
rogerdygas
 
Posts: 33
Joined: Mon Oct 08, 2012 4:29 pm

Re: hard drive not accessible I

Postby moonman » Sat Dec 01, 2012 8:52 pm

umount /dev/sdX# if the hdd is mounted
e2fsck /dev/sdX#

assuming that your drive is ext2,3 or 4 and the hard drive wasnt thrown around :)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: hard drive not accessible I

Postby rogerdygas » Sun Dec 02, 2012 5:13 am

Thanks moonman!

The only problem I have not is when I try to SSH It wont acept my password. I am using the username and password as root and root but I get the error "access denied". Does this mean Arch Linux ARM is corupt? Is it possible to repait that without re installing it all again? Is it possible to chnage the SSH password in a text editor on another machine?

Thanks once again moonman for all your previous help.
rogerdygas
 
Posts: 33
Joined: Mon Oct 08, 2012 4:29 pm

Re: hard drive not accessible I

Postby moonman » Sun Dec 02, 2012 5:59 am

Well, download some linux live cd (kubuntu?)
1 Boot it up on your pc
2 Insert your flash drive with alarm
3 Open up terminal
4 run "dmesg | tail" to see what your usb drive is (sda sdb sdc...)
5 run an fs check on it "sudo e2fsck /dev/sdc1" change c to what you found out in the previous step
6 now mount it with "sudo mount /dev/sdc1 /mnt
7 edit the file /etc/shadow that contains the password "sudo nano /mnt/etc/shadow"
8 replace the line with username "root" with this one "root:$1$3h5WisJ4$JbJ/AJORbUw8Mf.LtNVtp/:15286::::::" this will reset the password to default when you installed alarm (root or toor?, can't remember)
9 CTRL+X and answer yes to save the file
10 unmount the usb drive "sudo umount /mnt"
Last edited by moonman on Tue Dec 04, 2012 6:31 am, edited 1 time in total.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: hard drive not accessible I

Postby pepedog » Sun Dec 02, 2012 9:49 am

Maybe he was booting to stock, and password I think is stxadmin
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: hard drive not accessible I

Postby moonman » Sun Dec 02, 2012 9:59 am

I don't think one can boot into stock with goflex. Or at least I can't.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: hard drive not accessible I

Postby pepedog » Sun Dec 02, 2012 12:05 pm

Is there a rescue system?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: hard drive not accessible I

Postby moonman » Sun Dec 02, 2012 12:38 pm

Could be rescue I guess. We will find out when rogerdygas comes back :)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: hard drive not accessible I

Postby rogerdygas » Mon Dec 03, 2012 8:50 pm

Thanks for your help again guys!

I believ im trying to login to archlinux not stock or recovery, nut I cannot be 100% (if it helps putty shows login as: root root@192.168.1.80's password:)

I have tried root and tor but no luck I have edited the line as instructed above but no luck still access denied, I have even tried putting three : instead of all the ones in the line above. I have deleted the whole root line (first one) and replaced it with root:$1$3h5WisJ4$JbJ/AJORbUw8Mf.LtNVtp/:15286:::::: but no luck.

I have double checked changes are saved and have umounted the drive before removing it. After rebooting my goflex net i still get the above error. I have checked again to see if ive saved it correctly by nano after removing and re inserting the flash drive into my laptop.

I notice in the /etc folder there is two shadows one "shadow" and one "shadow-" they apear to be the same file.

PLease help me!!!
rogerdygas
 
Posts: 33
Joined: Mon Oct 08, 2012 4:29 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 12 guests