LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-04-2002, 01:47 PM   #1
purpleburple
Member
 
Registered: Jun 2002
Location: USA
Distribution: Slackware8.1
Posts: 332

Rep: Reputation: 30
one more question about /mnt/win from Linux ..sorry


Hi. I created /mnt/win and mounted it successfully and had access to all my win98 files.

My questions is
If i rm the directory /mnt/win and all files under it will I in turn delete my win98 partition and all its files??
So that when I boot back into win98 everythings gone?

I don't want this to happen

thnaks newbie
 
Old 07-04-2002, 02:11 PM   #2
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Yes in deed
 
Old 07-04-2002, 09:34 PM   #3
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
If you run rm -rf /mnt/win, it will delete all the files and directories, but not the partition.

You can mount the partition read-only. Like this:

mount -t vfat /dev/hda1 /mnt/win -o ro

You could put a line in your /etc/fstab file that would save you a lot of typing and have the partition mounted read-only. Like this:

/dev/hda1 /mnt/win vfat noauto,user,ro 0 0

Then all you have to type is mount /mnt/win.

Substitute the correct partition and file type for hda1 and vfat.

Last edited by linuxcool; 07-04-2002 at 09:37 PM.
 
Old 07-06-2002, 07:09 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
With that entry you will not delete everything, but the badside of that is you cannot add anything to it either. I would just make it a safe practice to NOT type rm -rf instead of denying myself write access to my fat partition. That or...

Make 2 partitions in Winbloze. One is for the system files (C:/Windows;C:/Program Files etc.) and the other is for the files you are going to be transferring back and forth. Files like Music, Movies, txt's whatever. Then you will add 2 lines in your fstab and one will be just as linuxcool has specified, the other will be rw (read/write).

Something like this:

/dev/hda1 /mnt/winC vfat noauto,user,ro 0 0
/dev/hda2 /mnt/winD vfat noauto,user,rw 0 0

Where 1,2 and D,C are replaced with whatever you'd like.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can only read /mnt/win (ntfs) as root mpn Slackware 7 12-15-2004 10:21 PM
how do i mnt my win partition lil_ak Linux - Software 11 06-21-2004 08:09 AM
non-root accessing /mnt/win is denied! muyu Linux - Software 2 03-21-2004 01:38 AM
how can a normal user write into /mnt/win kevinqian Linux - General 1 10-31-2003 09:27 PM
/mnt/win? redhat 8.0 bullwinkel Linux - Newbie 10 12-17-2002 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration