Default vt number at Linux startup












1















Whenever we boot into linux, then the default vt used by the kernel is 1.
And X starts either on vt2 or on vt7. We can switch back to vt1 with Ctrl+Alt+F1 to see the logs or messages.



Is there any way to start booting in any other vt but not in vt1?
Will it be kernel-space or user-space?










share|improve this question

























  • What exactly do you mean by start booting in any other VT but not in VT1? Are you asking about what device is bound to the system console?

    – peterph
    Oct 31 '14 at 12:10
















1















Whenever we boot into linux, then the default vt used by the kernel is 1.
And X starts either on vt2 or on vt7. We can switch back to vt1 with Ctrl+Alt+F1 to see the logs or messages.



Is there any way to start booting in any other vt but not in vt1?
Will it be kernel-space or user-space?










share|improve this question

























  • What exactly do you mean by start booting in any other VT but not in VT1? Are you asking about what device is bound to the system console?

    – peterph
    Oct 31 '14 at 12:10














1












1








1








Whenever we boot into linux, then the default vt used by the kernel is 1.
And X starts either on vt2 or on vt7. We can switch back to vt1 with Ctrl+Alt+F1 to see the logs or messages.



Is there any way to start booting in any other vt but not in vt1?
Will it be kernel-space or user-space?










share|improve this question
















Whenever we boot into linux, then the default vt used by the kernel is 1.
And X starts either on vt2 or on vt7. We can switch back to vt1 with Ctrl+Alt+F1 to see the logs or messages.



Is there any way to start booting in any other vt but not in vt1?
Will it be kernel-space or user-space?







linux console






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 31 '14 at 23:05









Gilles

542k12810991616




542k12810991616










asked Oct 31 '14 at 9:08









SHWSHW

8,26053971




8,26053971













  • What exactly do you mean by start booting in any other VT but not in VT1? Are you asking about what device is bound to the system console?

    – peterph
    Oct 31 '14 at 12:10



















  • What exactly do you mean by start booting in any other VT but not in VT1? Are you asking about what device is bound to the system console?

    – peterph
    Oct 31 '14 at 12:10

















What exactly do you mean by start booting in any other VT but not in VT1? Are you asking about what device is bound to the system console?

– peterph
Oct 31 '14 at 12:10





What exactly do you mean by start booting in any other VT but not in VT1? Are you asking about what device is bound to the system console?

– peterph
Oct 31 '14 at 12:10










1 Answer
1






active

oldest

votes


















0














It would be a kernel change. The active kernel virtual terminal number is initialized to zero (i.e. the first virtual terminal, vt1) in the con_init() function in the kernel.



You can of course change the active kernel virtual terminal after bootstrap with the chvt command. But starting the bootstrap with a different active kernel virtual terminal cannot be done from userspace.



Further reading




  • Jonathan de Boyne Pollard (2018). "linux-vt". Devices. nosh toolset.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f165196%2fdefault-vt-number-at-linux-startup%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    It would be a kernel change. The active kernel virtual terminal number is initialized to zero (i.e. the first virtual terminal, vt1) in the con_init() function in the kernel.



    You can of course change the active kernel virtual terminal after bootstrap with the chvt command. But starting the bootstrap with a different active kernel virtual terminal cannot be done from userspace.



    Further reading




    • Jonathan de Boyne Pollard (2018). "linux-vt". Devices. nosh toolset.






    share|improve this answer






























      0














      It would be a kernel change. The active kernel virtual terminal number is initialized to zero (i.e. the first virtual terminal, vt1) in the con_init() function in the kernel.



      You can of course change the active kernel virtual terminal after bootstrap with the chvt command. But starting the bootstrap with a different active kernel virtual terminal cannot be done from userspace.



      Further reading




      • Jonathan de Boyne Pollard (2018). "linux-vt". Devices. nosh toolset.






      share|improve this answer




























        0












        0








        0







        It would be a kernel change. The active kernel virtual terminal number is initialized to zero (i.e. the first virtual terminal, vt1) in the con_init() function in the kernel.



        You can of course change the active kernel virtual terminal after bootstrap with the chvt command. But starting the bootstrap with a different active kernel virtual terminal cannot be done from userspace.



        Further reading




        • Jonathan de Boyne Pollard (2018). "linux-vt". Devices. nosh toolset.






        share|improve this answer















        It would be a kernel change. The active kernel virtual terminal number is initialized to zero (i.e. the first virtual terminal, vt1) in the con_init() function in the kernel.



        You can of course change the active kernel virtual terminal after bootstrap with the chvt command. But starting the bootstrap with a different active kernel virtual terminal cannot be done from userspace.



        Further reading




        • Jonathan de Boyne Pollard (2018). "linux-vt". Devices. nosh toolset.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 mins ago

























        answered Jan 4 '15 at 13:19









        JdeBPJdeBP

        36.8k475176




        36.8k475176






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f165196%2fdefault-vt-number-at-linux-startup%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Histoire des bourses de valeurs

            Why is there Russian traffic in my log files?

            Rename multiple files to decrement number in file name?