How to format a drive to Ext2/Ext3 from a Mac (or Windows)

Oleh: admin
March 6, 2009

Why am I doing this?

With the prices of exter­nal dri­ves falling faster than the stock mar­ket, I decided to invest in a Sea­gate FreeAgent Desk USB hard drive. I wanted to use my old, trusted 160GB hard drive as a shared stor­age resource that I can access any­where from within my home net­work. In net­work lingo, it is called a NAS (Net­work Attached Storage).

A com­mer­cial grade NAS is pretty expen­sive, but the Asus 520gu router comes with a USB port (most routers only have eth­er­net ports), which opens it up to a num­ber of devices. Con­vert­ing a USB printer to a shared printer, con­vert­ing your USB exter­nal hard drive to a net­work drive or both. (BTW, never, ever buy a Belkin hub).

So I bought the Asus 520gu, installed Tomato and every­thing was hunky-dory!  But, the spare 160GB hard drive was for­mat­ted for tak­ing back­ups from my Mac­Book (HFS+) and Tomato runs Linux.  Linux can rec­og­nize dri­ves for­mat­ted either using FAT or its native for­mat Ext2/Ext3, not Mac filesys­tem, HFS+.

I wanted to par­ti­tion my hard drive to use both FAT32 and Ext3. FAT32 isn’t a very effi­cient filesys­tem. It has a file size lim­i­ta­tion of 4GB and more impor­tantly it is from Microsoft.  Linux’s choice, Ext2/Ext3 has no such lim­i­ta­tion.  The only dif­fer­ence between Ext2 and Ext3 is Ext3 is a jour­nal­ing filesys­tem.  What this means is it has addi­tional safe­guards to pro­tect against data cor­rup­tion, like if you pull out your exter­nal drive with­out unmount­ing first.

So how do you for­mat a drive to Ext2 or Ext3? Mac (or Win­dows for that mat­ter) does not have any native tools like Disk Util­ity, to for­mat a drive to the Linux for­mat.  Enter gparted.

GParted “Live” CD

GParted is a cool free util­ity to par­ti­tion and for­mat dri­ves to a vari­ety of filesys­tem. GParted is a ‘live’ CD. What that means is, you boot into gparted from either a PC or a Mac and gparted would run entirely off your cdrom drive with­out touch­ing your hard drive. Noth­ing changes once you boot back to Win­dows or OS X. Best of all, gparted is Mac­book friendly.

What you’ll need:

  1. Mac or Win­dows PC that can burn CDs
  2. Blank CD
  3. Patience!

Get­ting started:

  1. Down­load lat­est ver­sion of gparted
  2. Using Disk Util­ity on a Mac burn gparted iso into a blank CD
  3. With the CD inside, reboot your Mac
  4. While reboot­ing keep the option key on the Mac pressed, this will prompt you to choose where to boot from
  5. Choose gparted. Don’t worry noth­ing is touched on your Mac

1-2

My exter­nal drive (/dev/sdc)was for­mat­ted for HFS and had two par­ti­tions — Mir­ror and Backup. (There is an addi­tional par­ti­tion cre­ated by Sea­gate with some Sea­gate spe­cific firmware — /dev/sdc1)

2

I’m delet­ing /dev/sdc1, which con­tained some Sea­gate spe­cific firmware.

3

I’m delet­ing the old par­ti­tions and  cre­at­ing two new par­ti­tions — one Ext2  and one Fat32

4

6

7

All done! Now remove the cd and boot your mac. When boot­ing press the option key to select OS X.

Your exter­nal hard drive is now has two par­ti­tions. One for­mat­ted to Ext2 and one to Fat32.  If you directly con­nect your hard drive to win­dows or Mac, you’ll be able to see the Fat32 par­ti­tion, but not the Ext par­ti­tion as Macs and Win­dows can’t rec­og­nize Linux filesystems.

A word of cau­tion: In gparted, when you pick a device to for­mat, be very care­ful.  You don’t want to pick your PC or Mac’s inter­nal hard drive to par­ti­tion, pick the exter­nal drive.  I don’t have to tell you this, but once for­mat­ted, all your exist­ing data is gone for­ever, so make sure you take ade­quate back­ups.

Enter Your Mail Address

Related Posts with Thumbnails

Incom­ing search terms:

  • for­mat ext3 mac
  • mac for­mat ext3
  • ext3 mac
  • for­mat ext2 windows
  • osx for­mat ext3
  • ext2 for­mat
  • ext3 for­mat mac
  • for­mat EXT2
  • for­mat ext2 mac
  • for­mat ext3 on mac

Tags: , , , , ,

Category: Featured | RSS 2.0 | Give a Comment | trackback

6 Comments

  • eric

    I’ve only been run­ning my wl-520gu NAS for a week now, but I love it w/tomato.

    I use the NAS for small file trans­fers; it’s nice not to have to run back and forth to make sure my 2nd com­puter is setup for ftping. I also use it great instant backup of files before I get a chance to do a more secure backup. If I ever need to move more than a gig or so, I just directly con­nect the lap­tops so I get giga­bit speed.

    I’m cur­rently using an 8gb flash drive rather than a USB hard drive. I like the low energy consumption.

    Thanks for your con­tin­u­ing arti­cles about the router, Tomato, NAS. This router has been the best $30 I’ve ever spent and your site has saved me a few hours.

  • eric

    I’d be inter­ested in read­ing about your take/strategy on set­ting up QoS.

  • admin

    Thanks Eric for your kind words.

    On QoS, I setup a sur­veil­lance sys­tem that starts record­ing any­time motion is detected and saves the clip in the NAS I setup. Think­ing of chang­ing this to a remote FTP site. I’m still study­ing how this affects the net­work. If I find anythng I’ll cer­tainly post.

    I agree on the Asus 520gu. Best value for money.

  • Stephen

    Does the gparted iso work on a PPC Mac?

  • Tim

    HI, thanks for your excel­lent instruc­tions. I’ve tried just what you said with a 1TB drive. It seemed to go OK. But every time I try the drive hooked up to my Sat recorder as an exter­nal stor­age device it says that the drive is for­mat­ted as ext3 (which is what I want) and as FAT16/32 and that it must be refor­mat­ted as only one type.
    I’ve tried it sev­eral times and it only appears to be for­mat­ted with no par­ti­tions in ext3 (although for some rea­son it always says that 23 gig is being used, but Ive no idea what for).
    Does any­one have any clues.
    Ive used GParted lat­est ver­sion, booted live from CD and the exter­nal hardrive is a Iomega LDHD-UP.
    Thanks

  • Chuck

    Great write up!!! The info is much appre­ci­ated espe­cially for some­one who is famil­iar with com­put­ers but hates all the tech­ni­cal stuff and just wants things to work right!!!

    One question…how do you read/write files to and from your ext3 for­mat­ted net­work drive using MAC (or win­dows in my case)? I have the same setup and would like to read/write files to the ASUS USB net­work con­nected drive but I want to do it from win­dows AND have the entire drive for­mat­ted as ext2. Does any­one have any advice on how best to do this?

    Thanks again!!!

Leave a Reply

  • Widget Area

    This is widget area, add your widget here from your widget on appereance on your admin panel