LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-23-2006, 12:18 AM   #1
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Rep: Reputation: 15
how to detect ext2 pen drive in windows


I used the command "mkfs -t ext2 /dev/sda " to use the pen drive with linux
now I cant use the pen drive in windows. It shows that it is connected (that is icon appears in the right lower corner of the task bar) but it doesnt show in the windows explorere as a drive.
1 How to format it back to ?
2 Is there a way to use it in both linux or windows without loosing data?
 
Old 11-23-2006, 02:57 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
windows can't read or write ext2/3 file systems.

you can use explore2fs (see google etc.) to READ you files in windows, but this app has no write support.

There is a system driver that will show the ext2/3 partitions as drive letters in explorer, but DO NOT USE THIS ONE!
It may change your partition type to NTFS (but keep the data), this will result in unreadable data until you manually change it back later.

to format back to windows, you can use the disk manager found in administration in the system control panel. Or you can use the linux command mkfs.vfat (see manpage)

you can use it both in linux and in windows when you use FAT32 (vfat in linux), but then you will loose linux user rights (but for data files, this seems not as harmful)
 
Old 11-23-2006, 03:37 AM   #3
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
Perhaps this new Novell/Microsoft deal will get Microsoft (Vista) to start supporting Open filesystems.
(I doubt it though...)
 
Old 11-24-2006, 07:19 AM   #4
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by doc.nice
windows can't read or write ext2/3 file systems.

you can use explore2fs (see google etc.) to READ you files in windows, but this app has no write support.

There is a system driver that will show the ext2/3 partitions as drive letters in explorer, but DO NOT USE THIS ONE!
It may change your partition type to NTFS (but keep the data), this will result in unreadable data until you manually change it back later.

to format back to windows, you can use the disk manager found in administration in the system control panel. Or you can use the linux command mkfs.vfat (see manpage)

you can use it both in linux and in windows when you use FAT32 (vfat in linux), but then you will loose linux user rights (but for data files, this seems not as harmful)

When I try "mkfs -t vfat /dev/sda" it say "mkfs.vfat : will not try to make file system on /dev/sda" .Whats thecommand to create a vfat file system on the usb pen drive?
 
Old 11-24-2006, 07:35 AM   #5
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
I suppose your pen drive uses a partition, check this using
"fdisk /dev/sda" (press p to show partition table)

It will show you a single partition with type 83 (linux)
change it to the correct type using "t", "L", and then type in the correct number for windows fat32

after that you can use "mkfs.vfat -F 32 /dev/sda1" (i assume it will be the first (and only) partition)
to format the partition. /dev/sda would be the whole drive, not only a single partition!
 
Old 11-24-2006, 11:30 AM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Also there are several projects out there that have a ext2/3 drivers availible for windows. Only problem is you have strange permission issues so installing program on the ext3 parttion is problematic in windows with these drivers.

Only reason I bring that up is that its something that I attempted recently when bulding a system for a laptop and wanted my /home directory readable and writeable by both windows and linux. I ended up using fat32 as both can see it and splitting the drive into 2 parts one fat32 and one ext3.
 
  


Reply



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
USB Pen Drive / Flash Drive Unmounted but the power is there teluguswan Linux - Hardware 11 10-04-2008 03:36 PM
pen drive sandeepeecs Linux - Hardware 1 08-19-2006 04:06 PM
Pen drive, how detect automatically dass Slackware 6 07-25-2006 06:44 AM
Pen Drive like on XP La Dima Fedora 1 08-28-2005 05:38 AM
How to detect whether the filesystem is ext2 or ext3?? fa3a Programming 7 01-22-2004 03:37 AM

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

All times are GMT -5. The time now is 01:24 AM.

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
Open Source Consulting | Domain Registration