Cài đặt Steam
Đăng nhập
|
Ngôn ngữ
简体中文 (Hán giản thể)
繁體中文 (Hán phồn thể)
日本語 (Nhật)
한국어 (Hàn Quốc)
ไทย (Thái)
Български (Bungari)
Čeština (CH Séc)
Dansk (Đan Mạch)
Deutsch (Đức)
English (Anh)
Español - España (Tây Ban Nha - TBN)
Español - Latinoamérica (Tây Ban Nha cho Mỹ Latin)
Ελληνικά (Hy Lạp)
Français (Pháp)
Italiano (Ý)
Bahasa Indonesia (tiếng Indonesia)
Magyar (Hungary)
Nederlands (Hà Lan)
Norsk (Na Uy)
Polski (Ba Lan)
Português (Tiếng Bồ Đào Nha - BĐN)
Português - Brasil (Bồ Đào Nha - Brazil)
Română (Rumani)
Русский (Nga)
Suomi (Phần Lan)
Svenska (Thụy Điển)
Türkçe (Thổ Nhĩ Kỳ)
Українська (Ukraine)
Báo cáo lỗi dịch thuật
Then, we'll be able to see what you entered, what's going on, and what to ask.
Either way, I've been digging around further, I think it's caused by the root user's bash.rc script, which gets executed on login and indeed executes tune2fs:
When I manually execute tune2fs ($root resolves to /dev/nvme0n1p4), I get the same error:
All this is part of some code that gathers various info to set the shell prompt when working as root.
I assume the "bad magic number" message gets logged to stderr, which is why I'm seeing only that. Either way, I am now 99.9% sure that this is indeed irrelevant and can be ignored safely.
(And thats why open platforms and devices are so super cool! Sorry I'm just extremely hyped about this and might have overreacted when I saw this, expecting the worst. Maybe this post will be useful to someone else running into the same thing.)
Also obvious disclaimer that one should never use root unless they know what they are doing.
* Nothing there is quoted or bracket'd for protection.
* STDERR should be eaten or redirected elsewhere (hrm, maybe `logger` comes to mind.)
* They should never have used a variable called "$root" for indicating the rootfs volume. They could have used $rootfs or $rootfsdev and that would make more sense.
* tune2fs has had a dangerous past at times. Maybe impact your NVMe's life by altering a disk check frequency.
This is a much simpler & safer test -- using 'test' itself -- NOTE, the "[[" should/could be "[" singles -- silly BBCode is eating the tests:
This does *not* mean that the block device itself is write protected - so I don't think checking for this with "test" will work.
Your third way (checking /proc/mounts) should work, though.
/dev/nvme0n1p4 on the Deck is btrfs.
You can re-write that any way you'd like, but the "btrfs" line is correct for btrfs filesystems.
I used "/" because when I run the following command, it only displays the label:
But when I run this command, I get a read-only response I can grep for:
Anyway...I know this btrfs thing is new.
There may be a way to map / (the root path) to a different variable. Looks like $root really needs to be the /dev/nvme0n1p4 device, for other items in the .bashrc script. Maybe you could create a $rootpath or something, and then replace $root in the original with $rootpath ? Probably. But seeing as we are explicitly testing for root, and the path for root is probably always going to be / - this is fine by me.
If there is a more graceful solution, please feel free to share.
Hope this helps someone!
I don’t understand, please tell me what commands you entered into the terminal or explain more clearly what steps need to be taken to solve this problem. Thank you.