Seagate Goflex Home turned into paperweight, please help. January 09, 2017 06:03AM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 09, 2017 08:50AM |
Registered: 9 years ago Posts: 442 |
Re: Seagate Goflex Home turned into paperweight, please help. January 09, 2017 01:50PM |
Admin Registered: 13 years ago Posts: 18,555 |
Re: Seagate Goflex Home turned into paperweight, please help. January 09, 2017 04:52PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 09, 2017 05:16PM |
Admin Registered: 13 years ago Posts: 18,555 |
Re: Seagate Goflex Home turned into paperweight, please help. January 09, 2017 10:19PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 10, 2017 03:14AM |
Admin Registered: 13 years ago Posts: 18,555 |
suand enter the password (when you create the default user during Mint installation, it is an administrator user).
Quote
Updated 20 Feb 2016:
This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is to keep in sync with kernel Linux-4.4.0-kirkwood-tld-1.
Basic minimal Debian Kirkwood rootfs for most Kirwood plugs:
- tarball size: 137M
- install size: 398M
- a basic jessie rootfs.
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
md5:
9f957e1dc5a36f90a285ab4615cb02fd
sha256:
d33349118e34bd078ca635cd2d6776f3e312accfc77d29da5870b9980add5c36
And remember to check the hash of what you download, as always.
Installation:
Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too).
Note: all steps below must be done while logging in as root user (not sudo). If you are not the root user then don't continue, because the rootfs will not work.
1. Format a new USB drive with a single Ext3 partition, and label it rootfs.
2. Mount the drive on a Linux box. cd to top level directory and extract it. It is assuming the USB drive is mounted at /media/sdb1
cd /media/sdb1
tar -xjf Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
3. Adjust fstab. Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Edit /media/sdb1/etc/fstab entry for /dev/root to match the rootfstype of your usb_rootfstype. However, you can keep it as is without problem in booting since the u-boot env bootargs takes precedent.
/dev/root / ext3 noatime,errors=remount-ro 0 1
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage
sync
Note: if your Linux box does not have mkimage, then install it
apt-get install u-boot-tools
5. Done. Take this USB rootfs to your plug and cold start. After booted into Debian, see Note1 and Note2 below. It is very important that you do Note1 steps to secure your box.
Re: Seagate Goflex Home turned into paperweight, please help. January 10, 2017 12:19PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 10, 2017 03:12PM |
Admin Registered: 13 years ago Posts: 18,555 |
fdisk /dev/sdb
mkfs.ext3 -L rootfs /dev/sdb1
mkdir /media/sdb1 mount /dev/sdb1 /media/sdb1 cd /media/sdb1 tar -xjf Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
cd /media/sdb1/boot cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-goflexhome.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage sync
apt-get install u-boot-tools
Re: Seagate Goflex Home turned into paperweight, please help. January 10, 2017 03:35PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 10, 2017 10:34PM |
Admin Registered: 13 years ago Posts: 18,555 |
dmesg | tail
ping debian.local
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 09:20AM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 04:53PM |
Admin Registered: 13 years ago Posts: 18,555 |
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 05:54PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 06:08PM |
Admin Registered: 13 years ago Posts: 18,555 |
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 06:43PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 06:51PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 07:48PM |
Admin Registered: 13 years ago Posts: 18,555 |
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 07:51PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 11, 2017 10:18PM |
Admin Registered: 13 years ago Posts: 18,555 |
Re: Seagate Goflex Home turned into paperweight, please help. January 12, 2017 12:39AM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 12, 2017 02:52AM |
Registered: 7 years ago Posts: 26 |
~ $ su Password: My username # fdisk /dev/sdb Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): m Help: DOS (MBR) a toggle a bootable flag b edit nested BSD disklabel c toggle the dos compatibility flag Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition Misc m print this menu u change display/entry units x extra functionality (experts only) Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file Save & Exit w write table to disk and exit q quit without saving changes Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table Command (m for help): d Selected partition 1 Partition 1 has been deleted. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-124735487, default 2048): 2048 Last sector, +sectors or +size{K,M,G,T,P} (2048-124735487, default 124735487): 124735487 Created a new partition 1 of type 'Linux' and of size 59.5 GiB. Command (m for help): q My username # fdisk /dev/sdc Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): m Help: DOS (MBR) a toggle a bootable flag b edit nested BSD disklabel c toggle the dos compatibility flag Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition Misc m print this menu u change display/entry units x extra functionality (experts only) Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file Save & Exit w write table to disk and exit q quit without saving changes Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table Command (m for help): i Partition number (1,2,5,6, default 6): f Value out of range. Partition number (1,2,5,6, default 6): q Value out of range. Partition number (1,2,5,6, default 6): 1 Device: /dev/sdc1 Boot: * Start: 64 End: 28388047 Sectors: 28387984 Cylinders: 1768 Size: 13.5G Id: c Type: W95 FAT32 (LBA) Start-C/H/S: 0/2/1 End-C/H/S: 1023/63/254 Attrs: 80 Command (m for help): q My username # fdisk /dev/sde Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. fdisk: cannot open /dev/sde: No such file or directory My username # fdisk /dev/sdd Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): i Selected partition 1 Device: /dev/sdd1 Boot: * Start: 63 End: 31711231 Sectors: 31711169 Cylinders: 1974 Size: 15.1G Id: c Type: W95 FAT32 (LBA) Start-C/H/S: 0/1/1 End-C/H/S: 1023/63/254 Attrs: 80 Command (m for help): i Selected partition 1 Device: /dev/sdd1 Boot: * Start: 63 End: 31711231 Sectors: 31711169 Cylinders: 1974 Size: 15.1G Id: c Type: W95 FAT32 (LBA) Start-C/H/S: 0/1/1 End-C/H/S: 1023/63/254 Attrs: 80 Command (m for help): i Selected partition 1 Device: /dev/sdd1 Boot: * Start: 63 End: 31711231 Sectors: 31711169 Cylinders: 1974 Size: 15.1G Id: c Type: W95 FAT32 (LBA) Start-C/H/S: 0/1/1 End-C/H/S: 1023/63/254 Attrs: 80 Command (m for help): m Help: DOS (MBR) a toggle a bootable flag b edit nested BSD disklabel c toggle the dos compatibility flag Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition Misc m print this menu u change display/entry units x extra functionality (experts only) Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file Save & Exit w write table to disk and exit q quit without saving changes Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table Command (m for help): d Selected partition 1 Partition 1 has been deleted. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-31711231, default 2048): 2048 Last sector, +sectors or +size{K,M,G,T,P} (2048-31711231, default 31711231): 31711231 Created a new partition 1 of type 'Linux' and of size 15.1 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8). My username # mkfs.ext3 -L rootfs /dev/sdd1 mke2fs 1.42.13 (17-May-2015) /dev/sdd1 contains a vfat file system Proceed anyway? (y,n) n My username # partprobe(8) bash: syntax error near unexpected token `8' My username # partprobe(sdd) bash: syntax error near unexpected token `sdd' My username # partprobe(sdd1) bash: syntax error near unexpected token `sdd1' My username # umount /dev/sdd umount: /dev/sdd: not mounted My username # partprobe(sdd) bash: syntax error near unexpected token `sdd' My username # partprobe(sdd) bash: syntax error near unexpected token `sdd' My username # partprobe(sdd1) bash: syntax error near unexpected token `sdd1' My username # partprobe(sdd) bash: syntax error near unexpected token `sdd' My username # partprobe(sdd1) bash: syntax error near unexpected token `sdd1' My username # mount /dev/sdd mount: can't find /dev/sdd in /etc/fstab My username # fdisk dev/sdd Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. fdisk: cannot open dev/sdd: No such file or directory My username #
Re: Seagate Goflex Home turned into paperweight, please help. January 12, 2017 03:16AM |
Admin Registered: 13 years ago Posts: 18,555 |
o: remove all partitions n: create new partition a: make partition active w: write all changes to disk and exit.
Re: Seagate Goflex Home turned into paperweight, please help. January 12, 2017 03:41AM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 12, 2017 03:48AM |
Admin Registered: 13 years ago Posts: 18,555 |
Re: Seagate Goflex Home turned into paperweight, please help. January 12, 2017 09:04AM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 12, 2017 07:15PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 12, 2017 10:00PM |
Registered: 7 years ago Posts: 26 |
Re: Seagate Goflex Home turned into paperweight, please help. January 13, 2017 04:48AM |
Admin Registered: 13 years ago Posts: 18,555 |
dmesg | tailThe kernel log in dmesg will tell which drive letter it was assigned to.
umount /dev/sdx fdisk /dev/sdx > o > n > a > w
mkfs.ext3 -L rootfs /dev/sdx1
mkdir /media/sdx1 mount /dev/sdx1 /media/sdx1 cd /media/sdx1
tar -xjf .......
Re: Seagate Goflex Home turned into paperweight, please help. January 13, 2017 09:46AM |
Registered: 7 years ago Posts: 26 |