onie icon indicating copy to clipboard operation
onie copied to clipboard

IOException: Error opening /dev/sda: No such device or address

Open nesselzzz opened this issue 6 years ago • 0 comments

I get this error every time I try to install ONL on my Quantamesh t1048 lb9:

IOException: Error opening /dev/sda: No such device or address

Before I continue, it is probably worth noting that I am very new to linux.

When I purchased this switch, ONIE was not preinstalled, so I followed the guide in this repository for how to compile the software for my switch. I installed it and I was able to boot ONIE just fine. It's just the install does not recognize /dev/sda. I see sda and sdb in /dev, but it is not mounted. Below is a more detailed output. Any help I can get would be appreciated. Thanks!

Detected platform powerpc-quanta-lb9-r0 trying a U-Boot based installer using proxy GRUB

  • /usr/sbin/fw_setenv --help installer failed Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/onl/install/App.py", line 212, in runLocalOrChroot code = self.installer.run() File "/usr/lib/python2.7/dist-packages/onl/install/BaseInstall.py", line 1327, in run return self.installUboot() File "/usr/lib/python2.7/dist-packages/onl/install/BaseInstall.py", line 1249, in installUboot code = self.maybeCreateLabel() File "/usr/lib/python2.7/dist-packages/onl/install/BaseInstall.py", line 1106, in maybeCreateLabel self.partedDevice = parted.getDevice(self.device) File "/usr/lib/python2.7/site-packages/parted/decorators.py", line 42, in new ret = fn(*args, **kwds) File "/usr/lib/python2.7/site-packages/parted/init.py", line 402, in getDevice return Device(path=path) File "/usr/lib/python2.7/site-packages/parted/decorators.py", line 42, in new ret = fn(*args, **kwds) File "/usr/lib/python2.7/site-packages/parted/device.py", line 58, in init self.__device = _ped.device_get(path) IOException: Error opening /dev/sda: No such device or address re-attaching to tty entering Python debugger (installer_debug=1)

/usr/lib/python2.7/site-packages/parted/device.py(58)init() -> self.__device = _ped.device_get(path) (Pdb) runner failed Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/onl/install/App.py", line 404, in main code = app.run() File "/usr/lib/python2.7/dist-packages/onl/install/App.py", line 54, in run return self.runLocal() File "/usr/lib/python2.7/dist-packages/onl/install/App.py", line 248, in runLocal return self.runLocalOrChroot() File "/usr/lib/python2.7/dist-packages/onl/install/App.py", line 217, in runLocalOrChroot self.post_mortem() File "/usr/lib/python2.7/dist-packages/onl/install/App.py", line 368, in post_mortem pdb.post_mortem(sys.exc_info()[2]) File "/usr/lib/python2.7/pdb.py", line 1267, in post_mortem p.interaction(None, t) File "/usr/lib/python2.7/pdb.py", line 210, in interaction self.cmdloop() File "/usr/lib/python2.7/cmd.py", line 130, in cmdloop line = raw_input(self.prompt) KeyboardInterrupt

ONIE:/dev # ls console mtd4 rtc stdin vcs10 core mtd5 rtc0 stdout vcs11 fd mtd6 sda tty vcs12 full mtd7 sda1 tty0 vcs13 i2c-0 mtdblock0 sda10 tty1 vcs14 i2c-1 mtdblock1 sda11 tty10 vcs15 i2c-2 mtdblock2 sda12 tty11 vcs2 i2c-3 mtdblock3 sda13 tty12 vcs3 kmem mtdblock4 sda14 tty13 vcs4 log mtdblock5 sda15 tty14 vcs5 loop0 mtdblock6 sda2 tty15 vcs6 loop1 mtdblock7 sda3 tty2 vcs7 loop2 null sda4 tty3 vcs8 loop3 nvram sda5 tty4 vcs9 loop4 port sda6 tty5 vcsa loop5 ptmx sda7 tty6 vcsa0 loop6 pts sda8 tty7 vcsa1 loop7 ram sda9 tty8 vcsa10 mem ram0 sdb tty9 vcsa11 mmcblk0 ram1 sdb1 ttyS0 vcsa12 mmcblk0p1 ram10 sdb10 ttyS1 vcsa13 mmcblk0p2 ram11 sdb11 ttyS2 vcsa14 mmcblk0p3 ram12 sdb12 ubi0 vcsa15 mmcblk0p4 ram13 sdb13 ubi0_0 vcsa2 mmcblk0p5 ram14 sdb14 ubi0_1 vcsa3 mmcblk0p6 ram15 sdb15 ubi0_2 vcsa4 mmcblk0p7 ram16 sdb2 ubi0_3 vcsa5 mtd-onie ram2 sdb3 ubi0_4 vcsa6 mtd-open ram3 sdb4 ubi0_5 vcsa7 mtd-open2 ram4 sdb5 ubi0_6 vcsa8 mtd-uboot ram5 sdb6 ubi0_7 vcsa9 mtd-uboot-env ram6 sdb7 ubi_ctrl zero mtd0 ram7 sdb8 urandom mtd1 ram8 sdb9 vcs mtd2 ram9 shm vcs0 mtd3 random stderr vcs1

NIE:/dev # mount rootfs on / type rootfs (rw) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) tmpfs on /run type tmpfs (rw,noatime,size=10240k) tmpfs on /run/lock type tmpfs (rw,noatime,size=10240k) tmpfs on /tmp type tmpfs (rw,noatime,size=1048576k) tmpfs on /var/tmp type tmpfs (rw,noatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,relatime) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600) proc on /tmp/sfx-bgp6gJ/initrd-kDef5A/proc type proc (rw,relatime) sysfs on /tmp/sfx-bgp6gJ/initrd-kDef5A/sys type sysfs (rw,relatime) devpts on /tmp/sfx-bgp6gJ/initrd-kDef5A/dev/pts type devpts (rw,relatime,mode=600) tmpfs on /tmp/sfx-bgp6gJ/initrd-kDef5A/mnt/installer type tmpfs (rw,noatime,size=1048576k) ONIE:/dev # df /dev Filesystem 1K-blocks Used Available Use% Mounted on df: /dev: can't find mount point

ONIE:/ # fdisk -l

Disk /dev/mtdblock0: 28 MB, 28704768 bytes 255 heads, 63 sectors/track, 3 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 4 MB, 4194304 bytes 255 heads, 63 sectors/track, 0 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/mtdblock2: 0 MB, 131072 bytes 255 heads, 63 sectors/track, 0 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock2 doesn't contain a valid partition table

Disk /dev/mtdblock3: 0 MB, 524288 bytes 255 heads, 63 sectors/track, 0 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock3 doesn't contain a valid partition table

Disk /dev/mtdblock4: 33 MB, 33554432 bytes 255 heads, 63 sectors/track, 4 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock4 doesn't contain a valid partition table

ONIE:/ # cat /proc/partitions major minor #blocks name

31 0 28032 mtdblock0 31 1 4096 mtdblock1 31 2 128 mtdblock2 31 3 512 mtdblock3 31 4 32768 mtdblock4

nesselzzz avatar Jul 18 '19 16:07 nesselzzz