Step by step guide to restore EDmin v1 Partition

Ethernet disk mini & Ethernet disk mini home edition
mtrok2
Posts: 25
Joined: Sat Sep 11, 2010 3:56 pm

Re: Step by step guide to restore EDmin v1 Partition

Post by mtrok2 » Sat Sep 24, 2011 4:27 pm

cwillems wrote:I did put in labels and will leave them out in the next attempt.
However, I am not able to fit those partitions in the extended partition, because I'm only able to create partitions with rounded MiB's.
e.g. When I create an 8 MiB partition it remains 8MiB and not 7.81
Is this a setting in gparted?
I do not remember correctly, but I remember that I was able to create those partition in gparted. I do not have a Linux in front of me write now, but once I do I will look into it.

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Step by step guide to restore EDmin v1 Partition

Post by Mijzelf » Sat Sep 24, 2011 5:05 pm

I think you should first write MBR, and then use gparted (or fdisk) to create the partitions. If you do it the other way around, you'll overwrite the partition table created by gparted.

If you cannot create partitions of the right size, just make them a bit bigger.

cwillems
Posts: 14
Joined: Sat Sep 24, 2011 10:27 am

Re: Step by step guide to restore EDmin v1 Partition

Post by cwillems » Sun Sep 25, 2011 10:29 am

I have done as you proposed. I first wrote the mbr back to the disk. Then used gparted to create partitions.
Which partition table type did you write to the disk, msdos?
Then I created the oversized partitions in the following order sdc1, sdc2, sdc3, then inside sdc1 first create temp sdc4 at the the end of the extended partition and then created sdc5, removed temp sdc4, then created sdc6, sdc7 and sdc8
I wrote all the images to disk and can now for the first time see files sdc7, sdc8 and empty sdc3. So I guess one of the problems was indeed the size of the partitions.
However, it is not exactly like your gparted-image; e.g. the linux-swap (sdc5) is not unknown and the flags are not there. Also when I hook the drive up to the lacie hardware and attach it to my pc via usb, I do not see the files in the USB-logon the way I used to.
Any ideas on what is going wrong?
One thing that I do not really understand from reading the whole post is that there seems to be a part missing from the fat32 davyk image, yet the additional part needs to be written to /dev/sdb and not /dev/sdb2, is this correct?

by the way thanks guys, I really appreciate your effort
You do not have the required permissions to view the files attached to this post.

mtrok2
Posts: 25
Joined: Sat Sep 11, 2010 3:56 pm

Re: Step by step guide to restore EDmin v1 Partition

Post by mtrok2 » Mon Sep 26, 2011 6:32 pm

Ok I had a problem with gparted this time I will have to change my first post, but here is another solution.

Open the terminal console
write the following commend

Sudo -i

enter your password

than write

sudo fdisk /dev/sdc


enter u

enter o

enter n

enter e

enter 1

enter first sector 63

enter last sector 498014

enter n

choose l

enter first sector 126

enter last sector 257039

enter n

choose l

enter first sector 257103

enter last sector 273104

enter n

choose l

enter first sector 273168

enter last sector 481949


enter n

choose l

enter first sector 482013

enter last sector 498014

enter n

choose p

select 2

enter first sector 498015

enter last sector 771119

enter w

now open gparted you will see that you have the right partition sizes as the image in the first post

and you will see all partitions inside the extended partition with black color

right click on sdc5 and choose format to linux swap

right click on sdc6 and choose format to ext3

right click on sdc7 and choose format to ext3

right click on sdc8 and choose format to ext3

right click on sdc2 and choose format to fat32

create sdc3 as fat32 with the unallocated space

click apply

right click on sdc2 and sdc3 and select mange flags and select lba

than download davyk images and extract all files

5. Use "dd" command to write those images to partitions sdc6, sdc7, sdc8, and sdc2 which you just created using this command:

Code: Select all

dd if=/dev/home/Linux native Volume 2.img of=/dev/sdc6 bs=512

dd if=/dev/home/Linux native Volume 3.img of=/dev/sdc7 bs=512

dd if=/dev/home/Linux native Volume 4.img of=/dev/sdc8 bs=512

dd if=/dev/home/FAT 32 Volume 1.img of=/dev/sdc2 bs=512
6. write the MBR image to disk using this command

Code: Select all

Code:dd if=/home/mbr of=/dev/sdc bs=30720 count=1

7. Substitute /home/ above for the location where you placed the image files. Substitute sdc to match your hardisk.

8. Once all images have been written, check gparted to see sdb5,sdb6, and sdb2 are black and the image resumable the image in the first post.

I just tried it and it work fine
Good luck
Last edited by mtrok2 on Thu Sep 29, 2011 6:52 am, edited 1 time in total.

cwillems
Posts: 14
Joined: Sat Sep 24, 2011 10:27 am

Re: Step by step guide to restore EDmin v1 Partition

Post by cwillems » Wed Sep 28, 2011 6:56 pm

That worked like a charm mtrok2!!!
Now a new bump:
When I did all these steps, I saw my sdc3 was 3.65Gib just like yours.
i used gparted to grow that partition to use the full disk and got an error. After that I re-formatted sdc3 to fat32 and proceeded by attaching it to the lacie hardware and to my pc via usb.
The login was there again all of a sudden, however after double clicking it said device not found in the device setting.

Do you think this has anything to do with the problems with sdc3?
You do not have the required permissions to view the files attached to this post.

cwillems
Posts: 14
Joined: Sat Sep 24, 2011 10:27 am

Re: Step by step guide to restore EDmin v1 Partition

Post by cwillems » Wed Sep 28, 2011 7:33 pm

never mind about the device not found, that seems to be a linux thing.
In windows it does work and I can change settings and log in.
However, i'm not able to approach it from the network. Does neither request ip from router nor is it approachable when the network settings are given in the advanced tab. Any ideas on this one?

cwillems
Posts: 14
Joined: Sat Sep 24, 2011 10:27 am

Re: Step by step guide to restore EDmin v1 Partition

Post by cwillems » Wed Sep 28, 2011 10:06 pm

Ok I've tried several things. Growing sdc3 error was just the one time, now I can do that fine.
On the preliminary test-hdd I'm able to use the usb connection and log on to the data partition.
However, I cannot reach the edmini over the network, neither via login page nor ping and neither with router nor crosslink cable and neither with dhcp nor manual setting.
Additionally the data on the ext3 partitions cannot be read, while they could be read previously with the oversized partitions. Although I'm not sure which of the two is normal.
Also I seem to remember that the drive used to take some time to power down after pressing the power switch while it powers down immediately now. Could it be that the linux partitions are not loaded, for instance because they cannot be read?

mtrok2
Posts: 25
Joined: Sat Sep 11, 2010 3:56 pm

Re: Step by step guide to restore EDmin v1 Partition

Post by mtrok2 » Thu Sep 29, 2011 6:47 am

I think you are almost there. The drive should power immediately if it connected via USB that's normal, however if you connect it via network the drive should take some time to power down. In the case of ext3 partitions cannot be read, you should be able to mount sdc7 and 8 and read it, but not sdc6. To connect it to network you will need to run Edmini connection wizard or what ever it's name. You can download that from Lacie website. If that does not work you can mount sdc8 and change the network setting to match your network please see below for how to do that. If you do that and still does not work than there is something wrong.

mount sdc8 and go to the following files and make the necessary changes to match your network

Code: Select all

/etc/hosts
127.0.0.1      localhost.loacaldomain   localhost
192.168.1.10   EDmini

Code: Select all

/etc/resolv.conf
#search home
#nameserver 192.168.1.1
nameserver 192.168.1.1

Code: Select all

/etc/samba/smb.conf
[global]
workgroup = mtrok2

Code: Select all

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=EDmini
WORKGROUP=mtrok2
WINS=

Code: Select all

/etc/sysconfig/network-devices/ifconfig.eth0
ONBOOT=yes
#SERVICE=udhcpc
SERVICE=static
IP=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168..1
BROADCAST=192.168.1.255

cwillems
Posts: 14
Joined: Sat Sep 24, 2011 10:27 am

Re: Step by step guide to restore EDmin v1 Partition

Post by cwillems » Thu Sep 29, 2011 1:23 pm

Ok, close but no cigar yet.
So what I read from this is that my EDmini does not boot from the linux partitions.
And since I'm unable to mount sdc7 or sdc8 I think the problem should lie there somewhere.
I can remember that previously, when the partitions were oversized, I was able to mount them and read files correctly.
Any ideas? Could you check if the sizes set by sectors in one of your previous posts are correct?

Cheers

mtrok2
Posts: 25
Joined: Sat Sep 11, 2010 3:56 pm

Re: Step by step guide to restore EDmin v1 Partition

Post by mtrok2 » Thu Sep 29, 2011 2:11 pm

I checked all the sector sizes and they were ok, your problems now is with sdc7 and 8 since they are not readable so edmini can not boot the Linux partitions.

Execute the following command to check the sectors of your disk

Code: Select all

fdisk -ul
you should see all the sector and match them with the following, also try formatting sdc 7 and 8 to ext3 and write the image of linux native volume 3 to sdc 7 and linux native volume 4 to sdc 8 and check them if their color is black and they do not mount than they are not usable.


Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 63 498014 248976 5 Extended
/dev/sdc2 498015 771119 136552+ c W95 FAT32 (LBA)
/dev/sdc3 771120 488397167 243813024 c W95 FAT32 (LBA)
/dev/sdc5 126 257039 128457 82 Linux swap
/dev/sdc6 257103 273104 8001 83 Linux
/dev/sdc7 273168 481949 104391 83 Linux
/dev/sdc8 482013 498014 8001 83 Linux

mtrok2
Posts: 25
Joined: Sat Sep 11, 2010 3:56 pm

Re: Step by step guide to restore EDmin v1 Partition

Post by mtrok2 » Thu Sep 29, 2011 2:26 pm

by the way I did write the images to sdc7 and 8 right now and I can mount them with no problem.

cwillems
Posts: 14
Joined: Sat Sep 24, 2011 10:27 am

Re: Step by step guide to restore EDmin v1 Partition

Post by cwillems » Fri Sep 30, 2011 9:10 pm

I've tried the things you suggested.
-The drive is partitioned ok
-I can mount the sdc7 and sdc8
-I changed the ip-settings manually like you said
-I used IPConfigurator

USB connection works flawlessly, but unfortunately the EDmini can not be accessed via UTP.
Also the power down from when it is in "network"-mode is immediate.

Any ideas on what could cause this?

mtrok2
Posts: 25
Joined: Sat Sep 11, 2010 3:56 pm

Re: Step by step guide to restore EDmin v1 Partition

Post by mtrok2 » Sat Oct 01, 2011 5:25 pm

cwillems wrote:I've tried the things you suggested.
-The drive is partitioned ok
-I can mount the sdc7 and sdc8
-I changed the ip-settings manually like you said
-I used IPConfigurator

USB connection works flawlessly, but unfortunately the EDmini can not be accessed via UTP.
Also the power down from when it is in "network"-mode is immediate.

Any ideas on what could cause this?
I am not sure why is that happening, but my guess would be that your Linux partition is not booting since it power down immediately. Maybe the problem now is with sdc6 which I believe is responsible for the boot or there is something wrong with the board. I will also try to upload the images from my disk for you to try instead of davyk which might be corrupted.

cwillems
Posts: 14
Joined: Sat Sep 24, 2011 10:27 am

Re: Step by step guide to restore EDmin v1 Partition

Post by cwillems » Tue Oct 04, 2011 2:17 pm

Dear mtrok2,

did you already upload those images? If so, where can I find them?
Is there any way to test the hardware/board?

Cheers

mtrok2
Posts: 25
Joined: Sat Sep 11, 2010 3:56 pm

Re: Step by step guide to restore EDmin v1 Partition

Post by mtrok2 » Tue Oct 04, 2011 3:20 pm

here is the link for the files that I have backup and used to restore my Edmini https://rapidshare.com/files/2301859621/Edmini-img.7z. I am not sure how to test the board, maybe someone else can help.

Post Reply