General NAS-Central Forums

Welcome to the NAS community
It is currently Thu Mar 23, 2017 6:10 am

All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Installing Debian
PostPosted: Wed Nov 30, 2011 8:31 pm 
Offline

Joined: Mon Nov 28, 2011 12:55 pm
Posts: 11
and can u help me plz and guide me how to put debian on it?


Top
 Profile  
 
PostPosted: Thu Dec 01, 2011 6:55 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5958
OK, I'll try.

The bootloader in flash (u-boot) loads the kernel from sda6 (uImage), and starts it. The kernel gets a commandline passed which tells to mount sda7 as rootfs, read only.
So to boot Debian you basically have to provide a suitable kernel in sda6, and a Debian rootfs in sda7.

Connect one of the disks to a Linux PC, find the right devicename by executing
Code:
cat /proc/partitions

I'll assume it's sdb.
Use fdisk to create an extended partition of, lets say, 6GB.
Code:
fdisk /dev/sdb
(If the disk isn't empty, first delete all partitions)
Then create logical partitions,
1st (sdb5) 512MB, type swap.
2nd (sdb6) 8MB type raw (if such a type exists. It doesn't really matter).
3nd (sdb7) 4GB type linux.

Prepare the partitions:
Code:
mkswap /dev/sdb5
mke2fs -j /dev/sdb7


Now you need a kernel and a rootfs. A kernel can be foundhere, 2big_uImage_modules.tar.gz.
Further you need a Debian rootfs. That can be found here, lenny.tgz.
Mount sdb7, and extract the rootfs:
Code:
mkdir /tmp/sdb7
mount /dev/sdb7 /tmp/sdb7
cd /tmp/sdb7
tar xzf /path/to/lenny.tgz
# add the kernel and modules
tar xzf /path/to/2big_uImage_modules.tar.gz
# write the kernel to sdb6
dd if=uImage of=/dev/sdb6

Now edit /tmp/sdb7/etc/fstab. The rootfs will be mounted read-only, but Debian doesn't like that. So add a line to remount it rw:
Code:
/dev/sda7   /   ext3   defaults,ro   0 0


Basically this is it. If you put this disk in your 2Big, it should boot to Debian.
  • The box will request an IP address by DHCP.
  • A lightweight ssh server will be running (dropbear)
  • There are two users, user with password user, and root with password root.
I have no idea what the fan will do.


Top
 Profile  
 
PostPosted: Fri Dec 02, 2011 8:00 pm 
Offline

Joined: Mon Nov 28, 2011 12:55 pm
Posts: 11
Sorry but i don't understand nothing of that... can u explain me step by step how to do that, think my HD is empty (no partitions) and i don't know nothing about the lacie 2big network, that way i can make this work ;)

i hope you can help me


Top
 Profile  
 
PostPosted: Sat Dec 03, 2011 12:41 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5958
Fera wrote:
can u explain me step by step how to do that
Sorry, I don't think that would lead to something meaningful. My directions are pretty step by step, I think. When you need a lot more help to get Debian running, you wouldn't be able to do anything with Debian anyway, as it out of the box only gives you a command shell.


Top
 Profile  
 
PostPosted: Mon Dec 05, 2011 12:04 pm 
Offline

Joined: Mon Nov 28, 2011 12:55 pm
Posts: 11
I'm so sorry... i was with my head in another place... i will try today to see if i can make debian run on it ;) thanks a lot for the help ;)


Top
 Profile  
 
PostPosted: Wed Dec 07, 2011 8:45 pm 
Offline

Joined: Mon Nov 28, 2011 12:55 pm
Posts: 11
Hey men, i have a question, i have done al the steps you told me on the previous post, now the 2big with the disc doesn't turn off automatically, but there's nothing new on my net, it's seems to be running but i can't find its IP Address do u have any idea how can i config the drive?

Another question, what happend if i install debian on the disk normally? (the disk connected on a PC and install ir by the normal way) it will work on the 2big?

I hope you can answer me ;)


Top
 Profile  
 
PostPosted: Thu Dec 08, 2011 10:13 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5958
Fera wrote:
there's nothing new on my net
How did you check that? The NAS doesn't run any Netbios client, so it's won't popup in 'Network neighborhood' or sonething like that. Nor will the Lacie discovery tool detect it (it's not running Lacie firmware anymore).
The only way to find that box is to look in the logfiles of your DHCP server (router), or to do a network scan. (With something like this.

If it's really not in the network, connect the drive to your PC again, and look if you can find anything in sda7/var/log/. dmesg and messages could be very helpful in finding the problem.

Fera wrote:
Another question, what happend if i install debian on the disk normally?
'Normally' as in installing on a PC from a CD? That won't work. It will install a X86 or X64 bootable disk, but the NAS has an ARM processor.


Top
 Profile  
 
PostPosted: Fri Dec 09, 2011 9:16 pm 
Offline

Joined: Mon Nov 28, 2011 12:55 pm
Posts: 11
Ok, i understand why i cannot install debian directly on the disk, and i search for some logs on /dev/sdb7/var/log/term.log

and it says this:

Can not write log, openpty() failed (/dev/pts not mounted?)
Can not write log, openpty() failed (/dev/pts not mounted?)





I hope you can help me with this


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Sat Dec 10, 2011 10:22 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5958
I just extracte the lenny.tgz, and the file /var/log/apt/term.log is already there:[code]Log started: 2010-11-21 14:01:34
Can not write log, openpty() failed (/dev/pts not mounted?)
Can not write log, openpty() failed (/dev/pts not mounted?)
Log ended: 2010-11-21 14:07:14[/quote]I suppose it's an artifact of the chroot I used to build the packet.
Further there are to files in /var/log/fsck, checkfs and checkroot, both from nov 21 2010. So unless your file is different, or you've got more files, there is nothing written at all.
So either the system didn't boot at all, or the rootfs cannot be written.

How is you /etc/fstab now?


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Dec 12, 2011 8:29 pm 
Offline

Joined: Mon Nov 28, 2011 12:55 pm
Posts: 11
The fstab shows this

Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/sda5 swap swap defaults 0 0
/dev/sda2 /home auto defaults 0 0
/dev/sda7 /ext3 defualts,ro 0 0


that's what the fstab shows...


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Mon Dec 12, 2011 8:35 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5958
Typo of yours, and error of me. The last line should be
Code:
/dev/sda7 / ext3 defaults,rw 0 0
Don't forget the space between / and ext3


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Tue Dec 13, 2011 12:17 pm 
Offline

Joined: Mon Nov 28, 2011 12:55 pm
Posts: 11
well, i put the space between / and ext3, and changed the "defaults,ro" for "defaults,rw", but still nothing happend, i have search for the log files and nothing special, and scan my network for something new, and still nothing... :(

if you use skype we can try to solve that way and maybe remote connection.

Thanks for all and i hope you're not too bored of me.


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Tue Dec 13, 2011 7:05 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5958
Fera wrote:
/dev/sda7 /ext3 defualts,ro 0 0
Fera wrote:
and changed the "defaults,ro" for "defaults,rw"
Did you change defualts to defaults?


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Wed Dec 14, 2011 11:51 am 
Offline

Joined: Mon Nov 28, 2011 12:55 pm
Posts: 11
it's this way now

Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/sda5 swap swap defaults 0 0
/dev/sda2 /home auto defaults 0 0
/dev/sda7 / ext3 defualts,rw 0 0


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Wed Dec 14, 2011 3:43 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5958
Right. Ehh, wrong. the 'defualts' in the last line should still be 'defaults'.
(Even the spelling checker of my browser is complaining)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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