LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-24-2007, 12:49 PM   #1
pueblonative
Member
 
Registered: Jun 2006
Location: Pueblo, Colorado
Distribution: OpenSuse
Posts: 55

Rep: Reputation: 15
formating a jump drive with ext3fs


I'm wondering if you can format a jump drive with ext3fs. The reason why is that I have a couple of exercises that deal with creating ext3fs partitions, and I can't really locate a zip drive or disk.
 
Old 02-24-2007, 01:38 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Try it and find out, i forget what /dev name is for jump drives.

In any case, if you have lots of free disk space, why not create a lookback device?

Code:
dd if=/dev/zero of=./loopdevice bs=512 count=1024
change the "count" number to the size you want, or remove it all together. If you remove it, then dd will run until all your free disk space is eaten up, so if you do this, monitor your free disk space in another terminal, and kill dd (by using ctrl-c) when it gets about as big as you want.

The command will create a empty file of a size of your choosing. You can then create a filesystem on by:
Code:
mkfs.ext3 ./loopdevice
mounting it the device requires another option to mount:
Code:
mount -o loop ./loopdevice /where/to/mount/it
 
Old 02-24-2007, 01:48 PM   #3
pueblonative
Member
 
Registered: Jun 2006
Location: Pueblo, Colorado
Distribution: OpenSuse
Posts: 55

Original Poster
Rep: Reputation: 15
yeah, probably the quickest way to find out. Here goes nothing
 
Old 02-25-2007, 03:37 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
To answer your original question, yes you can. I ran mkfs.ext3 on one of my usb drives and now I use it for my user's home directory.
 
Old 02-25-2007, 04:19 PM   #5
pueblonative
Member
 
Registered: Jun 2006
Location: Pueblo, Colorado
Distribution: OpenSuse
Posts: 55

Original Poster
Rep: Reputation: 15
Cool. Will have to try that out.
 
Old 02-26-2007, 03:20 PM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Do note that flash media file systems have a limited number of writes (10,000-100,000). This means that journaling file systems may not be the best in the long run, as the journal will incur increased numbers of writes.

That being said, if it's just for experimentation (or you're willing to trash the drive after 100,000 writes... which is probably a long way off anyway) it's better than destroying your hard drive.

Remember that most USB-based drives will show up as /dev/sd*.
 
Old 02-26-2007, 07:49 PM   #7
pueblonative
Member
 
Registered: Jun 2006
Location: Pueblo, Colorado
Distribution: OpenSuse
Posts: 55

Original Poster
Rep: Reputation: 15
Only 10,000-100,000. Smoley hokes! Guess I'd better stick with FAT
 
Old 02-26-2007, 07:58 PM   #8
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Depending on your perspective, that number can be a little or a lot. For occasional file transfers, you're more likely to physically break it first. If you (for some reason) want to run a database off it... well, you're likely to update it a few hundred times (minimum) a day.
 
Old 02-26-2007, 08:16 PM   #9
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
Quote:
Do note that flash media file systems have a limited number of writes (10,000-100,000)
Good point. Not enough people know about that. That's why I replaced some of my . directories and most-often-written-to directories, such as documents and game saves, with symlinks to hdd locations. Note that you can symlink from ext->FAT but not FAT->anything.

In my case it has been for experimentation and portablility. Plus, the drive I'm using is a lost-and-found 1GB Memorex. Somebody lost it, I found it. So when it dies it'll be no big loss because I do keep it backed up regularly.
 
  


Reply

Tags
drive, ext3fs, format, usb


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
Getting my jump drive to work Fasn8n Ubuntu 3 04-18-2006 05:31 AM
USB 2.0 Jump Drive mrgoodtrips Slackware 8 09-28-2005 11:12 AM
Jump Drive dudeman41465 Linux - Hardware 3 06-28-2005 01:31 AM
jump drive kingcobrawoods Linux - General 2 01-04-2005 03:23 PM
How to mount a jump drive gschrade Linux - Newbie 7 01-28-2004 03:06 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration