Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

Installation • Re: How to mount '/boot' which is rooted inside '/' covered within LVM?

$
0
0
Just adding "sudo " in front of a shell snippet that should be run as root won't work. For example think about why "sudo cat /etc/motd > /root/motd" fails but running "cat /etc/motd > /root/motd" as root works?
Last things first:
May I solve your riddle in a way:

Code:

sudo cat /etc/motd > sudo /root/motd
?
As LiveUSB has no 'user' at all and everything is performed there under "cut" root authority I was able to run the command with simple '$' prefix. That is why I got so confused performing Wiki directions strictly.

Statistics: Posted by nikobit — 2024-04-08 09:30



Viewing all articles
Browse latest Browse all 2849

Trending Articles