#How can I unmount my windows partitions from linux in a dualboot?

1 messages · Page 1 of 1 (latest)

lilac merlin
#

I want to make it so that linux doesn't have any access to my windows partitions.

timber totem
#

depends what linux distro you're on, but generally other disk partitions are not mounted automatically at login anyway

lilac merlin
#

So im on linuxmint, and its not like actually mounted but i can click on it to access it. I just want it to be inaccessable from the linux side

timber totem
#

ok.. I think u can use the DISKS app for that

lilac merlin
#

okay so what do i do?

timber totem
#

pick the one in question, hit the cog button

lilac merlin
#

okay let me find it one second

timber totem
#

and in edit mount options i think.. .or similar in the cog menu, there's a thing for "show in devices list"

lilac merlin
#

I see

#

but someone can still edit this, so how could i encrypt it or something?

#

maybe with this option here?

timber totem
#

hang on

lilac merlin
#

okay

timber totem
#

it has that checkmark in place in picture so that should be fine

lilac merlin
#

i check it

timber totem
#

a person would need your user password (which is also likely your 'sudo' or 'admin' password in Mint) to be able to mount that drive from within this OS

lilac merlin
#

Okay so I dont have to enter anything into those filds?

timber totem
#

nah

lilac merlin
#

Okay

timber totem
#

close disks

lilac merlin
#

wdym?

timber totem
#

log out, and come back in

lilac merlin
#

oh okay

timber totem
#

so now in Nemo, you shouldnt see the drive at all in "devices" side pane

lilac merlin
#

okay

timber totem
#

and if you run DISKS again, and try to start that partition up by hitting the play button, it should ask for password

lilac merlin
#

I have one more qustion

lilac merlin
#

so

#

this is kinda unrelated but i want to ask you

timber totem
#

#1193345280733622272 message < also if ur dualbooting with Windows, this is very important to do.

lilac merlin
#

if i use a virtualbox to run windows 10 and use software that has trojan or other virus, now that my main windows is completly separeted from my linux, is it safe?

timber totem
lilac merlin
#

okay, thanks. my only concern was the cirus spreating through network out of vbox and then to my main windows, but now it shouldn't be able to do anything even if it gets into my linux

#

Allright I'll do the mounting settings for all drives and log out and in

timber totem
#

a Windows virus typically isnt written to understand Linux code. However do be careful and even avoid installing WINE on linux as this runs .exe and .msi software which could at least mess up WINE and stuff in linux

lilac merlin
#

yep thanks 🙂

timber totem
lilac merlin
#

there's still a 200gb one mounted, but the only 200gb partition is this

#

wron one

timber totem
#

dont mess with any partitions in DISKS that show the star symbol

lilac merlin
lilac merlin
#

but look that has some windows folders

#

so idk which one is it

#

my windows is on a 500 gb partition and that one i already unmounted

timber totem
#

no sir, that is your home folder with its subfolders for linux

#

u must have set up a separate HOME partition, and that's what you're looking at

lilac merlin
#

oh yes right

#

okay, so by the way that confuses me too like i set up a home partition, and it has a lot of gb deticated to it, but everythng install to the root, which some tutorial told me to make small

#

so i ran out of root space, i made it bigger using live linuxmint, but it will get full again, because everyting installs to the root

timber totem
#

i can't tell what's what there cuz you have so many partitions 😛

lilac merlin
#

xd

#

i have a swap, a home and a root for linux

#

evreything else is windows

timber totem
#

be careful with resizing, you could wreck everything

lilac merlin
#

yeah, it worked tho so its fine

timber totem
#

is your dual-boot all off one disk?

lilac merlin
#

no my windows is one my 500 GB ssd, and I also have a 2TB hdd linux is on that (with like 360 gb) and the rest is for my files on windows

#

but linux is divided into the three partition: root swap and home

timber totem
# lilac merlin

it looks like from this picture your Toshiba drive with Linux on it has p4 as the EFI/bootloader part, p5 is your root (linux install) p6 is your linux swap space, and p7 is your Home folder

#

I have no idea what the NTFS p3 is.. or WHY it has a star on it.

lilac merlin
#

oh theres like a 2mb unallocated space that was cut out from my home to make my root bigger

timber totem
#

i dont care about 2 mb

lilac merlin
#

okay

timber totem
#

what's the one labelled as partition 3?

lilac merlin
#

thats my windows side of the HDD

#

for like files and apps on windows

timber totem
#

oh ok

#

so just storage data

lilac merlin
#

yes

timber totem
#

i was just curious as to why it has a star on it, but nvm

lilac merlin
#

i see

timber totem
#

cuz star symbol means "in use by linux system"

lilac merlin
#

oh

#

yeah well linux is on the HDD too

timber totem
#

and i can see your swap partition isnt even turned on.

lilac merlin
#

what? xd

#

oh yeah

timber totem
#

obviously if THAT swap space was being used, it would show a star

lilac merlin
#

ooooh true

timber totem
#

check lsblk

#

it might be using a swap FILE instead

lilac merlin
#

in terminal?

timber totem
#

hang on let me read

lilac merlin
#

okay

timber totem
#

wrong command sorry.. do free -h

lilac merlin
timber totem
#

yeah u do have swap on, but it's a file

lilac merlin
#

i see

timber totem
#

using 3MiB of 881 MiB total

lilac merlin
#

so how do i active the swap partition?

timber totem
#

so either research how to change from swap file to swap partition, or leave it alone

lilac merlin
#

okay i don really mind

timber totem
#

u can delete the swap partition and grow the Home part to the left

lilac merlin
#

so when i like install stuff how do i install it to the home instead? Like just go to devices where home is mounted and install there right?

timber totem
#

or grow the root partition to the RIGHT

#

and you'll gain 8 GB

lilac merlin
#

how do i do that tho?

timber totem
#

first confirm what is what and WRITE IT DOWN on paper

lilac merlin
#

but i dont really care about that 8gb right now, just this, cuz everything allways installed to my root and i didnt even know where my home was

timber totem
#

click on partition 5

#

then read the line below where it says Contents. it will show in blue what that is.. if it says Mounted at / , then that's your linux install (aka root filesystem)

lilac merlin
#

uhuh, im gonna be honest im just gonna let that 8gb befor now

timber totem
#

anyway you have 154 Metric Gigabytes that's lots of space

lilac merlin
#

okay

timber totem
#

im just saying learn how to identify what is what.. as i worte

lilac merlin
#

yeah thanks sir

lilac merlin
#

oh

#

so what is the home for?

timber totem
#

home is only for documents, settings of the OS and the apps, movies, and Appimages software

#

and I think Flatpak software

lilac merlin
#

oooh

timber totem
#

p8 is what shows up naturally in File Manager when u open it

#

sorry, p7

lilac merlin
#

okay im propably gonna make the root bigger then when it runs out again, but how much should the home be then?

timber totem
#

home gets a lott of junk too in the form of cache, and definitely gets big if u install Flatpaks

#

i'd leave them alone as is for size.

lilac merlin
#

oh okay

timber totem
#

it's a good size for both

lilac merlin
#

but if i run out of root, and i still have home left, theres now way to install things there?

timber totem
#

nope

lilac merlin
#

okay

timber totem
#

best u can do then is delete that Swap partition, and that unused junk to the left of it, and then GROW p5 to the right.

lilac merlin
#

okay

#

but earlier i did take like idk 100 gb off of home and grew the root using live linuxmmint. You said thats not safe?

timber totem
#

remember the two handy commands lsblk and free -h for storage and memory info

lilac merlin
#

okay

timber totem
lilac merlin
#

okay

#

i mean i followed a tutorial

#

well you've been very helpful sir, I'd have 2 more questions if you dont mind. These just came to my mind while we were talking

timber totem
#

ok

lilac merlin
#

So I'm planning to run a game client on vbox that could have trojan, thats why im using linux right now in the first place, but it might not run on vbox, so then if i use wine to run it on linux will it have the ability to somehow infect my main windows system?

#

because i read online if you dualboot the same OS then virus can spread across them

#

but what anout linux and windows, if i use wine?

timber totem
#

WINE shouldnt be able to see any other partition unless you explicitly mount it first

#

dont use wine

lilac merlin
#

Okay, so that should be safe?

lilac merlin
timber totem
#

if ur gonna run a VM, run a vm

#

that's it

lilac merlin
#

yeah but it might not run the game

timber totem
#

sure it would

lilac merlin
#

well if it doesn't is this other method safe too?

timber totem
#

and if not, run the game on actual Windows

lilac merlin
#

propably does

timber totem
#

avoid using wine anyway.. there's a thing called Bottles but idk too much for it

timber totem
lilac merlin
#

yeah well it said some suspicios thing about certain files, but for some game clients i know for a fact that they have trojan, but i still want to use them, so thats why im asking if using wine or osmething else to run it is safe or not (for my main OS). Becasue people said if yo u dualboot 2 windows then the virus could spread

timber totem
#

also WINE often only half-works. it's not perfect

lilac merlin
#

okay sound great, so what do you think about dualboot 2 windowses would the virus spread in that case?

timber totem
lilac merlin
#

i see

timber totem
#

anyways i g2g

lilac merlin
#

yeah xd

#

my final question would be, if you still have a minute, how do i change my linux password? because the current one is not the safest

#

oh and just with a yes or no, is there a way to use my 3050 on virttual machine with a linux host?

#

@timber totem Well if you already left, thank you for all the help sir 😇

timber totem
lilac merlin
#

okay, and what about this? is it possible?

timber totem
lilac merlin
#

okay thanks

#

Have a great rest of your day