Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
9203aa1a
Commit
9203aa1a
authored
Feb 13, 2022
by
longpanda
Browse files
Fix the issue when make vlnk for NTFS partition under Linux (#1430)
parent
5291d667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Vlnk/VentoyVlnk.sh
Vlnk/VentoyVlnk.sh
+13
-1
No files found.
Vlnk/VentoyVlnk.sh
View file @
9203aa1a
...
...
@@ -153,11 +153,23 @@ if [ "$CMD" = "c" ]; then
#check fs
if
grep
-q
"
${
FULLDIR
}
"
/proc/mounts
;
then
DEV
=
$(
grep
"
${
FULLDIR
}
"
/proc/mounts |
awk
'{print $1}'
)
FS
=
$(
grep
"
${
FULLDIR
}
"
/proc/mounts |
awk
'{print $3}'
)
vlog
"File system is
$FS
"
vlog
"File system
of
$DEV
is
$FS
"
if
echo
$FS
| egrep
-q
"ext2|ext3|ext4|exfat|vfat|fat32|fat16|fat12|ntfs|xfs|udf"
;
then
vlog
"FS OK"
elif
[
"
$FS
"
=
"fuseblk"
]
;
then
vlog
"
$DEV
is fuseblk"
if
hexdump
-C
-n
8
$DEV
|
grep
-q
"NTFS"
;
then
vlog
"
$DEV
is NTFS OK"
elif
hexdump
-C
-n
8
$DEV
|
grep
-q
"EXFAT"
;
then
vlog
"
$DEV
is exFAT OK"
else
echo
"
$DEV
is not supported!"
hexdump
-C
-n
8
$DEV
exit
1
fi
else
echo
"
$FS
is not supported!"
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment