Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Booting from third partition of disk (5 replies)

$
0
0
I have installed the Debian rootfs on /dev/sda3 and labelled it rootfs, but uboot doesn't want to boot from it.

At the boot prompt, I run scan_disk and get the following:-

GoFlexHome> run scan_disk
running scan_disk ...
Scan device usb
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD1600BEVS-08VAT2  Firm: 14.01A14 Ser#:  WD-WX50E69MZ266
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
device ide 0:1
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
device ide 1:1
** Bad device ide 1 **
GoFlexHome>

Should I be able to boot from the third partition, and if so what do I need to do? Do I need any changes to my environment?

Here is a log:-
Script started on Sun May 19 20:18:52 2019
Command: cu -l /dev/cuaU0 -s 115200
Connected


U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -0700)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  3 ??? 2 ??? 1 ??? 0 
Initializing devices...
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD1600BEVS-08VAT2  Firm: 14.01A14 Ser#:  WD-WX50E69MZ266
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
Loading envs from usb 0...
** Bad device usb 0 **
Loading envs from usb 1...
** Bad device usb 1 **
Loading envs from ide 0...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Loading envs from ide 1...
** Bad device ide 1 **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD1600BEVS-08VAT2  Firm: 14.01A14 Ser#:  WD-WX50E69MZ266
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
device ide 0:1
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
device ide 1:1
** Bad device ide 1 **

Output from cfdisk:-


                                 Disk: /dev/sda
             Size: 149.1 GiB, 160041885696 bytes, 312581808 sectors
                       Label: dos, identifier: 0xe0b98dff

    Device      Boot       Start        End    Sectors   Size Id Type
    /dev/sda1   *           2048     731135     729088   356M  7 HPFS/NTFS/exFAT
    /dev/sda2             731136  159839919  159108784  75.9G  7 HPFS/NTFS/exFAT
>>  /dev/sda3          159840256  205977599   46137344    22G 83 Linux          
    Free space         205977600  312581807  106604208  50.9G


     Partition type: Linux (83)                                              
     Filesystem UUID: d28277c9-8fa0-4193-a24f-7dc03e194764
     Filesystem LABEL: rootfs                                                 
     Filesystem: ext3                                                      

Bootable]  [ Delete ]  [ Resize ]  [  Quit  ]  [  Type  ]  [  Help  ]
     [  Write ]  [  Dump  ]

                      Quit program without writing changes

Maybe I need to mark /dev/sda3 bootable...

Viewing all articles
Browse latest Browse all 3247

Trending Articles