Re: r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Warren Block

On Sat, 4 Jun 2016, Matthias Apitz wrote:


El día Saturday, June 04, 2016 a las 02:41:48PM +0200, Michael Gmelin escribió:


It's also covered in UPDATING:

20151011:
Compatibility shims for legacy ATA device names have been
removed. It includes ATA_STATIC_ID kernel option,
kern.cam.ada.legacy_aliases and kern.geom.raid.legacy_aliases
loader tunables, kern.devalias.* environment variables, /dev/ad*
and /dev/ar* symbolic links.



Next time I will do read UPDATING. Thanks for your help.


Use labels so there are no static device names at all.  With MBR, the 
options are limited, but UFS labels work and have no metadata problems:


http://www.wonkity.com/~wblock/docs/html/labels.html

GPT has very nice partition labels that can be set with gpart -l.  It 
works with i386 and BIOS booting.

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Matthias Apitz
El día Saturday, June 04, 2016 a las 02:41:48PM +0200, Michael Gmelin escribió:

> It's also covered in UPDATING:
> 
> 20151011:
> Compatibility shims for legacy ATA device names have been
> removed. It includes ATA_STATIC_ID kernel option,
> kern.cam.ada.legacy_aliases and kern.geom.raid.legacy_aliases
> loader tunables, kern.devalias.* environment variables, /dev/ad*
> and /dev/ar* symbolic links.
> 

Next time I will do read UPDATING. Thanks for your help.

matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
"Die Verkaufsschlager des Buchmarkts geben Auskunft über den Zustand einer 
Gesellschaft bzw.
sind, was diese Zeiten angeht, Gradmesser fortschreitenden Schwachsinns. ..." 
(jW 19.05.2016)
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Michael Gmelin
On Sat, 4 Jun 2016 14:01:34 +0200
Matthias Apitz  wrote:

> El día Saturday, June 04, 2016 a las 01:54:30PM +0200, Michael Gmelin
> escribió:
> 
> > 
> > On Sat, 4 Jun 2016 13:48:52 +0200
> > Matthias Apitz  wrote:
> >   
> > > > Did you do a full clean build?
> > > > GENERIC or custom kernel config?
> > > 
> > > yes, clean 'make buildkernel KERNCONF=GENERIC'  
> > And then 'make installkernel KERNCONF=GENERIC' I suppose.  
> 
> yes, ofc :-)
> 
> > > interestingly: I can type at the prompt 'mountroot> ' into the
> > > dark and always when I press Ctrl the chars are written to the
> > > screen and so I can specify 'ufs:/dev/ad4s1a' which than leads to
> > > the same error 19.  
> > 
> > Did you try ufs:/dev/ada0s1a?  
> 
> no, but now and it worked; I will adjust /etc/fstab; but why is this?
> 

The SATA subsystem was changed to use cam back in 2012 [1], which
changed device numbering from adX to ada0, ada1.

Back then, a sysctl called kern.cam.ada.legacy_aliases, which is
enabled by default, was provided for backwards compatibility.

Some research shows that this feature was removed in r289137 [2]

It's also covered in UPDATING:

20151011:
Compatibility shims for legacy ATA device names have been
removed. It includes ATA_STATIC_ID kernel option,
kern.cam.ada.legacy_aliases and kern.geom.raid.legacy_aliases
loader tunables, kern.devalias.* environment variables, /dev/ad*
and /dev/ar* symbolic links.

- Michael

[1] https://www.freebsd.org/releases/9.0R/relnotes-detailed.html
(see 3.2.3)
[2] https://svnweb.freebsd.org/base?view=revision=289137

-- 
Michael Gmelin
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Matthias Apitz
El día Saturday, June 04, 2016 a las 01:54:30PM +0200, Michael Gmelin escribió:

> 
> On Sat, 4 Jun 2016 13:48:52 +0200
> Matthias Apitz  wrote:
> 
> > > Did you do a full clean build?
> > > GENERIC or custom kernel config?  
> > 
> > yes, clean 'make buildkernel KERNCONF=GENERIC'
> And then 'make installkernel KERNCONF=GENERIC' I suppose.

yes, ofc :-)

> > interestingly: I can type at the prompt 'mountroot> ' into the dark
> > and always when I press Ctrl the chars are written to the screen and
> > so I can specify 'ufs:/dev/ad4s1a' which than leads to the same error
> > 19.
> 
> Did you try ufs:/dev/ada0s1a?

no, but now and it worked; I will adjust /etc/fstab; but why is this?

Thanks

matthias
-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
"Die Verkaufsschlager des Buchmarkts geben Auskunft über den Zustand einer 
Gesellschaft bzw.
sind, was diese Zeiten angeht, Gradmesser fortschreitenden Schwachsinns. ..." 
(jW 19.05.2016)
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Michael Gmelin

On Sat, 4 Jun 2016 13:48:52 +0200
Matthias Apitz  wrote:

> Hi Michael,
> 
> El día Saturday, June 04, 2016 a las 01:40:46PM +0200, Michael Gmelin
> escribió:
> 
> > Hi Matthias,
> > 
> > Did you try to connect an external USB keyboard?  
> 
> no; it uses the laptop onboard keyboard;
> 
> > i386 or amd64?  
> 
> i386;
> 
> > Did you do a full clean build?
> > GENERIC or custom kernel config?  
> 
> yes, clean 'make buildkernel KERNCONF=GENERIC'
And then 'make installkernel KERNCONF=GENERIC' I suppose.

> 
> interestingly: I can type at the prompt 'mountroot> ' into the dark
> and always when I press Ctrl the chars are written to the screen and
> so I can specify 'ufs:/dev/ad4s1a' which than leads to the same error
> 19.

Did you try ufs:/dev/ada0s1a?

-m

> 
> I can as well boot an USB key with the old kernel r269739, mount
> /dev/ad4s1a to /mnt, all fine; I did even a fsck while booted from USB
> on /dev/ad4s1a. The FS is clean.
> 
>   matthias
> 



-- 
Michael Gmelin
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Matthias Apitz

Hi Michael,

El día Saturday, June 04, 2016 a las 01:40:46PM +0200, Michael Gmelin escribió:

> Hi Matthias,
> 
> Did you try to connect an external USB keyboard?

no; it uses the laptop onboard keyboard;

> i386 or amd64?

i386;

> Did you do a full clean build?
> GENERIC or custom kernel config?

yes, clean 'make buildkernel KERNCONF=GENERIC'

interestingly: I can type at the prompt 'mountroot> ' into the dark and
always when I press Ctrl the chars are written to the screen and so I can
specify 'ufs:/dev/ad4s1a' which than leads to the same error 19.

I can as well boot an USB key with the old kernel r269739, mount
/dev/ad4s1a to /mnt, all fine; I did even a fsck while booted from USB
on /dev/ad4s1a. The FS is clean.

matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
"Die Verkaufsschlager des Buchmarkts geben Auskunft über den Zustand einer 
Gesellschaft bzw.
sind, was diese Zeiten angeht, Gradmesser fortschreitenden Schwachsinns. ..." 
(jW 19.05.2016)
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Michael Gmelin
Hi Matthias,

Did you try to connect an external USB keyboard?
i386 or amd64?
Did you do a full clean build?
GENERIC or custom kernel config?

- m

On Sat, 4 Jun 2016 13:28:06 +0200
Matthias Apitz  wrote:

> El día Saturday, June 04, 2016 a las 12:18:26PM +0200, Matthias Apitz
> escribió:
> 
> > 
> > Hello,
> > 
> > I'm trying to update my laptop Acer Aspire One D250 from r269739 to
> > r300951. After 'make installkernel' it hangs for ever on reboot,
> > waiting for the device /dev/ad4s1a. The old kernel boots fine.  
> 
> short before mounting root are two error messages:
> 
> taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
> taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
> Timecounter "TSC" frequency 1596219540 Hz quality 1000
> Trying to mount root drom ufs:/dev/ad4s1a [rw]...
> mountroot: waiting for device /dev/ad4s1a ...
> Mounting from ufs:/dev/ad4s1a failed with error 19.
> 
> Than it goes into the manual dialog to specify the root device but at
> the prompt 
> 
> mountroot>  
> 
> the kernel does not echo any typed chars;
> 
>   matthias



-- 
Michael Gmelin
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Matthias Apitz
El día Saturday, June 04, 2016 a las 12:18:26PM +0200, Matthias Apitz escribió:

> 
> Hello,
> 
> I'm trying to update my laptop Acer Aspire One D250 from r269739 to
> r300951. After 'make installkernel' it hangs for ever on reboot, waiting
> for the device /dev/ad4s1a. The old kernel boots fine.

short before mounting root are two error messages:

taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
taskqgroup_adjust failed cnt: 1 stride: 1 mp_ncpus: 1 smp_started: 0
Timecounter "TSC" frequency 1596219540 Hz quality 1000
Trying to mount root drom ufs:/dev/ad4s1a [rw]...
mountroot: waiting for device /dev/ad4s1a ...
Mounting from ufs:/dev/ad4s1a failed with error 19.

Than it goes into the manual dialog to specify the root device but at
the prompt 

mountroot>

the kernel does not echo any typed chars;

matthias
-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
"Die Verkaufsschlager des Buchmarkts geben Auskunft über den Zustand einer 
Gesellschaft bzw.
sind, was diese Zeiten angeht, Gradmesser fortschreitenden Schwachsinns. ..." 
(jW 19.05.2016)
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

r300951: mountroot: waiting for device /dev/ad4s1a...

2016-06-04 Thread Matthias Apitz

Hello,

I'm trying to update my laptop Acer Aspire One D250 from r269739 to
r300951. After 'make installkernel' it hangs for ever on reboot, waiting
for the device /dev/ad4s1a. The old kernel boots fine.

What can I do?
Thx

matthias
-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
"Die Verkaufsschlager des Buchmarkts geben Auskunft über den Zustand einer 
Gesellschaft bzw.
sind, was diese Zeiten angeht, Gradmesser fortschreitenden Schwachsinns. ..." 
(jW 19.05.2016)
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"