Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Aug 19, 2017 12:10 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 79 posts ]  Go to page 1 2 3 4 5 6 Next
Author Message
PostPosted: Fri Oct 26, 2012 2:36 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
update 2013.05.15: Now when Debian 7 wheezy is stable, i made a new image.

I created a minimal debian wheezy bootstrap for our Linkstations. It comes with 3.9.2 kernels for both LS-CHLv2 and LS-XHL, which you can find here.

### Infos
Changes to plain debootstrap
This is a ready to use image, no need to tweak device specific stuff after install e.g. do NOT install blstools.

### Download
http://neboola.de/fjen/lschlv2/debian/wheezy/
Archive is packed with tar/xz. Use tar/xz-utils on Linux to extract.
Do not extract it on Windows or it won't boot because of permission problems!

### Installation
-backup your installation
-partition harddrive with gpt layout
--sda1 boot ext3 128MB
--sda2 root ext4 >1GB
-extract archive to / and /boot

FOR LSXHL: Replace /boot/uImage.buffalo.3.9.2-fjen-1 with the lsxhl one.

your setup should look like this:
Code:
### boot / sda1
uImage.buffalo
uImage.buffalo.3.9.2-fjen-1
initrd.buffalo
### root / sda2
/bin
/boot
/dev
/etc
[...]

### After installation
Device gets IP through DHCP.
root pw: toor
ssh port: 22

Execute these commands to have a sane system:
Code:
dpkg-reconfigure locales
dpkg-reconfigure tzdata
rm /etc/ssh/ssh_host_* && dpkg-reconfigure openssh-server
apt-get update

Have fun!

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Last edited by fjen on Sat Feb 15, 2014 10:00 pm, edited 7 times in total.

Top
   
PostPosted: Fri Oct 26, 2012 5:31 pm 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
Awesome to try .....

BTW is full NTFS read/write available from the USB port?

Am I on the right track????

sda1 - boot partition
ext3, 128MB
extract archive to /boot
rename the corresponding kernel in /boot to uImage.buffalo

sda2 – root partition
ext4 m >1GB
extract archive to /




l


Last edited by wholly on Sat Oct 27, 2012 12:10 am, edited 2 times in total.

Top
   
PostPosted: Fri Oct 26, 2012 7:17 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
yes, ntfs is supported if you install the ntfs-3g package.

i don't know what you mean with the rest of your post. just follow my install instructions. nothing more.

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Mon Oct 29, 2012 7:07 am 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
fjen,


Almost there...

when you said "extract archive to / and /boot" you meant copy wheezy files to a new root directory called boot Did you mean that the wheezy dilesystem needs to go into the directory of boot.

eg.

sda1/boot/wheezy extracted directories eg etc.usr



thanks

wayne


Top
   
PostPosted: Mon Oct 29, 2012 3:22 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
it means, you should put the archive files from the boot directory to your boot partition and the rest to your root partition.
like this:
Code:
archive      partition
------------------------
boot/*       sda1(boot)/*
*            sda2(root)/*

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Tue Oct 30, 2012 6:58 am 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
fejn,

1. Does this "rename the corresponding kernel in /boot to uImage.buffalo" this depends on if you have a LS-CHL2 or LS-XHL?

2. I copied initrid.buffalo (empty) and uImage.buffalo (LS-XHL) to the boot partition under a directory called boot and renamed the 2 files.

On boot up after 5 mins... I could not see the LS-XHL via my IPScanner or attache device list???

----- when I tried to unpack the wheezy image on a live-ubuntu it failed.
----- But, when I extracted the files under windows (to a USB stick), I got no errors and copied these files to the root partition

Any ideas?


Top
   
PostPosted: Tue Oct 30, 2012 9:43 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
1. yes, if you look at the files, you should know.
2. copy the files from /boot directly on the boot partition. not in an extra boot folder.

you probably hadn't xz-utils installed on ubuntu. please dont extract that on windows or you will loose file properties.

also, i think you will go better with a modded standard firmware as this simple installation seems complicated for you.

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Fri Nov 09, 2012 3:41 am 
Offline
Newbie

Joined: Tue May 15, 2012 4:50 pm
Posts: 33
fjen.

Downloaded PartitionBoot to format HDD (gpt) and extract contents to the root partition.

Issues:
1. your fstab has the /boot mount as ext4 while you mention to format as ext3

2. when I reconnect the NAS unit the lights go blue then red flashing (is this normal)


Top
   
PostPosted: Fri Nov 09, 2012 11:33 am 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
Slightly older set here: viewtopic.php?f=19&t=25297&hilit=+root+fs

I found an easy way was to use lsupdater to install a fresh buffalo firmware complete with the correct partitions... then remove the disk... mount on a linux box... clean out and extract to /boot and /

Reboot and all done! ;)

works with VL too (I would think that fjen's will too?)

:)
Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


Top
   
PostPosted: Fri Nov 09, 2012 1:02 pm 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
wholly wrote:
fjen.

Downloaded PartitionBoot to format HDD (gpt) and extract contents to the root partition.

Issues:
1. your fstab has the /boot mount as ext4 while you mention to format as ext3

2. when I reconnect the NAS unit the lights go blue then red flashing (is this normal)

1. the ext4 driver can mount ext3, thats no problem.
2. this is not normal. it should blink blue until the kernel takes over. then it stays blue. if it gets red, the kernel wasn't found. check that your boot partition (sda1) has the uImage.buffalo file in the root folder.

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Sun Dec 02, 2012 4:40 pm 
Offline
Newbie

Joined: Fri Nov 30, 2012 11:44 pm
Posts: 27
I tried this out and a I am in a reboot loop..

this is what i have done.

Quote:
### Download
http://neboola.de/fjen/lschlv2/debian/wheezy/
Archive is packed with tar/xz. Use xz-utils on Linux or 7zip on Windows to extract.

### Installation
-backup your installation
-partition harddrive with gpt layout
--sda1 boot ext3 128MB
--sda2 root ext4 >1GB
-extract archive to / and /boot
-link or rename the corresponding kernel in /boot to uImage.buffalo

edit: linkstation now runs.. my fault was to to user windows and 7zip.. ubuntu and xz utils works fine..


Top
   
PostPosted: Mon Dec 03, 2012 12:49 am 
Offline
Total Newbie

Joined: Tue Jul 10, 2012 9:45 am
Posts: 4
Do we have to resize the partitions?

The only way I have to do this is using parted on the NAS itself which I am not confident with...

Code:
(parted) print

Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  1026MB  1024MB  ext3         primary
 2      1026MB  6146MB  5120MB  ext3         primary
 3      6146MB  6147MB  1049kB               primary
 4      6147MB  6148MB  1049kB               primary
 5      6148MB  7172MB  1024MB  linux-swap   primary
 6      7172MB  1992GB  1985GB  xfs          primary


Code:
root@Nas:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/sda2                 4.7G    800.1M      3.7G  18% /
udev                     10.0M     84.0k      9.9M   1% /dev
/dev/ram1                15.0M    108.0k     14.9M   1% /mnt/ram
/dev/sda1               969.2M     30.5M    938.8M   3% /boot
/dev/disk1_6              1.8T      1.1T    722.5G  61% /mnt/disk1
/dev/disk1_6              1.8T      1.1T    722.5G  61% /opt
root@Nas:~#


Code:
root@Nas:~# fdisk -l

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1      243202  1953514583+ ee EFI GPT
root@Nas:~#


Top
   
PostPosted: Mon Dec 03, 2012 1:30 am 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
mentex wrote:
edit: linkstation now runs.. my fault was to to user windows and 7zip.. ubuntu and xz utils works fine..

nice to hear! i added a warning in the first post.
athk wrote:
Do we have to resize the partitions?

no, it should be fine without resizing. just clean/format the partitions.

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
PostPosted: Mon Dec 03, 2012 1:44 am 
Offline
Total Newbie

Joined: Tue Jul 10, 2012 9:45 am
Posts: 4
Thanks for the quick response!

I'm hoping to do this later tonight I will post my results then.

Bit scared as I have over 700GB of files on the hdd but since I'm only changing the /boot files I shouldn't lose anything right?

Perhaps you could add me to MSN for some guidance?


Top
   
PostPosted: Mon Dec 03, 2012 2:11 am 
Offline
Regular Member
User avatar

Joined: Mon Jun 18, 2012 2:12 pm
Posts: 116
backup the root and boot partition and everything will be fine. you wont lose your data when you override / and /boot.
i don't have msn and time for live support. i will get some sleep now. good luck!

_________________
## Linkstation LS-CHLv2 and LS-XHL stuff:
Debian 7 Wheezy - Rootfs
Kernel 3.13


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 79 posts ]  Go to page 1 2 3 4 5 6 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 10 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:
Powered by phpBB® Forum Software © phpBB Limited