Topic: Problem with SSD install.

I've been playing with my Novena Desktop for a while, and finally got a 250GB ssd for it.
I'm trying to follow the instructions in http://novena-guide.readthedocs.org/en/ … -sata-disk
and have a few problems.
I'm currently stuck at running local-install.sh (edited from sata-install.sh)
it includes references to these debian packages that weren't in the preceeding instructions (There were wgets for 3 other packages)

    -a pulseaudio-novena_1.0-1_all.deb \
    -a irqbalance_0.56-1ubuntu4-rmk1_armhf.deb \
    -a novena-disable-ssp_1.1-1_armhf.deb \
    -a u-boot-novena_2014.10-novena-rc3_armhf.deb \
    -a linux-image-3.17.0-rc5-00054-gdb75754_1.3_armhf.deb \

Am I missing a step? Do I need to rpm install the packages downloaded in
the wget step or do I just need to use the paired down script in the doc page?

Re: Problem with SSD install.

I used the smaller example script on the page with the larger list of packages from the current sata-install.sh script. Had to remove lconv because it couldn't find it. now it's saying
SPL file  '/boot/u-boot.spl' does not exist, disk won't boot

3 (edited by honos 2015-04-06 00:00:54)

Re: Problem with SSD install.

I had to modify the original sata-install.sh

Here is what i used:

#!/bin/bash
if [ -z $1 ]
then
        echo "Usage: $0 [device]"
        echo "E.g. $0 /dev/mmcblk1"
        exit 1
fi

echo "Constructing a disk image on $1"
exec sudo ./novena-image.sh \
        -d $1 \
        -t sata \
        –mirror “http://127.0.0.1:3142/http.debian.net/debian“ \
        -s jessie \
        -a irqbalance-imx_0.56-1ubuntu4-rmk1_armhf.deb \
        -a u-boot-novena_2014.10-novena-rc12_armhf.deb \
        -a linux-image-novena_1.14-r1_armhf.deb \
        -l "sudo openssh-server ntp ntpdate dosfstools btrfs-tools \
            novena-eeprom xserver-xorg-video-modesetting task-xfce-desktop \
            hicolor-icon-theme gnome-icon-theme tango-icon-theme keychain \
            avahi-daemon avahi-dnsconfd libnss-mdns btrfs-tools \
            parted debootstrap python build-essential xscreensaver vlc vim \
            emacs x11-xserver-utils usbutils unzip apt-file xz-utils \
            subversion make screen tmux read-edid powertop powermgmt-base \
            pavucontrol p7zip-full paprefs pciutils nmap ntfs-3g \
            network-manager-vpnc network-manager-pptp network-manager-openvpn \
            network-manager-iodine mplayer2 libreoffice imagemagick icedove \
            iceweasel gtkwave gnupg2 git git-email git-man fuse freecad \
            enigmail dc curl clang bridge-utils bluez bluez-tools \
            bluez-hcidump bison bc automake autoconf pidgin alsa-utils verilog \
            i2c-tools hwinfo android-tools-adb android-tools-fastboot \
            android-tools-fsutils bash-completion kicad ncurses-dev gdb lzop \
            gawk bison g++ gcc flex pkg-config valgrind  netcat wireshark \
            kismet aircrack-ng socat"


The files needed can be download from :
http://repo.novena.io/repo/pool/main/

wget http://repo.novena.io/repo/pool/main/u/ … _armhf.deb
wget http://repo.novena.io/repo/pool/main/i/ … _armhf.deb   
and so on for all the files you need.


But I did not find the pulseaudio.

Have a look at : http://novena-guide.readthedocs.org/en/ … tasks.html
It gives the general idea.

4 (edited by honos 2015-04-06 00:04:50)

Re: Problem with SSD install.

GregRob posted another way to move to SSD:
http://www.kosagi.com/forums/viewtopic.php?id=153

Re: Problem with SSD install.

I mashed together a local-install.sh and it seems to work, however my Logitech wireless keyboard stopped working (before anyone says anything, yes, I confirmed it works on several other computers.)
it looks like a kernel bug that loads the driver but prevents pairing.
https://lists.debian.org/debian-kernel/ … 00497.html
This was fixed in 3.11, and It looks like I'm runnign 3.17, so maybe it resurfaced.

6 (edited by osbock 2015-04-07 00:01:51)

Re: Problem with SSD install.

For some reason, the /etc/modules directory wasn't created on my SSD. I copied it over from the mmc card and my logitech devices started functioning again (after reboot.)
Here's the script I used for the install (after cloning the repo, using the simplified version in the instruction page, with the package list from the git version of install-sata.h)

#!/bin/bash
if [ -z $1 ]
then
        echo "Usage: $0 [device]"
        echo "E.g. $0 /dev/sda"
        exit 1
fi

echo "Constructing a disk image on $1"
exec sudo ./novena-image.sh \
        -d $1 \
        -m "http://127.0.0.1:3142/http.debian.net/debian" \
        -t sata \
        -s jessie \
        -k kosagi.key \
        -a kosagi-repo_1.0-r1_all.deb \
        -a novena-eeprom_2.1-1_armhf.deb \
        -a novena-firstrun_1.4-r1_all.deb \
        -l "sudo openssh-server ntp ntpdate dosfstools btrfs-tools \
            novena-eeprom xserver-xorg-video-modesetting task-xfce-desktop \
            hicolor-icon-theme gnome-icon-theme tango-icon-theme keychain \
            avahi-daemon avahi-dnsconfd libnss-mdns btrfs-tools \
            parted debootstrap python build-essential xscreensaver vlc vim \
            emacs x11-xserver-utils usbutils unzip apt-file xz-utils \
            subversion make screen tmux read-edid powertop powermgmt-base \
            pavucontrol p7zip-full paprefs pciutils nmap ntfs-3g \
            network-manager-vpnc network-manager-pptp network-manager-openvpn \
            network-manager-iodine mplayer2 libreoffice imagemagick icedove \
            iceweasel gtkwave gnupg2 git git-email git-man fuse freecad \
            enigmail dc curl clang bridge-utils bluez bluez-tools \
            bluez-hcidump bison bc automake autoconf pidgin alsa-utils verilog \
            i2c-tools hwinfo android-tools-adb android-tools-fastboot \
            android-tools-fsutils bash-completion kicad ncurses-dev gdb lzop \
            gawk bison g++ gcc flex pkg-config valgrind netcat wireshark \
            kismet aircrack-ng socat"

Perhaps I should have used the Rsync method, but I like the idea of a repeatable install script.

Re: Problem with SSD install.

Hi!

I received my desktop yesterday and installed a SSD (Samsung 840). I followed the "readthedocs" instructions and I got a kpartx error... then I tried to use the rsinc method and I was able to partition the SSD and copy the files correctly. Then changed the SSD ID and wrote the eeprom with the sata flag and I wasn't able to boot...

I booted by holding the user button and checked that the partitions, eeprom and SSD ID were OK, and they were...

Then, I changed back the eeprom to boot from the MMC and also it didn't boot!!

It seems that only the recovery kernel is working, I checked the /boot folder and everything seems ok... I repeated the process several times with no luck, any Ideas?

Offtopic: I'm writing this from my novena and everything else seems to work properly, but I still have to test a lot of things. I also installed a senoko board from mclien and I still have to flash it, I was hoping to get the SSD working before that. I did take a lot of pictures of my "desktop to laptop conversion" and I hope make a post about the process once I get everything working

Re: Problem with SSD install.

If your recovery kernel is working and the regular kernel isn't, you can try copying /boot/zImage.recovery to /boot/zImage and /boot/novena.recovery.dtb to /boot/novena.dtb, just to make sure that you have a kernel/dtb pair that are known to be good.

9 (edited by ballanux 2015-04-09 01:51:21)

Re: Problem with SSD install.

xobs wrote:

If your recovery kernel is working and the regular kernel isn't, you can try copying /boot/zImage.recovery to /boot/zImage and /boot/novena.recovery.dtb to /boot/novena.dtb, just to make sure that you have a kernel/dtb pair that are known to be good.

Sadly, it also doesn't boot, even with the internal MMC eeprom configuration, which is booting fine if I hold the user button, my eeprom configuration is

Features:         0xf1 (es8328,pcie,gbit,hdmi,eepromoops)

Edit:

To add more information, my ssd partition table looks like this:

Disk /dev/sda: 232,9 GiB, 250059350016 bytes, 488397168 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
Disklabel type: dos
Disk identifier: 0x4e6f7653

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sda1          2048     67583     65536    32M  b W95 FAT32
/dev/sda2         67584   8456191   8388608     4G 82 Linux swap / Solaris
/dev/sda3       8456192 488397167 479940976 228,9G 83 Linux

And when I execute the installation script, the error I get is this:

Constructing a disk image on /dev/sda
[main] Packages: sudo openssh-server ntp ntpdate dosfstools btrfs-tools         novena-eeprom xserver-xorg-video-modesetting task-xfce-desktop     hicolor-icon-theme gnome-icon-theme tango-icon-theme keychain         avahi-daemon avahi-dnsconfd libnss-mdns btrfs-tools         parted debootstrap python build-essential xscreensaver vlc vim         emacs x11-xserver-utils usbutils unzip apt-file xz-utils         subversion make screen tmux read-edid powertop powermgmt-base         pavucontrol p7zip-full paprefs pciutils nmap ntfs-3g         network-manager-vpnc network-manager-pptp network-manager-openvpn         network-manager-iodine mplayer2 libreoffice imagemagick icedove         iceweasel gtkwave gnupg2 git git-email git-man fuse freecad         enigmail dc curl clang bridge-utils bluez bluez-tools         bluez-hcidump bison bc automake autoconf pidgin alsa-utils verilog         i2c-tools hwinfo android-tools-adb android-tools-fastboot         android-tools-fsutils bash-completion kicad ncurses-dev gdb lzop         gawk bison g++ gcc flex pkg-config valgrind lconv netcat wireshark         kismet aircrack-ng socat
[main] Creating a sata image
[main] Ensuring disk is unmounted
[main] Disk exists, overwriting it
[prepare loopback] Creating a new file /dev/sda with size 3965190144
truncate: fallo al truncar «/dev/sda» a 3965190144 bytes: Argumento inválido
./novena-image.sh: línea 183: error: no se encontró la orden

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Created a new DOS disklabel with disk identifier 0x137a913a.

Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-488397167, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-488397167, default 488397167): 
Created a new partition 1 of type 'Linux' and of size 32 MiB.

Command (m for help): Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (67584-488397167, default 67584): Last sector, +sectors or +size{K,M,G,T,P} (67584-488397167, default 488397167): 
Created a new partition 2 of type 'Linux' and of size 4 GiB.

Command (m for help): Partition type
   p   primary (2 primary, 0 extended, 2 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (3,4, default 3): First sector (8456192-488397167, default 8456192): Last sector, +sectors or +size{K,M,G,T,P} (8456192-488397167, default 488397167): 
Created a new partition 3 of type 'Linux' and of size 228,9 GiB.

Command (m for help): Partition number (1-3, default 3): Hex code (type L to list all codes): 
If you have created or modified any DOS 6.x partitions, please see the fdisk documentation for additional information.
Changed type of partition 'Linux' to 'W95 FAT32'.

Command (m for help): Partition number (1-3, default 3): Hex code (type L to list all codes): 
Changed type of partition 'Linux' to 'Linux swap / Solaris'.

Command (m for help): 
Expert command (m for help): 
Enter the new disk identifier: 
Disk identifier changed from 0x137a913a to 0x4e6f7653.

Expert command (m for help): 
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper P���0���0���� and kernel driver 
device mapper prerequisites not met
[prepare loopback] Error: Unable to map image to /dev/maper using kpartx
[cleanup] Unmounting devices from chroot
[cleanup] Unmounting loopback
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper P\�� and kernel driver 
device mapper prerequisites not met

It seems that the truncate command fails, I will try to investigate more.

With the rsinc method I don't have any problems along the procedure, it just doesn't boot in the end.

Re: Problem with SSD install.

You can probably comment out the "truncate" command.  It's used to grow the file, but since you're using it on an actual disk you can omit it.  Note that it's frequently faster to write to a disk image and then "dd" onto a real disk.  Or you can try using eatmydata to speed things up.

As for why it's not working... You probably need to add the "edp" flag in order to tell it you have an LVDS-to-eDP adapter.  When you go into recovery, it enables all possible features.  When booting into normal mode, it notices that you don't have the "edp" flag set, so it disables the LCD.

Re: Problem with SSD install.

xobs wrote:

You can probably comment out the "truncate" command.  It's used to grow the file, but since you're using it on an actual disk you can omit it.  Note that it's frequently faster to write to a disk image and then "dd" onto a real disk.  Or you can try using eatmydata to speed things up.

As for why it's not working... You probably need to add the "edp" flag in order to tell it you have an LVDS-to-eDP adapter.  When you go into recovery, it enables all possible features.  When booting into normal mode, it notices that you don't have the "edp" flag set, so it disables the LCD.

Thank you! That was the problem, now my novena boots to SSD smile