General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Aug 23, 2017 5:20 pm

All times are UTC




Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
PostPosted: Mon Aug 11, 2014 8:24 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
If your keys are setup properly, you should be able to login using
Code:
ssh -i /path/to/private/key root@<ip-of-nas>

Maybe you'll have to connect at port 2222:[code]ssh -i /path/to/private/key -p 2222 root@<ip-of-nas>


Top
 Profile  
 
PostPosted: Sun Nov 02, 2014 10:39 pm 
Offline

Joined: Sun Mar 17, 2013 4:08 pm
Posts: 5
Mijzelf wrote:
If your keys are setup properly, you should be able to login using[code]ssh -i /path/to/private/key root@<ip-of-nas>

Hi!

This helped me. Could not get a accepted SSH connection, this worked. Thanks!


Top
 Profile  
 
PostPosted: Fri Nov 14, 2014 5:36 pm 
Offline

Joined: Fri Nov 14, 2014 5:20 pm
Posts: 1
Hey all,

My NS2 died on me and after googling I came to this forum.

I had a spare 2TB Hitachi laying around so I decided to work with that. I tried using the scrip that was provided on page one and I get this output:

Code:
root@ubuntu:/home/ubuntu/Downloads# ./reformat_ns2.sh /dev/sda1
Installing mbr
--------------
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0168714 s, 30.3 kB/s
 -> DONE
Formatting HD (1/2)
-------------------
Warning: ignoring extra data in partition table 5
Warning: invalid flag 0x0000 of partition table 5 will be corrected by w(rite)
 -> DONE
Formatting HD (2/2)
-------------------
 -> DONE
HD formatted!
-------------

Command (m for help):
Disk /dev/sda1: 2000.4 GB, 2000398932992 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029166 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9b7e53f1

     Device Boot      Start         End      Blocks   Id  System
/dev/sda1p1              63     4016249     2008093+   5  Extended
/dev/sda1p2         4016250  2147615229  1071799490   83  Linux
/dev/sda1p5      2147615230  4261413820  1056899295+  bf  Solaris
/dev/sda1p6            2111     4016249     2007069+  83  Linux

Partition table entries are not in disk order

Command (m for help):
Downloading partition images
----------------------------
--2014-11-14 17:26:44--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda6.gz
Resolving downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)... 140.211.169.172
Connecting to downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1900733 (1.8M) [application/octet-stream]
Saving to: `sda6.gz.1'

100%[============================================================>] 1,900,733    358K/s   in 7.4s   

2014-11-14 17:26:52 (253 KB/s) - `sda6.gz.1' saved [1900733/1900733]

--2014-11-14 17:26:52--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda7.gz
Resolving downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)... 140.211.169.172
Connecting to downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2241981 (2.1M) [application/octet-stream]
Saving to: `sda7.gz.1'

100%[============================================================>] 2,241,981    477K/s   in 5.6s   

2014-11-14 17:26:58 (392 KB/s) - `sda7.gz.1' saved [2241981/2241981]

--2014-11-14 17:26:58--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda8.gz
Resolving downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)... 140.211.169.172
Connecting to downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 75268409 (72M) [application/octet-stream]
Saving to: `sda8.gz.1'

100%[============================================================>] 75,268,409   762K/s   in 72s     

2014-11-14 17:28:11 (1020 KB/s) - `sda8.gz.1' saved [75268409/75268409]

--2014-11-14 17:28:11--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda9.gz
Resolving downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)... 140.211.169.172
Connecting to downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3308955 (3.2M) [application/octet-stream]
Saving to: `sda9.gz.1'

100%[============================================================>] 3,308,955    548K/s   in 7.2s   

2014-11-14 17:28:19 (447 KB/s) - `sda9.gz.1' saved [3308955/3308955]

--2014-11-14 17:28:19--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda10.gz
Resolving downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)... 140.211.169.172
Connecting to downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8010 (7.8K) [application/octet-stream]
Saving to: `sda10.gz.1'

100%[============================================================>] 8,010       --.-K/s   in 0s     

2014-11-14 17:28:20 (25.9 MB/s) - `sda10.gz.1' saved [8010/8010]

 -> DONE
Installing partition images
---------------------------
16002+0 records in
16002+0 records out
8193024 bytes (8.2 MB) copied, 0.0680869 s, 120 MB/s
16002+0 records in
16002+0 records out
8193024 bytes (8.2 MB) copied, 0.103786 s, 78.9 MB/s
1702827+0 records in
1702827+0 records out
871847424 bytes (872 MB) copied, 8.65502 s, 101 MB/s
dd: writing to `/dev/sda19': No space left on device
311769+0 records in
311768+0 records out
159625216 bytes (160 MB) copied, 2.47555 s, 64.5 MB/s
dd: writing to `/dev/sda110': No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00319203 s, 0.0 kB/s
 -> DONE
Make swap partition
-------------------
/dev/sda15: No such file or directory
 -> DONE
Format partition 2
------------------
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xfsprogs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/dev/sda12: No such file or directory
Usage: mkfs.xfs
/* blocksize */      [-b log=n|size=num]
/* data subvol */   [-d agcount=n,agsize=n,file,name=xxx,size=num,
             (sunit=value,swidth=value|su=num,sw=num),
             sectlog=n|sectsize=num
/* inode size */   [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2,
             projid32bit=0|1]
/* log subvol */   [-l agnum=n,internal,size=num,logdev=xxx,version=n
             sunit=value|su=num,sectlog=n|sectsize=num,
             lazy-count=0|1]
/* label */      [-L label (maximum 12 characters)]
/* naming */      [-n log=n|size=num,version=2|ci]
/* prototype file */   [-p fname]
/* quiet */      [-q]
/* realtime subvol */   [-r extsize=num,size=num,rtdev=xxx]
/* sectorsize */   [-s log=n|size=num]
/* version */      [-V]
         devicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).
 -> DONE



Afterwards the partition table looks like this

Code:
root@ubuntu:/home/ubuntu/Downloads# fdisk /dev/sda1

Command (m for help): p

Disk /dev/sda1: 2000.4 GB, 2000398932992 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029166 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9b7e53f1

     Device Boot      Start         End      Blocks   Id  System
/dev/sda1p1              63     4016249     2008093+   5  Extended
/dev/sda1p2         4016250  2147615229  1071799490   83  Linux
/dev/sda1p5      2147615230  4261413820  1056899295+  bf  Solaris
/dev/sda1p6            2111     4016249     2007069+  83  Linux

Partition table entries are not in disk order



So obviously something went wrong, but I have no idea what, nor do I have to skill by myself to fix it.

When I try to do the manual method froma fully wiped drive I do notice that my first sector starts at 63 (as you can see in the previous output). I found this particular.

I was hoping someone could help me out :)


Top
 Profile  
 
PostPosted: Fri Nov 14, 2014 8:30 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
kouyio wrote:
Code:
ubuntu:~# fdisk /dev/sda
<snip>
Units = cylinders of 16065 * 512 = 8225280 bytes

aardvarken wrote:
Code:
root@ubuntu:/home/ubuntu/Downloads# fdisk /dev/sda1
<snip>
Units = sectors of 1 * 512 = 512 bytes
Somewhere in the past the default unit of fdisk changed from cylinder to sector. You can change that behaviour by starting
Code:
fdisk -u


Top
 Profile  
 
PostPosted: Sun Sep 20, 2015 2:32 pm 
Offline

Joined: Wed Jun 01, 2011 12:13 pm
Posts: 15
Hi guys,

really need help.
I followed this tutorial, http://lacie.nas-central.org/wiki/Insta ... space_2%29, and created all partitions ok
Then I reset the Lacie because blue light didnt stop blinking
After that I enter into the Laci with browers access, and Lacie ask me the name for device, new password, ntp server, everything to initialize the first configuration.
But when I press the finish button it comes with an error:

"20/09/2015, 15:23:01
A problem occurred when initializing your device.
Please try again.
If NTP is selected but server is unreachable, this error can occur."

I have then take off the HDD connect it to a ubuntu livecd, and execute this (last part of first tutorial):

mkfs.xfs /dev/sda2 -f
rm /etc/unicorn.db
reboot

I did the first line because I couldn't find the unicorn.db file to rm!

Any ideas on what could be missing?

btw the hdd is a 1tb hitachi


Top
 Profile  
 
PostPosted: Tue Mar 08, 2016 4:38 pm 
Offline

Joined: Tue Mar 08, 2016 12:11 pm
Posts: 2
I have the newer Network Space 2 (Classic) which I believe had v2 firmware, my 1TB drive failed due to overheating during the hot summer months and I have try to rebuild it using a new 1TB drive using all the methods and v.1.x firmware found in this forum but have failed.

I used all the below links to try and rebuild my unit but with no luck.

http://lacie.nas-central.org/wiki/Insta ... space_2%29
http://mikkovuorela.com/blog/computers/ ... k-space-2/

I kept getting problems with DD on sda8 and sda9 (not enough space)

I will very grateful if someone can come to my rescue ....this is nice little NAS box, I'd hate to see it ending up in the landfill :cry:

Thanks,


Top
 Profile  
 
PostPosted: Tue Aug 15, 2017 8:34 am 
Offline

Joined: Tue Aug 15, 2017 8:30 am
Posts: 1
Mijzelf wrote:
You need a keypair to be able to login a root, without knowing the root password: ssh-keygen: password-less SSH login


I did all the steps, and the partitions were created without any problem.
The NAS shows up in the network, and the normal login screen is opened, but it doesn't see the HDD.
So I guess I need to format the HDD as mentioned in the Wiki manual with the unicorn.db part.

Added the ssh-keygen stuff, also altered the ssh config file to allow access, and to allow "root" login.
Now I want to login using Putty (on Windows), but it still asks me for a password ?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


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