SunQuest
           Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old June 16th, 2002, 06:31 PM
MRK's Avatar
MRK MRK is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 191 MRK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 36 sec
Reputation Power: 8
Linux and Windows drive sharing

Ok, I have a laptop with a 30 gig drive in it. I partitioned it into 3 different drives. A 5 gig for windows, a 20 gig for sharing, and a 5 gig for linux. The first drive is an ntfs file system, the second (the 20 gig) is a fat32 file system, and the last is whatever linux uses (ext2 I think). The linux partition is divided into several different partitions and mounted a differnt points. (I think like /, swap, /home)

Anyway, in windows I can see the 20 gig just fine and write files to it and everything. In linux I can see the drive (mounted as /mnt/windows). I can see text files that I created in windows. I can edit them and see the changes.

My problem is that in linux when I create a file with returns (like a new line), in windows the returns show up as a little block character. So its one big line with these little block letters where the returns should be.

Is this what it is supposed to be like? lol. I didn’t think so. The whole reason for the big drive in the middle is so that I can code in windows and then view the files in linux to test them out. Thanks for any help you can provide!!

-Mr.K

Reply With Quote
  #2  
Old June 17th, 2002, 09:00 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
Linux and windows use different line-endings. Remember, windows cares about whether or not a file is binary, *nix doesn't care either way. That's why you have to FTP text files in text mode to *nix servers, to fix the line endings.

Windows uses "\r\n" and *nix uses plain old "\n".

That's why you're seeing this problem.

Why not just code in linux and test in linux? There are a lot of very mature editors/IDEs out there.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Linux and Windows drive sharing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway