LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting windows "c" drive in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-windows-c-drive-in-linux-76533/)

jsin 07-28-2003 02:38 AM

Mounting windows "c" drive in Linux
 
Hi guys, I have some questions, but first my biggest one
is about Windows and Linux.
I have Windows 2000, on a 40 gig drive which I partitioned
into 2 20 gig partitions, one for each OS.
I have mounted my Windows "C" folder in Linux and everything
seems fine, my question is if I were to delete the directory "C" (being the mount point of my windows c: folder) will
it actually get rid of C: drive, or just the mount point?
I dont want to actually erase my drive somehow by doing
something stupid.
Thanks for all your help.

slakmagik 07-28-2003 03:00 AM

I believe it's part of your filesystem once mounted. If you did 'rm -rf' it might well delete it, or possibly throw an error. I've never tried it. Then again, it probably doesn't have write (or 'unwrite') enabled as an NTFS partition, so it'd probably just return an error. With it unmounted, you can delete the bare mount point without deleting the partition, obviously. But just don't delete it and it won't be deleted. *g*

Crashed_Again 07-28-2003 05:33 AM

Yeah I'd agree with digiot. If you can't write to the partition then you certainly can not delete anything on it. After all, deleting things is just writing nothing.

Give it a shot! Whats the worst that could happen? You lose your windows partition...

alpesh 07-28-2003 05:59 AM

ya sure it will delete data from c:
s ur Os and sys files all things

but u can usr read only option during mounting

GhostOfYoda 07-28-2003 08:05 AM

If you wish to delete the "c" directory (not the drive), I would unmount it first, before removing it.

jsin 07-28-2003 11:29 AM

Thanks for all your help guys.
Last night I tried something with this C dir.
I tried to rename it to Windows(because I am open to
violent fits of stupidity so i need to safeguard myself
where i can), but couldnt. So I unmounted it, then tried to
rename the dir, and it worked. I also changed the setting
in my fstab and it now mounts automatically.
I gave myself all options in this dir to read and write, so I
need to be careful.
Going by what I learned last night, and what Ghost of Yoda
said, I think Im safe as long as its unmounted if I try to
del that dir.
Thank you so much for all of your help guys.
I may try unmount it delete it just to see what happens.
Ill let you know how it turns out either tonight, or in a few
days once I reinstall both OS!! lol


All times are GMT -5. The time now is 08:16 PM.