* Installing GuixSD on an external USB hard drive
@ 2018-04-16 18:04 Divan Santana
2018-04-16 19:09 ` Pierre Neidhardt
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Divan Santana @ 2018-04-16 18:04 UTC (permalink / raw)
To: help-guix
Hi Guix,
So I'm installing GuixSD on an external USB hard drive.
This is obviously quite useful to test and setup all before you switch
to it. I plan to eventually install on laptop.
I could do it in a VM but...
Anyway, the install went flawless and docs are great.
*After a reboot*, I did a guix pull and system reconfigure.
(I did change the drive letter, since post reboot grub was on sdb, not c)
I got an error saying:
unknown location, you may need these modules in the initrd: uas
usb_storage .
It then pastes the snippet of code. Really cool and useful.
Though, bit confused why the install worked and rebooted, yet post
reboot I now require it?
Moving on, I add the snippet of code but it errors out with:
usb_storage module not found.
A find shows the module is in the 4.16 dir, named usb-storage.
Note - not _.
I thought perhaps that's the issue so I changed the code to specify mod
usb-storage (not _).
However I then get the orig error, that I should add usb_storage mod in
initrd-modules.
Suppose the question is why is usb_storage not found?
Any ideas?
(sorry for lack of exact messages, don't have remote access to system at mo)
--
Divan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installing GuixSD on an external USB hard drive
2018-04-16 18:04 Installing GuixSD on an external USB hard drive Divan Santana
@ 2018-04-16 19:09 ` Pierre Neidhardt
2018-04-17 7:54 ` Divan Santana
2018-04-17 13:04 ` Divan Santana
2018-04-17 13:32 ` myglc2
2 siblings, 1 reply; 9+ messages in thread
From: Pierre Neidhardt @ 2018-04-16 19:09 UTC (permalink / raw)
To: Divan Santana; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
But did you _add_ the module into the initrd? This should be done in your
configuration file upon which you run `guix system reconfigure`.
(operating-system
;...
(initrd-modules (append (list "usb_module")
%base-initrd-modules))
Also see the info page "(guix) operating-system Reference".
--
Pierre Neidhardt
Reporter: "What would you do if you found a million dollars?"
Yogi Berra: "If the guy was poor, I would give it back."
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installing GuixSD on an external USB hard drive
2018-04-16 19:09 ` Pierre Neidhardt
@ 2018-04-17 7:54 ` Divan Santana
2018-04-17 11:34 ` Pierre Neidhardt
0 siblings, 1 reply; 9+ messages in thread
From: Divan Santana @ 2018-04-17 7:54 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: help-guix
Pierre Neidhardt <ambrevar@gmail.com> writes:
> But did you _add_ the module into the initrd? This should be done in your
> configuration file upon which you run `guix system reconfigure`.
>
> (operating-system
> ;...
>
> (initrd-modules (append (list "usb_module")
> %base-initrd-modules))
>
> Also see the info page "(guix) operating-system Reference".
Yes I did add it exactly like that. Well with "uas" too.
I did say that in my email:
> It then pastes the snippet of code.
> Moving on, *I add the snippet of code* but it errors out with:
> usb_storage module not found.
Hence, it's obviously reading the code since it produces a diff error.
The Q is why it doesn't find the module.
--
Divan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installing GuixSD on an external USB hard drive
2018-04-17 7:54 ` Divan Santana
@ 2018-04-17 11:34 ` Pierre Neidhardt
0 siblings, 0 replies; 9+ messages in thread
From: Pierre Neidhardt @ 2018-04-17 11:34 UTC (permalink / raw)
To: Divan Santana; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 167 bytes --]
> I did say that in my email:
>
>> It then pastes the snippet of code.
OK, I hadn't understood what you meant with "snippet of code".
--
Pierre Neidhardt
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installing GuixSD on an external USB hard drive
2018-04-16 18:04 Installing GuixSD on an external USB hard drive Divan Santana
2018-04-16 19:09 ` Pierre Neidhardt
@ 2018-04-17 13:04 ` Divan Santana
2018-04-17 16:26 ` Chris Marusich
2018-04-17 13:32 ` myglc2
2 siblings, 1 reply; 9+ messages in thread
From: Divan Santana @ 2018-04-17 13:04 UTC (permalink / raw)
To: help-guix
Divan Santana <divan@santanas.co.za> writes:
> Hi Guix,
>
> So I'm installing GuixSD on an external USB hard drive.
>
> This is obviously quite useful to test and setup all before you switch
> to it. I plan to eventually install on laptop.
>
> I could do it in a VM but...
>
> Anyway, the install went flawless and docs are great.
>
> *After a reboot*, I did a guix pull and system reconfigure.
>
> (I did change the drive letter, since post reboot grub was on sdb, not c)
>
> I got an error saying:
>
> unknown location, you may need these modules in the initrd: uas
> usb_storage .
>
> It then pastes the snippet of code. Really cool and useful.
>
> Though, bit confused why the install worked and rebooted, yet post
> reboot I now require it?
>
> Moving on, I add the snippet of code but it errors out with:
>
> usb_storage module not found.
>
> A find shows the module is in the 4.16 dir, named usb-storage.
>
> Note - not _.
>
> I thought perhaps that's the issue so I changed the code to specify mod
> usb-storage (not _).
>
> However I then get the orig error, that I should add usb_storage mod in
> initrd-modules.
>
> Suppose the question is why is usb_storage not found?
>
> Any ideas?
>
> (sorry for lack of exact messages, don't have remote access to system at mo)
OK, I think this is a bug.
The way I worked around it was to:
1) remount /gnu/store rw
2)
cd
/gnu/store/n9ym4yl7s55pm57rnc5whjlzjgvxas32-linux-libre-4.16.2/lib/modules/4.16.2-gnu/kernel/drivers/usb/storage/
cp usb_storage.ko usb-storage.ko
As said earlier guix doesn't allow me to specify usb-storage in the scm
file and it suggests usb_storage, which it fails to find without the
above hack. Prob gets it from lsmod which reports usb_storage while the
file is usb-storage.ko
This is obviously not right.
Prob a simple fix but out of my capabilities at the mo.
lol
--
Divan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installing GuixSD on an external USB hard drive
2018-04-16 18:04 Installing GuixSD on an external USB hard drive Divan Santana
2018-04-16 19:09 ` Pierre Neidhardt
2018-04-17 13:04 ` Divan Santana
@ 2018-04-17 13:32 ` myglc2
2018-04-19 9:23 ` Divan Santana
2 siblings, 1 reply; 9+ messages in thread
From: myglc2 @ 2018-04-17 13:32 UTC (permalink / raw)
To: Divan Santana; +Cc: help-guix
On 04/16/2018 at 20:04 Divan Santana writes:
> Hi Guix,
>
> So I'm installing GuixSD on an external USB hard drive.
>
> This is obviously quite useful to test and setup all before you switch
> to it. I plan to eventually install on laptop.
>
> I could do it in a VM but...
>
> Anyway, the install went flawless and docs are great.
>
> *After a reboot*, I did a guix pull and system reconfigure.
>
> (I did change the drive letter, since post reboot grub was on sdb, not c)
Hi Divan,
GuixSD is intolerant to a change in logical assignment of the boot drive
after the the "git init" ...
Ref: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23072
Maybe your problem is related?
HTH - George
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installing GuixSD on an external USB hard drive
2018-04-17 13:04 ` Divan Santana
@ 2018-04-17 16:26 ` Chris Marusich
2018-04-19 9:26 ` Divan Santana
0 siblings, 1 reply; 9+ messages in thread
From: Chris Marusich @ 2018-04-17 16:26 UTC (permalink / raw)
To: Divan Santana; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1495 bytes --]
Hi Divan!
Thank you for taking the time to write to us about the problem. These
kinds of but reports are very helpful!
On Tue, Apr 17, 2018, 06:43 Divan Santana <divan@santanas.co.za> wrote:
> OK, I think this is a bug.
It could be. Please report it to bug-guix@gnu.org. If you have an
operating system configuration file that reproduces the problem
consistently, please share it in your report. In particular, if you can
reproduce the problem using "guix system vm", it will make things much
easier for us to debug. The manual describes how to use that command:
https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-system.html
The way I worked around it was to:
> 1) remount /gnu/store rw
>
> 2)
>
> cd
>
> /gnu/store/n9ym4yl7s55pm57rnc5whjlzjgvxas32-linux-libre-4.16.2/lib/modules/4.16.2-gnu/kernel/drivers/usb/storage/
> cp usb_storage.ko usb-storage.ko
>
That's good to know, but you should not modify files in the store or mount
it rw. It can lead to unpredictable behavior because doing so may violate
certain invariants. When hacking around on a throw-away system to
investigate an issue like this, don't this might be useful, but on systems
you care about, essentially the only way you should interact with the store
is via the public Guix scheme APIs and the Guix command line tools, since
they will ensure that the store's invariants are never violated.
Again, thank you for the report! I hope everything is smooth sailing from
this point on.
--
Chris
[-- Attachment #2: Type: text/html, Size: 2739 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installing GuixSD on an external USB hard drive
2018-04-17 13:32 ` myglc2
@ 2018-04-19 9:23 ` Divan Santana
0 siblings, 0 replies; 9+ messages in thread
From: Divan Santana @ 2018-04-19 9:23 UTC (permalink / raw)
To: myglc2; +Cc: help-guix
myglc2@gmail.com writes:
> On 04/16/2018 at 20:04 Divan Santana writes:
>
>> Hi Guix,
>>
>> So I'm installing GuixSD on an external USB hard drive.
>>
>> This is obviously quite useful to test and setup all before you switch
>> to it. I plan to eventually install on laptop.
>>
>> I could do it in a VM but...
>>
>> Anyway, the install went flawless and docs are great.
>>
>> *After a reboot*, I did a guix pull and system reconfigure.
>>
>> (I did change the drive letter, since post reboot grub was on sdb, not c)
>
> Hi Divan,
>
> GuixSD is intolerant to a change in logical assignment of the boot drive
> after the the "git init" ...
>
> Ref: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23072
>
> Maybe your problem is related?
Thanks! Seems similar, though I think not quite the same.
--
Divan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installing GuixSD on an external USB hard drive
2018-04-17 16:26 ` Chris Marusich
@ 2018-04-19 9:26 ` Divan Santana
0 siblings, 0 replies; 9+ messages in thread
From: Divan Santana @ 2018-04-19 9:26 UTC (permalink / raw)
To: Chris Marusich; +Cc: help-guix
Chris Marusich <cmmarusich@gmail.com> writes:
> Hi Divan!
>
> Thank you for taking the time to write to us about the problem. These
> kinds of but reports are very helpful!
Your welcome. Thanks for the great reply.
> On Tue, Apr 17, 2018, 06:43 Divan Santana <divan@santanas.co.za> wrote:
>
>> OK, I think this is a bug.
>
>
> It could be. Please report it to bug-guix@gnu.org. If you have an
> operating system configuration file that reproduces the problem
> consistently, please share it in your report. In particular, if you can
> reproduce the problem using "guix system vm", it will make things much
> easier for us to debug. The manual describes how to use that command:
>
> https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-system.html
I need to spend time on this and try reproduce it and report it
properly. For the moment I've worked around it.
>
> The way I worked around it was to:
>
>
>> 1) remount /gnu/store rw
>>
>> 2)
>>
>> cd
>>
>> /gnu/store/n9ym4yl7s55pm57rnc5whjlzjgvxas32-linux-libre-4.16.2/lib/modules/4.16.2-gnu/kernel/drivers/usb/storage/
>> cp usb_storage.ko usb-storage.ko
>>
>
> That's good to know, but you should not modify files in the store or mount
> it rw.
Absolutely. I just did it to try test the theory. I've undone the hack
and will see if things break later. But this is a test system.
> It can lead to unpredictable behavior because doing so may violate
> certain invariants. When hacking around on a throw-away system to
> investigate an issue like this, don't this might be useful, but on systems
> you care about, essentially the only way you should interact with the store
> is via the public Guix scheme APIs and the Guix command line tools, since
> they will ensure that the store's invariants are never violated.
> Again, thank you for the report! I hope everything is smooth sailing from
> this point on.
Thanks again.
Doubt it will be smooth sailing lol. But I'm learning and guix is
awesome and hope to continue learning and cotribute more in time.
--
Divan
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-04-19 9:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-16 18:04 Installing GuixSD on an external USB hard drive Divan Santana
2018-04-16 19:09 ` Pierre Neidhardt
2018-04-17 7:54 ` Divan Santana
2018-04-17 11:34 ` Pierre Neidhardt
2018-04-17 13:04 ` Divan Santana
2018-04-17 16:26 ` Chris Marusich
2018-04-19 9:26 ` Divan Santana
2018-04-17 13:32 ` myglc2
2018-04-19 9:23 ` Divan Santana
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).