by ldi9999 » Thu Apr 05, 2012 5:50 pm
$this->bbcode_second_pass_quote('WarheadsSE', 'H')ere's the breakdown:
- You want to change to sdb1 for rootfs
- You want to leave SATA attached, thus the above is necessary.
Correct, sdb1 is current a USB flash drive, which has rootfs and working.
Here's how it can be done:
- use blparam to change the value of root in the bootargs variable.
--- This means `blparam bootargs="entire line here but with root's value changed"`
I think I will take this approach
- Use serial to interrupt & change the value appropriately using the setenv command.
- Boot from SATA and run the command from there.
Here's how it can break:
- there aren't 2 drives, thus /dev/sdb1 is not present, no boot.
I will always have both USB and SATA attached. i.e. /sdb1 is supposed to be USB since SATA always take /sda1
- the "second" drive is not an oxnas rootfs, no boot.
see above
- a SATA drive is attached with the magic dust, it will try to boot from SATA, likely no boot.
What's the reason there is no boot? Is it because the bootargs change to /sdb1?
My last question remains. What if I changed bootargs, attached both drives, and have rootfs on USB (/sdb1), but the system won't boot. How can I reverse the change in bootargs? I do not have serial cable. Ans as you mentioned "a SATA drive is attached with the magic dust, it will try to boot from SATA, likely no boot", which means SATA boot is not an option either.