Author Topic: have problem with nas  (Read 9563 times)

1000001101000

  • Debian Wizard
  • Big Bull
  • *****
  • Posts: 1128
  • There's no problem so bad you cannot make it worse
Re: have problem with nas
« Reply #30 on: June 29, 2019, 04:06:42 PM »
I just restored the stock firmware on my ls-wxl with two old wd green 1.5tb drives.

I followed this method:
https://buffalonas.miraheze.org/wiki/Restoring_Stock_Firmware_without_TFTP

The key was to use uImage-lsp.5.x.buffalo as the uImage.buffalo file.

for my lsupdater debug options I selected everything except "update boot"

I put a completely blank drive in slot2, In slot 1 I put a drive with a gpt partition table with a single 1gb partition formatted ext3 with the initrd.buffalo and uImage.buffalo extracted from the firmware.

The commands I used to build drive 1 were:

/ls_series-v174/LinkStation_FW1.74# ls
hddrootfs.img  linkstation_version.ini  LSUpdater.exe  u-boot.img
initrd.img     linkstation_version.txt  LSUpdater.ini  uImage.img
/ls_series-v174/LinkStation_FW1.74# unzip initrd.img
Archive:  initrd.img
[initrd.img] initrd.buffalo password:
  inflating: initrd.buffalo         
/ls_series-v174/LinkStation_FW1.74# unzip uImage.img
Archive:  uImage.img
[uImage.img] builddate.txt password:
  inflating: builddate.txt           
  inflating: uImage-88f5182.buffalo 
  inflating: uImage-lsp.5.x.buffalo 
  inflating: uImage.map             
~# lsblk /dev/sdm
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdm      8:192  0  1.4T  0 disk

~# gdisk /dev/sdm
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.

Command (? for help): n
Partition number (1-128, default 1): 1
First sector (34-2930277134, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-2930277134, default = 2930277134) or {+-}size{KMGTP}: +1G
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sdm.
The operation has completed successfully.

~# mkfs.ext3 /dev/sdm1
mke2fs 1.43.4 (31-Jan-2017)
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: 8a4ddb7e-44ae-4bd9-8dc7-2f5f4563e54a
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

~# mount /dev/sdm1 /mnt/image
~# cd /mnt/image
/mnt/image# cp /ls_series-v174/LinkStation_FW1.74/*.buffalo .
/mnt/image# cp uImage-lsp.5.x.buffalo uImage.buffalo
/mnt/image# ls
initrd.buffalo  lost+found  uImage-88f5182.buffalo  uImage.buffalo  uImage-lsp.5.x.buffalo
/mnt/image# cd
/mnt/image# sync
~# umount /mnt/image