General NAS-Central Forums

Welcome to the NAS community
It is currently Mon Aug 21, 2017 1:49 pm

All times are UTC




Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Sat Sep 24, 2011 4:27 pm 
Offline

Joined: Sat Sep 11, 2010 3:56 pm
Posts: 25
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.


Top
 Profile  
 
PostPosted: Sat Sep 24, 2011 5:05 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6022
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.


Top
 Profile  
 
PostPosted: Sun Sep 25, 2011 10:29 am 
Offline

Joined: Sat Sep 24, 2011 10:27 am
Posts: 14
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.


Top
 Profile  
 
PostPosted: Mon Sep 26, 2011 6:32 pm 
Offline

Joined: Sat Sep 11, 2010 3:56 pm
Posts: 25
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:
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:
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.

Top
 Profile  
 
PostPosted: Wed Sep 28, 2011 6:56 pm 
Offline

Joined: Sat Sep 24, 2011 10:27 am
Posts: 14
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.


Top
 Profile  
 
PostPosted: Wed Sep 28, 2011 7:33 pm 
Offline

Joined: Sat Sep 24, 2011 10:27 am
Posts: 14
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?


Top
 Profile  
 
PostPosted: Wed Sep 28, 2011 10:06 pm 
Offline

Joined: Sat Sep 24, 2011 10:27 am
Posts: 14
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?


Top
 Profile  
 
PostPosted: Thu Sep 29, 2011 6:47 am 
Offline

Joined: Sat Sep 11, 2010 3:56 pm
Posts: 25
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:
/etc/hosts
127.0.0.1      localhost.loacaldomain   localhost
192.168.1.10   EDmini


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


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



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


Code:
/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


Top
 Profile  
 
PostPosted: Thu Sep 29, 2011 1:23 pm 
Offline

Joined: Sat Sep 24, 2011 10:27 am
Posts: 14
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


Top
 Profile  
 
PostPosted: Thu Sep 29, 2011 2:11 pm 
Offline

Joined: Sat Sep 11, 2010 3:56 pm
Posts: 25
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:
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


Top
 Profile  
 
PostPosted: Thu Sep 29, 2011 2:26 pm 
Offline

Joined: Sat Sep 11, 2010 3:56 pm
Posts: 25
by the way I did write the images to sdc7 and 8 right now and I can mount them with no problem.


Top
 Profile  
 
PostPosted: Fri Sep 30, 2011 9:10 pm 
Offline

Joined: Sat Sep 24, 2011 10:27 am
Posts: 14
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?


Top
 Profile  
 
PostPosted: Sat Oct 01, 2011 5:25 pm 
Offline

Joined: Sat Sep 11, 2010 3:56 pm
Posts: 25
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.


Top
 Profile  
 
PostPosted: Tue Oct 04, 2011 2:17 pm 
Offline

Joined: Sat Sep 24, 2011 10:27 am
Posts: 14
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


Top
 Profile  
 
PostPosted: Tue Oct 04, 2011 3:20 pm 
Offline

Joined: Sat Sep 11, 2010 3:56 pm
Posts: 25
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group