DJ Charlie
Posts: 30
Joined: Wed Feb 01, 2012 6:33 pm

Can't boot with /dev/sda!

Thu Feb 07, 2013 12:45 am

Ok, I've started the migration of my root and swap onto a USB hard drive, connected through a powered hub, with a 3 amp power supply (been troubleshooting before posting!), BUT, from a fresh boot, the system fails to see the drive every time unless I unplug it, and then plug it back in AFTER everything is booted.

Here's my initial dmesg:

Code: Select all

[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.27+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #250 PREEMPT Thu Oct 18 19:03:02 BST 2012
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 122880
[    0.000000] free_area_init_node: node 0, pgdat c050db28, node_mem_map c05b6000
[    0.000000]   Normal zone: 960 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 121920 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 121920
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708.boardrev=0xf bcm2708.serial=0x6e7bcba8 smsc95xx.macaddr=B8:27:EB:7B:CB:A8 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1e000000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline boot_delay=1000 rootdelay=10 rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 480MB = 480MB total
[    0.000000] Memory: 481384k/481384k available, 10136k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xde800000 - 0xe8000000   ( 152 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xde000000   ( 480 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04c0e78   (4836 kB)
[    0.000000]       .init : 0xc04c1000 - 0xc04e0b10   ( 127 kB)
[    0.000000]       .data : 0xc04e2000 - 0xc050e1c0   ( 177 kB)
[    0.000000]        .bss : 0xc050e1e4 - 0xc05b5128   ( 668 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] timer_set_mode: unhandled mode:1
[    0.000000] timer_set_mode: unhandled mode:3
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    6.326616] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    8.407068] pid_max: default: 32768 minimum: 301
[    9.417303] Mount-cache hash table entries: 512
[   10.427540] Initializing cgroup subsys cpuacct
[   11.437758] Initializing cgroup subsys devices
[   12.447975] Initializing cgroup subsys freezer
[   13.458188] Initializing cgroup subsys blkio
[   14.468418] CPU: Testing write buffer coherency: ok
[   16.489051] hw perfevents: enabled with v6 PMU driver, 3 counters available
[   17.499436] devtmpfs: initialized
[   18.519904] NET: Registered protocol family 16
[   19.530311] bcm2708.uart_clock = 0
[   20.540714] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[   21.551101] hw-breakpoint: maximum watchpoint size is 4 bytes.
[   22.561487] mailbox: Broadcom VideoCore Mailbox driver
[   23.571903] bcm2708_vcio: mailbox at f200b880
[   24.582296] bcm_power: Broadcom power driver
[   25.592690] bcm_power_open() -> 0
[   26.603078] bcm_power_request(0, 8)
[   28.113632] bcm_mailbox_read -> 00000080, 0
[   29.124015] bcm_power_request -> 0
[   30.134401] Serial: AMBA PL011 UART driver
[   31.144798] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[   32.467697] console [ttyAMA0] enabled
[   33.498182] bio: create slab <bio-0> at 0
[   34.508599] SCSI subsystem initialized
[   35.519000] usbcore: registered new interface driver usbfs
[   36.529401] usbcore: registered new interface driver hub
[   37.539807] usbcore: registered new device driver usb
[   38.550237] Switching to clocksource stc
[   39.564209] FS-Cache: Loaded
[   40.574210] CacheFiles: Loaded
[   41.594217] NET: Registered protocol family 2
[   42.604223] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[   43.614224] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[   44.624231] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[   45.634216] TCP: Hash tables configured (established 16384 bind 16384)
[   46.644211] TCP reno registered
[   47.654216] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   48.664219] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   49.674230] NET: Registered protocol family 1
[   50.684216] RPC: Registered named UNIX socket transport module.
[   51.694211] RPC: Registered udp transport module.
[   52.704213] RPC: Registered tcp transport module.
[   53.714211] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   54.724215] bcm2708_dma: DMA manager at de808000
[   55.734214] bcm2708_gpio: bcm2708_gpio_probe c04e9c18
[   56.744218] vc-mem: phys_addr:0x00000000 mem_base=0x1e000000 mem_size:0x20000000(512 MiB)
[   57.754213] audit: initializing netlink socket (disabled)
[   58.764216] type=2000 audit(55.150:1): initialized
[   59.884215] VFS: Disk quotas dquot_6.5.2
[   60.894218] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   61.904214] FS-Cache: Netfs 'nfs' registered for caching
[   62.914215] msgmni has been set to 940
[   63.924217] io scheduler noop registered
[   64.934212] io scheduler deadline registered (default)
[   65.944217] io scheduler cfq registered
[   66.964211] Console: switching to colour frame buffer device 80x30
[   68.994216] kgdb: Registered I/O driver kgdboc.
[   70.014213] brd: module loaded
[   71.034212] loop: module loaded
[   72.044229] vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0
[   75.074230] vcos: [1]: vchiq_init_state: called
[   78.104230] vcos: [1]: vchiq: initialised - version 2 (min 2), device 252.0
[   81.134223] usbcore: registered new interface driver smsc95xx
[   82.144221] cdc_ncm: 04-Aug-2011
[   83.154398] usbcore: registered new interface driver cdc_ncm
[   84.164225] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[   85.384222] Core Release: 2.80a
[   86.394212] Setting default values for core params
[   87.404212] Finished setting default values for core params
[   88.624211] Using Buffer DMA mode
[   89.634216] Periodic Transfer Interrupt Enhancement - disabled
[   90.644217] Multiprocessor Interrupt Enhancement - disabled
[   91.654243] OTG VER PARAM: 0, OTG VER FLAG: 0
[   92.664211] Dedicated Tx FIFOs mode
[   93.674218] dwc_otg: Microframe scheduler enabled
[   94.684218] dwc_otg bcm2708_usb: DWC OTG Controller
[   95.694229] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[   96.714229] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[   97.724221] Init: Port Power? op_state=1
[   98.734220] Init: Power Port (0)
[   99.744276] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[  100.754249] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  101.774228] usb usb1: Product: DWC OTG Controller
[  102.784224] usb usb1: Manufacturer: Linux 3.2.27+ dwc_otg_hcd
[  103.794223] usb usb1: SerialNumber: bcm2708_usb
[  104.804219] hub 1-0:1.0: USB hub found
[  105.814229] hub 1-0:1.0: 1 port detected
[  106.824221] dwc_otg: FIQ enabled
[  107.034221] Indeed it is in host mode hprt0 = 00021501
[  107.844225] dwc_otg: NAK holdoff enabled
[  108.294236] usb 1-1: new high-speed USB device number 2 using dwc_otg
[  108.864219] Module dwc_common_port init
[  109.314224] Indeed it is in host mode hprt0 = 00001101
[  109.884228] usbcore: registered new interface driver uas
[  110.594243] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[  110.904230] Initializing USB Mass Storage driver...
[  111.614236] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  111.924226] usbcore: registered new interface driver usb-storage
[  112.654234] hub 1-1:1.0: USB hub found
[  112.944264] USB Mass Storage support registered.
[  113.674241] hub 1-1:1.0: 3 ports detected
[  113.954233] usbcore: registered new interface driver libusual
[  114.964227] mousedev: PS/2 mouse device common for all mice
[  114.984286] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[  116.014238] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[  116.124233] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[  117.024229] bcm2835-cpufreq: switching to governor powersave
[  117.174234] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  118.034228] bcm2835-cpufreq: switching to governor powersave
[  118.224217] smsc95xx v1.0.4
[  119.054225] cpuidle: using governor ladder
[  119.324239] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7b:cb:a8
[  120.064228] cpuidle: using governor menu
[  120.454238] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[  121.084224] sdhci: Secure Digital Host Controller Interface driver
[  121.594249] usb 1-1.2: New USB device found, idVendor=148f, idProduct=5370
[  122.104227] sdhci: Copyright(c) Pierre Ossman
[  122.614244] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  123.114242] sdhci: Enable low-latency mode
[  123.664239] usb 1-1.2: Product: 802.11 n WLAN
[  124.134230] bcm_power_open() -> 1
[  124.684229] usb 1-1.2: Manufacturer: Ralink
[  125.154242] Registered led device: mmc0::
[  125.694235] usb 1-1.2: SerialNumber: 1.0
[  126.184241] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[  126.294230] mmc0: problem reading SD Status register.
[  126.804239] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[  127.254243] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[  127.334237] mmc0: new high speed SDHC card at address e624
[  127.954254] usb 1-1.3: New USB device found, idVendor=1a40, idProduct=0101
[  128.274225] sdhci-pltfm: SDHCI platform and OF driver helper
[  128.384229] mmcblk0: mmc0:e624 SU04G 3.69 GiB 
[  128.964241] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  129.294228] Registered led device: led0
[  129.434223]  mmcblk0: p1 p2
[  130.014233] usb 1-1.3: Product: USB 2.0 Hub
[  130.314226] usbcore: registered new interface driver usbhid
[  131.044231] hub 1-1.3:1.0: USB hub found
[  131.334222] usbhid: USB HID core driver
[  132.344225] TCP cubic registered
[  132.350573] hub 1-1.3:1.0: 4 ports detected
[  133.364243] Initializing XFRM netlink socket
[  134.384249] NET: Registered protocol family 17
[  134.554263] usb 1-1.3.1: new high-speed USB device number 6 using dwc_otg
[  135.404243] Registering the dns_resolver key type
[  135.694245] usb 1-1.3.1: New USB device found, idVendor=1a40, idProduct=0101
[  136.424221] VFP support v0.3: 
[  136.714241] usb 1-1.3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  137.434239] implementor 41 architecture 1 part 20 variant b rev 5
[  137.754241] usb 1-1.3.1: Product: USB 2.0 Hub
[  138.474242] registered taskstats version 1
[  138.764237] hub 1-1.3.1:1.0: USB hub found
[  139.494227] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[  139.804236] hub 1-1.3.1:1.0: 4 ports detected
[  140.534240] Waiting 10sec before mounting root device...
[  140.914233] usb 1-1.3.2: new low-speed USB device number 7 using dwc_otg
[  142.054233] usb 1-1.3.2: New USB device found, idVendor=04d9, idProduct=1702
[  143.064233] usb 1-1.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  144.084222] usb 1-1.3.2: Product: USB Keyboard
[  145.094223] usb 1-1.3.2: Manufacturer:  
[  146.124219] input:   USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.0/input/input0
[  147.144294] generic-usb 0003:04D9:1702.0001: input: USB HID v1.10 Keyboard [  USB Keyboard] on usb-bcm2708_usb-1.3.2/input0
[  148.184226] input:   USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.1/input/input1
[  149.204243] generic-usb 0003:04D9:1702.0002: input: USB HID v1.10 Device [  USB Keyboard] on usb-bcm2708_usb-1.3.2/input1
[  151.564237] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[  152.584239] VFS: Mounted root (ext4 filesystem) on device 179:2.
[  153.604226] devtmpfs: mounted
[  154.614240] Freeing init memory: 124K
[  155.961700] udevd[139]: starting version 175
[  157.969708] cfg80211: Calling CRDA to update world regulatory domain
[  158.884641] usb 1-1.2: reset high-speed USB device number 4 using dwc_otg
[  159.154196] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  159.156103] Registered led device: rt2800usb-phy0::radio
[  159.156226] Registered led device: rt2800usb-phy0::assoc
[  159.156342] Registered led device: rt2800usb-phy0::quality
[  159.156568] usbcore: registered new interface driver rt2800usb
[  162.901343] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  163.367148] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  164.372595] bcm2835 ALSA card created!
[  164.388452] bcm2835 ALSA chip created!
[  164.403226] bcm2835 ALSA chip created!
[  164.417451] bcm2835 ALSA chip created!
[  164.424044] bcm2835 ALSA chip created!
[  164.440986] bcm2835 ALSA chip created!
[  164.450023] bcm2835 ALSA chip created!
[  164.458896] bcm2835 ALSA chip created!
[  173.040025] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[  176.261518] bcm2835-cpufreq: switching to governor ondemand
[  176.261546] bcm2835-cpufreq: switching to governor ondemand
[  180.796754] Adding 102396k swap on /var/swap.  Priority:-1 extents:129 across:1754856k SS
[  182.164480] Bluetooth: Core ver 2.16
[  182.172089] NET: Registered protocol family 31
[  182.172119] Bluetooth: HCI device and connection manager initialized
[  182.172139] Bluetooth: HCI socket layer initialized
[  182.172153] Bluetooth: L2CAP socket layer initialized
[  182.172209] Bluetooth: SCO socket layer initialized
[  182.234514] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  182.234545] Bluetooth: BNEP filters: protocol multicast
[  182.249277] Bluetooth: RFCOMM TTY layer initialized
[  182.249326] Bluetooth: RFCOMM socket layer initialized
[  182.249342] Bluetooth: RFCOMM ver 1.11
Unplugging and replugging the drive gives me this:

Code: Select all

[  290.453088] usb 1-1.3.1.2: new high-speed USB device number 8 using dwc_otg
[  290.554717] usb 1-1.3.1.2: New USB device found, idVendor=13fd, idProduct=1840
[  290.554747] usb 1-1.3.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  290.554765] usb 1-1.3.1.2: Product: External
[  290.554778] usb 1-1.3.1.2: Manufacturer: Generic
[  290.554791] usb 1-1.3.1.2: SerialNumber: 355643444E47304820202020
[  290.565047] scsi0 : usb-storage 1-1.3.1.2:1.0
[  291.564121] scsi 0:0:0:0: Direct-Access     Generic  External         1.03 PQ: 0 ANSI: 4
[  291.565634] sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[  291.566643] sd 0:0:0:0: [sda] Write Protect is off
[  291.566673] sd 0:0:0:0: [sda] Mode Sense: 21 00 00 00
[  291.567627] sd 0:0:0:0: [sda] No Caching mode page present
[  291.567655] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  291.571142] sd 0:0:0:0: [sda] No Caching mode page present
[  291.571171] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  291.637198]  sda: sda1 sda2
[  291.642895] sd 0:0:0:0: [sda] No Caching mode page present
[  291.642926] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  291.643088] sd 0:0:0:0: [sda] Attached SCSI disk
And after replugging the drive, fdisk -l shows this:

Code: Select all

Disk /dev/mmcblk0: 3965 MB, 3965190144 bytes
4 heads, 16 sectors/track, 121008 cylinders, total 7744512 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
Disk identifier: 0x00017b69

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            8192      122879       57344    c  W95 FAT32 (LBA)
/dev/mmcblk0p2          122880     7744511     3810816   83  Linux

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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
Disk identifier: 0x09cbf0b7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   308592584   154296261   83  Linux
/dev/sda2       308592585   312581807     1994611+  82  Linux swap / Solaris
lsusb identifies the drive as:

Code: Select all

Bus 001 Device 008: ID 13fd:1840 Initio Corporation Shintaro SH23SDOCK Hard Drive Docker [INIC-1608L]
The drive works beautifully after I unplug and replug it. Tried 3 different cables, different sockets on the USB hub, etc. Until it shows up reliably at boot, I'd rather not risk changing my boot configuration.

Is it just a flaky drive adapter, or is there a way to fix it?

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 10:56 am

What does lsmod show? You _may_ have to compile your own kernel if a driver needs to be
loaded. But, before going down that road, make sure you have added the following to /boot/cmdline.txt:
root=/dev/sda1 rootwait (Remember that everything in cmdline.txt needs to be all on 1 line!) Also,
after you get it going, edit /etc/fstab to reflect where the / and swap partitions are actually located...
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 11:26 am

My previous post assumes that you have a valid root filesystem (however you installed/copied it) on /dev/sda1....
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 11:27 am

I know I have to have
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
in my kernel if I want to have the rootfs on the HD using a cheep USB hub
if I don't it will never boot.

so I have to rebuild my kernel on that machine after I do updates that alter it
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

remsnet
Posts: 151
Joined: Wed Dec 19, 2012 7:32 pm
Location: Planet Gaia
Contact: Website Yahoo Messenger

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 11:31 am

DJ Charlie wrote:Ok, I've started the migration of my root and swap onto a USB hard drive, connected through a powered hub, with a 3 amp power supply (been troubleshooting before posting!), BUT, from a fresh boot, the system fails to see the drive every time unless I unplug it, and then plug it back in AFTER everything is booted.

Here's my initial dmesg:

Code: Select all

[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.27+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #250 PREEMPT Thu Oct 18 19:03:02 BST 2012
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 122880
[    0.000000] free_area_init_node: node 0, pgdat c050db28, node_mem_map c05b6000
[    0.000000]   Normal zone: 960 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 121920 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 121920
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708.boardrev=0xf bcm2708.serial=0x6e7bcba8 smsc95xx.macaddr=B8:27:EB:7B:CB:A8 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1e000000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline boot_delay=1000 rootdelay=10 rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 480MB = 480MB total
[    0.000000] Memory: 481384k/481384k available, 10136k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xde800000 - 0xe8000000   ( 152 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xde000000   ( 480 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04c0e78   (4836 kB)
[    0.000000]       .init : 0xc04c1000 - 0xc04e0b10   ( 127 kB)
[    0.000000]       .data : 0xc04e2000 - 0xc050e1c0   ( 177 kB)
[    0.000000]        .bss : 0xc050e1e4 - 0xc05b5128   ( 668 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] timer_set_mode: unhandled mode:1
[    0.000000] timer_set_mode: unhandled mode:3
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    6.326616] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    8.407068] pid_max: default: 32768 minimum: 301
[    9.417303] Mount-cache hash table entries: 512
[   10.427540] Initializing cgroup subsys cpuacct
[   11.437758] Initializing cgroup subsys devices
[   12.447975] Initializing cgroup subsys freezer
[   13.458188] Initializing cgroup subsys blkio
[   14.468418] CPU: Testing write buffer coherency: ok
[   16.489051] hw perfevents: enabled with v6 PMU driver, 3 counters available
[   17.499436] devtmpfs: initialized
[   18.519904] NET: Registered protocol family 16
[   19.530311] bcm2708.uart_clock = 0
[   20.540714] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[   21.551101] hw-breakpoint: maximum watchpoint size is 4 bytes.
[   22.561487] mailbox: Broadcom VideoCore Mailbox driver
[   23.571903] bcm2708_vcio: mailbox at f200b880
[   24.582296] bcm_power: Broadcom power driver
[   25.592690] bcm_power_open() -> 0
[   26.603078] bcm_power_request(0, 8)
[   28.113632] bcm_mailbox_read -> 00000080, 0
[   29.124015] bcm_power_request -> 0
[   30.134401] Serial: AMBA PL011 UART driver
[   31.144798] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[   32.467697] console [ttyAMA0] enabled
[   33.498182] bio: create slab <bio-0> at 0
[   34.508599] SCSI subsystem initialized
[   35.519000] usbcore: registered new interface driver usbfs
[   36.529401] usbcore: registered new interface driver hub
[   37.539807] usbcore: registered new device driver usb
[   38.550237] Switching to clocksource stc
[   39.564209] FS-Cache: Loaded
[   40.574210] CacheFiles: Loaded
[   41.594217] NET: Registered protocol family 2
[   42.604223] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[   43.614224] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[   44.624231] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[   45.634216] TCP: Hash tables configured (established 16384 bind 16384)
[   46.644211] TCP reno registered
[   47.654216] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   48.664219] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   49.674230] NET: Registered protocol family 1
[   50.684216] RPC: Registered named UNIX socket transport module.
[   51.694211] RPC: Registered udp transport module.
[   52.704213] RPC: Registered tcp transport module.
[   53.714211] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   54.724215] bcm2708_dma: DMA manager at de808000
[   55.734214] bcm2708_gpio: bcm2708_gpio_probe c04e9c18
[   56.744218] vc-mem: phys_addr:0x00000000 mem_base=0x1e000000 mem_size:0x20000000(512 MiB)
[   57.754213] audit: initializing netlink socket (disabled)
[   58.764216] type=2000 audit(55.150:1): initialized
[   59.884215] VFS: Disk quotas dquot_6.5.2
[   60.894218] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   61.904214] FS-Cache: Netfs 'nfs' registered for caching
[   62.914215] msgmni has been set to 940
[   63.924217] io scheduler noop registered
[   64.934212] io scheduler deadline registered (default)
[   65.944217] io scheduler cfq registered
[   66.964211] Console: switching to colour frame buffer device 80x30
[   68.994216] kgdb: Registered I/O driver kgdboc.
[   70.014213] brd: module loaded
[   71.034212] loop: module loaded
[   72.044229] vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0
[   75.074230] vcos: [1]: vchiq_init_state: called
[   78.104230] vcos: [1]: vchiq: initialised - version 2 (min 2), device 252.0
[   81.134223] usbcore: registered new interface driver smsc95xx
[   82.144221] cdc_ncm: 04-Aug-2011
[   83.154398] usbcore: registered new interface driver cdc_ncm
[   84.164225] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[   85.384222] Core Release: 2.80a
[   86.394212] Setting default values for core params
[   87.404212] Finished setting default values for core params
[   88.624211] Using Buffer DMA mode
[   89.634216] Periodic Transfer Interrupt Enhancement - disabled
[   90.644217] Multiprocessor Interrupt Enhancement - disabled
[   91.654243] OTG VER PARAM: 0, OTG VER FLAG: 0
[   92.664211] Dedicated Tx FIFOs mode
[   93.674218] dwc_otg: Microframe scheduler enabled
[   94.684218] dwc_otg bcm2708_usb: DWC OTG Controller
[   95.694229] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[   96.714229] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[   97.724221] Init: Port Power? op_state=1
[   98.734220] Init: Power Port (0)
[   99.744276] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[  100.754249] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  101.774228] usb usb1: Product: DWC OTG Controller
[  102.784224] usb usb1: Manufacturer: Linux 3.2.27+ dwc_otg_hcd
[  103.794223] usb usb1: SerialNumber: bcm2708_usb
[  104.804219] hub 1-0:1.0: USB hub found
[  105.814229] hub 1-0:1.0: 1 port detected
[  106.824221] dwc_otg: FIQ enabled
[  107.034221] Indeed it is in host mode hprt0 = 00021501
[  107.844225] dwc_otg: NAK holdoff enabled
[  108.294236] usb 1-1: new high-speed USB device number 2 using dwc_otg
[  108.864219] Module dwc_common_port init
[  109.314224] Indeed it is in host mode hprt0 = 00001101
[  109.884228] usbcore: registered new interface driver uas
[  110.594243] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[  110.904230] Initializing USB Mass Storage driver...
[  111.614236] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  111.924226] usbcore: registered new interface driver usb-storage
[  112.654234] hub 1-1:1.0: USB hub found
[  112.944264] USB Mass Storage support registered.
[  113.674241] hub 1-1:1.0: 3 ports detected
[  113.954233] usbcore: registered new interface driver libusual
[  114.964227] mousedev: PS/2 mouse device common for all mice
[  114.984286] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[  116.014238] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[  116.124233] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[  117.024229] bcm2835-cpufreq: switching to governor powersave
[  117.174234] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  118.034228] bcm2835-cpufreq: switching to governor powersave
[  118.224217] smsc95xx v1.0.4
[  119.054225] cpuidle: using governor ladder
[  119.324239] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7b:cb:a8
[  120.064228] cpuidle: using governor menu
[  120.454238] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[  121.084224] sdhci: Secure Digital Host Controller Interface driver
[  121.594249] usb 1-1.2: New USB device found, idVendor=148f, idProduct=5370
[  122.104227] sdhci: Copyright(c) Pierre Ossman
[  122.614244] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  123.114242] sdhci: Enable low-latency mode
[  123.664239] usb 1-1.2: Product: 802.11 n WLAN
[  124.134230] bcm_power_open() -> 1
[  124.684229] usb 1-1.2: Manufacturer: Ralink
[  125.154242] Registered led device: mmc0::
[  125.694235] usb 1-1.2: SerialNumber: 1.0
[  126.184241] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[  126.294230] mmc0: problem reading SD Status register.
[  126.804239] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[  127.254243] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[  127.334237] mmc0: new high speed SDHC card at address e624
[  127.954254] usb 1-1.3: New USB device found, idVendor=1a40, idProduct=0101
[  128.274225] sdhci-pltfm: SDHCI platform and OF driver helper
[  128.384229] mmcblk0: mmc0:e624 SU04G 3.69 GiB 
[  128.964241] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  129.294228] Registered led device: led0
[  129.434223]  mmcblk0: p1 p2
[  130.014233] usb 1-1.3: Product: USB 2.0 Hub
[  130.314226] usbcore: registered new interface driver usbhid
[  131.044231] hub 1-1.3:1.0: USB hub found
[  131.334222] usbhid: USB HID core driver
[  132.344225] TCP cubic registered
[  132.350573] hub 1-1.3:1.0: 4 ports detected
[  133.364243] Initializing XFRM netlink socket
[  134.384249] NET: Registered protocol family 17
[  134.554263] usb 1-1.3.1: new high-speed USB device number 6 using dwc_otg
[  135.404243] Registering the dns_resolver key type
[  135.694245] usb 1-1.3.1: New USB device found, idVendor=1a40, idProduct=0101
[  136.424221] VFP support v0.3: 
[  136.714241] usb 1-1.3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  137.434239] implementor 41 architecture 1 part 20 variant b rev 5
[  137.754241] usb 1-1.3.1: Product: USB 2.0 Hub
[  138.474242] registered taskstats version 1
[  138.764237] hub 1-1.3.1:1.0: USB hub found
[  139.494227] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[  139.804236] hub 1-1.3.1:1.0: 4 ports detected
[  140.534240] Waiting 10sec before mounting root device...
[  140.914233] usb 1-1.3.2: new low-speed USB device number 7 using dwc_otg
[  142.054233] usb 1-1.3.2: New USB device found, idVendor=04d9, idProduct=1702
[  143.064233] usb 1-1.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  144.084222] usb 1-1.3.2: Product: USB Keyboard
[  145.094223] usb 1-1.3.2: Manufacturer:  
[  146.124219] input:   USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.0/input/input0
[  147.144294] generic-usb 0003:04D9:1702.0001: input: USB HID v1.10 Keyboard [  USB Keyboard] on usb-bcm2708_usb-1.3.2/input0
[  148.184226] input:   USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.1/input/input1
[  149.204243] generic-usb 0003:04D9:1702.0002: input: USB HID v1.10 Device [  USB Keyboard] on usb-bcm2708_usb-1.3.2/input1
[  151.564237] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[  152.584239] VFS: Mounted root (ext4 filesystem) on device 179:2.
[  153.604226] devtmpfs: mounted
[  154.614240] Freeing init memory: 124K
[  155.961700] udevd[139]: starting version 175
[  157.969708] cfg80211: Calling CRDA to update world regulatory domain
[  158.884641] usb 1-1.2: reset high-speed USB device number 4 using dwc_otg
[  159.154196] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  159.156103] Registered led device: rt2800usb-phy0::radio
[  159.156226] Registered led device: rt2800usb-phy0::assoc
[  159.156342] Registered led device: rt2800usb-phy0::quality
[  159.156568] usbcore: registered new interface driver rt2800usb
[  162.901343] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  163.367148] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  164.372595] bcm2835 ALSA card created!
[  164.388452] bcm2835 ALSA chip created!
[  164.403226] bcm2835 ALSA chip created!
[  164.417451] bcm2835 ALSA chip created!
[  164.424044] bcm2835 ALSA chip created!
[  164.440986] bcm2835 ALSA chip created!
[  164.450023] bcm2835 ALSA chip created!
[  164.458896] bcm2835 ALSA chip created!
[  173.040025] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[  176.261518] bcm2835-cpufreq: switching to governor ondemand
[  176.261546] bcm2835-cpufreq: switching to governor ondemand
[  180.796754] Adding 102396k swap on /var/swap.  Priority:-1 extents:129 across:1754856k SS
[  182.164480] Bluetooth: Core ver 2.16
[  182.172089] NET: Registered protocol family 31
[  182.172119] Bluetooth: HCI device and connection manager initialized
[  182.172139] Bluetooth: HCI socket layer initialized
[  182.172153] Bluetooth: L2CAP socket layer initialized
[  182.172209] Bluetooth: SCO socket layer initialized
[  182.234514] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  182.234545] Bluetooth: BNEP filters: protocol multicast
[  182.249277] Bluetooth: RFCOMM TTY layer initialized
[  182.249326] Bluetooth: RFCOMM socket layer initialized
[  182.249342] Bluetooth: RFCOMM ver 1.11
Unplugging and replugging the drive gives me this:

Code: Select all

[  290.453088] usb 1-1.3.1.2: new high-speed USB device number 8 using dwc_otg
[  290.554717] usb 1-1.3.1.2: New USB device found, idVendor=13fd, idProduct=1840
[  290.554747] usb 1-1.3.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  290.554765] usb 1-1.3.1.2: Product: External
[  290.554778] usb 1-1.3.1.2: Manufacturer: Generic
[  290.554791] usb 1-1.3.1.2: SerialNumber: 355643444E47304820202020
[  290.565047] scsi0 : usb-storage 1-1.3.1.2:1.0
[  291.564121] scsi 0:0:0:0: Direct-Access     Generic  External         1.03 PQ: 0 ANSI: 4
[  291.565634] sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[  291.566643] sd 0:0:0:0: [sda] Write Protect is off
[  291.566673] sd 0:0:0:0: [sda] Mode Sense: 21 00 00 00
[  291.567627] sd 0:0:0:0: [sda] No Caching mode page present
[  291.567655] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  291.571142] sd 0:0:0:0: [sda] No Caching mode page present
[  291.571171] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  291.637198]  sda: sda1 sda2
[  291.642895] sd 0:0:0:0: [sda] No Caching mode page present
[  291.642926] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  291.643088] sd 0:0:0:0: [sda] Attached SCSI disk
And after replugging the drive, fdisk -l shows this:

Code: Select all

Disk /dev/mmcblk0: 3965 MB, 3965190144 bytes
4 heads, 16 sectors/track, 121008 cylinders, total 7744512 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
Disk identifier: 0x00017b69

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            8192      122879       57344    c  W95 FAT32 (LBA)
/dev/mmcblk0p2          122880     7744511     3810816   83  Linux

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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
Disk identifier: 0x09cbf0b7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   308592584   154296261   83  Linux
/dev/sda2       308592585   312581807     1994611+  82  Linux swap / Solaris
lsusb identifies the drive as:

Code: Select all

Bus 001 Device 008: ID 13fd:1840 Initio Corporation Shintaro SH23SDOCK Hard Drive Docker [INIC-1608L]
The drive works beautifully after I unplug and replug it. Tried 3 different cables, different sockets on the USB hub, etc. Until it shows up reliably at boot, I'd rather not risk changing my boot configuration.

Is it just a flaky drive adapter, or is there a way to fix it?
Well you altered the /boot from vfat to ext3 linux partion.
revert that step back to vfat and you may boot ;-)

regards

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 11:42 am

I took my Cypress USB/ATA out and popped in a cheapo USB/SATA bridge and 250G hard drive. Of all the adapters I have, that was the only one I was compiling a kernel for. Nice to have all 3 Pi's at the same kernel/firmware level and not have to do an overnight build. It still bothers me that (according to the comments) that the Cypress _should_ have "Just Worked", it required "something" chipset specific
to get poked/prodded/kicked to get it's attention....
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 11:45 am

/boot stays on the SD card, it's only the / filesystem (and swap) you want on /dev/sda!
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 12:38 pm

remsnet wrote: Well you altered the /boot from vfat to ext3 linux partion.
revert that step back to vfat and you may boot ;-)
How do you come to that conclusion? AFAICS the SD card has the 'normal' partitions and the HD has a linux and a swap partition...

Gr.
Dirk.

DJ Charlie
Posts: 30
Joined: Wed Feb 01, 2012 6:33 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 12:40 pm

My lsmod:

Code: Select all

Module                  Size  Used by
rfcomm                 33663  0 
bnep                   10514  2 
bluetooth             157711  10 bnep,rfcomm
snd_bcm2835            12808  0 
snd_pcm_oss            35120  0 
snd_mixer_oss          13565  1 snd_pcm_oss
snd_pcm                74834  2 snd_pcm_oss,snd_bcm2835
snd_seq_dummy           1592  0 
snd_seq_oss            29119  0 
snd_seq_midi            4518  0 
snd_rawmidi            20611  1 snd_seq_midi
snd_seq_midi_event      6453  2 snd_seq_midi,snd_seq_oss
snd_seq                52536  6 snd_seq_midi_event,snd_seq_midi,snd_seq_oss,snd_seq_dummy
snd_timer              19698  2 snd_seq,snd_pcm
snd_seq_device          6300  5 snd_seq,snd_rawmidi,snd_seq_midi,snd_seq_oss,snd_seq_dummy
snd                    52489  9 snd_seq_device,snd_timer,snd_seq,snd_rawmidi,snd_seq_oss,snd_pcm,snd_mixer_oss,snd_pcm_oss,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm
arc4                    1187  2 
rt2800usb              13009  0 
rt2800lib              47242  1 rt2800usb
crc_ccitt               1465  1 rt2800lib
rt2x00usb              11075  1 rt2800usb
rt2x00lib              41057  3 rt2x00usb,rt2800lib,rt2800usb
mac80211              236178  3 rt2x00lib,rt2x00usb,rt2800lib
evdev                   8682  2 
cfg80211              171957  2 mac80211,rt2x00lib
As for the filesystem on the drive, I'd rather get it showing up reliably after booting before I start reformatting it, and moving my system over to it.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 12:41 pm

MaxK1 wrote:/boot stays on the SD card, it's only the / filesystem (and swap) you want on /dev/sda!
Don't think this is relevant at this point. Looking at the log the HD is not even recognised at startup. As the OP says (and the log seems to confirm this) the HD only shows up when he 're-plugs' it after boot.

Gr.
Dirk.

thradtke
Posts: 492
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 12:42 pm

DJ Charlie wrote:BUT, from a fresh boot, the system fails to see the drive every time unless I unplug it, and then plug it back in AFTER everything is booted.
Yes, the drive isn't ready fast enough. There's a workaround you'll find when using the board search functionality.
Rocket Scientist.

DJ Charlie
Posts: 30
Joined: Wed Feb 01, 2012 6:33 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 12:45 pm

thradtke wrote:
DJ Charlie wrote:BUT, from a fresh boot, the system fails to see the drive every time unless I unplug it, and then plug it back in AFTER everything is booted.
Yes, the drive isn't ready fast enough. There's a workaround you'll find when using the board search functionality.
The boot_delay=32 rootdelay=10 added to cmdline.txt? First thing I tried, sadly.

thradtke
Posts: 492
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 12:50 pm

DJ Charlie wrote:The boot_delay=32 rootdelay=10 added to cmdline.txt? First thing I tried, sadly.
Increasing the boot delay doesn't help?
Rocket Scientist.

remsnet
Posts: 151
Joined: Wed Dec 19, 2012 7:32 pm
Location: Planet Gaia
Contact: Website Yahoo Messenger

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 12:51 pm

MaxK1 wrote:/boot stays on the SD card, it's only the / filesystem (and swap) you want on /dev/sda!

okay , got your point .

Did you updated initrd accordingly to load the USB subsystem´s relevant Modules from initrd ?
Been your Kernel compiled in the hotplug support ?

DJ Charlie
Posts: 30
Joined: Wed Feb 01, 2012 6:33 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 12:57 pm

thradtke wrote:Increasing the boot delay doesn't help?
Apparently not with those values. Think I should increase the boot_delay?
remsnet wrote:okay , got your point .

Did you updated initrd accordingly to load the USB subsystem´s relevant Modules from initrd ?
Been your Kernel compiled in the hotplug support ?
Running the stock kernel, and what modules do you mean? The drive works beautifully, IF I unplug it and plug it back in, AFTER booting up.

thradtke
Posts: 492
Joined: Wed May 16, 2012 5:16 am
Location: Germany / EL

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 1:09 pm

DJ Charlie wrote:Apparently not with those values. Think I should increase the boot_delay?
I do. The most efficient way to determine a good value is a binary search.

http://en.wikipedia.org/wiki/Binary_search_algorithm
Rocket Scientist.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 1:14 pm

Can you hear the drive spinning up/heads settling within the 10 seconds (or whatever value you chose)? 10 seconds should be enough - I'm pretty certain even my Microdrive will spin up in that amount of time. I don't see any modules listed for the drive in the 'lsmod'...
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

DJ Charlie
Posts: 30
Joined: Wed Feb 01, 2012 6:33 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 1:48 pm

MaxK1 wrote:Can you hear the drive spinning up/heads settling within the 10 seconds (or whatever value you chose)? 10 seconds should be enough - I'm pretty certain even my Microdrive will spin up in that amount of time. I don't see any modules listed for the drive in the 'lsmod'...
The drive spins up right away, no problems there at all.

remsnet
Posts: 151
Joined: Wed Dec 19, 2012 7:32 pm
Location: Planet Gaia
Contact: Website Yahoo Messenger

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 1:50 pm

MaxK1 wrote:Can you hear the drive spinning up/heads settling within the 10 seconds (or whatever value you chose)? 10 seconds should be enough - I'm pretty certain even my Microdrive will spin up in that amount of time. I don't see any modules listed for the drive in the 'lsmod'...
Well,
i ask if you added this modules to initrd:
rt2800usb 13009 0
rt2800lib 47242 1 rt2800usb
crc_ccitt 1465 1 rt2800lib
rt2x00usb 11075 1 rt2800usb
rt2x00lib 41057 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 236178 3 rt2x00lib,rt2x00usb,rt2800lib
They not required when you _not_ boot from external disk.

regards

DJ Charlie
Posts: 30
Joined: Wed Feb 01, 2012 6:33 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 2:23 pm

remsnet wrote:Well,
i ask if you added this modules to initrd:
rt2800usb 13009 0
rt2800lib 47242 1 rt2800usb
crc_ccitt 1465 1 rt2800lib
rt2x00usb 11075 1 rt2800usb
rt2x00lib 41057 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 236178 3 rt2x00lib,rt2x00usb,rt2800lib
They not required when you _not_ boot from external disk.

regards
They don't show up when the drive IS working either. I think you're off on a completely different track.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 2:38 pm

The Generic USB mass storage driver is built-in so no initrd should be needed for that drive. So, what I would do to see if it is even going to try is to change /boot/cmdline.txt to point at
root=/dev/sda2 rootwait and see what happens.

If it takes off, you're good to go (assuming you have put a valid root filesystem on /dev/sda2, of course!)
If it hangs, the drive isn't being detected. Then it's a matter of figuring out what it needs.
If it carps, the filesystem may not be valid, but at least it tried to mount it.

# 2 is "A Bad Thing(TM)"

All that should do is give us a direction... Make sure you can easily restore your original cmdline.txt... Or use a different card and clone it first... ;-)
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

stupid_boy
Posts: 64
Joined: Tue Jan 01, 2013 7:53 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 2:44 pm

i boot from sda2 too, some noname external usb 2.5 sata hdd case. only modification i made is in cmdline.txt.
difference with this here is that my partitions are in reverse, first is swap and is 4G in size. can you try to reverse yours?
i have relatively old setup, only updated/upgraded over time. may be you can try this way too.

recently i have problem ( with upgrade, not with boot ) when i removed second partition from SD card, nevermind it seem not used, but this is different story. this lesson lead me to some unusual conclusions.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Can't boot with /dev/sda!

Thu Feb 07, 2013 2:57 pm

Ooops - My Bad, should be root=/dev/sda1 rootwait.
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

DJ Charlie
Posts: 30
Joined: Wed Feb 01, 2012 6:33 pm

Re: Can't boot with /dev/sda!

Fri Feb 08, 2013 12:35 am

No joy. Increased the values double (boot_delay=64 rootdelay=20), same result. Tried setting root=/dev/sda2, same result, had to swap back to my old SD card. The drive spins up. If I plug it in AFTER booting, it works flawlessly.

I'm starting to suspect the USB/SATA adapter now.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: Can't boot with /dev/sda!

Fri Feb 08, 2013 7:25 am

I wonder if rootwait is the same as rootdelay=nn
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

Return to “Troubleshooting”