Switch root filesystem after copy
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I currently have a script that copy the content of a microSD card to the eMMC of a BeagleBone Black. Once the copy is done, I would like to switch root filesystem for the eMMC and finish installing packages.
How can I switch root filesystem? I've found switch_root and pivot_root commands, but no much example of how to use them.
My process would looks like this :
- Insert microSD card into BeagleBone Black
- Hold boot switch while applying power
- rc.local copy microSD to eMMC
- rc.local switch root filesystem from microSD to eMMC
- rc.local continues installing (now on eMMC)
OS used is SlackwareARM 14.1.
sysvinit root-filesystem
add a comment |Â
up vote
0
down vote
favorite
I currently have a script that copy the content of a microSD card to the eMMC of a BeagleBone Black. Once the copy is done, I would like to switch root filesystem for the eMMC and finish installing packages.
How can I switch root filesystem? I've found switch_root and pivot_root commands, but no much example of how to use them.
My process would looks like this :
- Insert microSD card into BeagleBone Black
- Hold boot switch while applying power
- rc.local copy microSD to eMMC
- rc.local switch root filesystem from microSD to eMMC
- rc.local continues installing (now on eMMC)
OS used is SlackwareARM 14.1.
sysvinit root-filesystem
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I currently have a script that copy the content of a microSD card to the eMMC of a BeagleBone Black. Once the copy is done, I would like to switch root filesystem for the eMMC and finish installing packages.
How can I switch root filesystem? I've found switch_root and pivot_root commands, but no much example of how to use them.
My process would looks like this :
- Insert microSD card into BeagleBone Black
- Hold boot switch while applying power
- rc.local copy microSD to eMMC
- rc.local switch root filesystem from microSD to eMMC
- rc.local continues installing (now on eMMC)
OS used is SlackwareARM 14.1.
sysvinit root-filesystem
I currently have a script that copy the content of a microSD card to the eMMC of a BeagleBone Black. Once the copy is done, I would like to switch root filesystem for the eMMC and finish installing packages.
How can I switch root filesystem? I've found switch_root and pivot_root commands, but no much example of how to use them.
My process would looks like this :
- Insert microSD card into BeagleBone Black
- Hold boot switch while applying power
- rc.local copy microSD to eMMC
- rc.local switch root filesystem from microSD to eMMC
- rc.local continues installing (now on eMMC)
OS used is SlackwareARM 14.1.
sysvinit root-filesystem
sysvinit root-filesystem
asked 3 mins ago
Alexandre Lavoie
1205
1205
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479825%2fswitch-root-filesystem-after-copy%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password