User Name
Password
AppleNova Forums » General Discussion »

Reformat drive and change block size


Register Members List Calendar Search FAQ Posting Guidelines
Reformat drive and change block size
Thread Tools
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2004-07-01, 07:51

So I've got some drives that are being used to back up various machines at work. They only contain backup files on them, which are huge files containing all the data.

These drives have approx. 20 or so files on them, but the files are about 40 GB on average. So what I'd like to do is reformat the drives to have a larger default block size, as the current 512byte is really quite small. Anyone know of a utility that will do this in OSX? I don't mind paying for one, but google searches turned up nothing for me.

Oh yeah, and whatever I format them with would have to be able to allow them to be in a striped RAID. Not sure if OSX reformats a drive's default block size when you RAID them though. Anyone know?
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2004-07-01, 23:28

I don't think you can do this with HFS or HFS+. HFS divides the drive into x number of blocks. The bigger the drive, the bigger the blocks.

I'm not sure how UFS or other formats handle it.

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
Barto
Student extraordinaire
 
Join Date: May 2004
Location: Canberra, Australia
 
2004-07-01, 23:48

Slightly off topic: Apple should use Reiser. Best. File system. Evar.
  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2004-07-02, 08:38

Quote:
Originally Posted by Brad
I don't think you can do this with HFS or HFS+. HFS divides the drive into x number of blocks. The bigger the drive, the bigger the blocks.

I'm not sure how UFS or other formats handle it.
HFS did it that way, HFS+ is adaptive - if the drive is large enough that the default number of blocks would create blocks larger than 4k, it sets up more blocks. ie, 4k is the largest block you can have.
  quote
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2004-07-02, 08:51

out of curiosity, why do you want larger block sizes?
  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2004-07-02, 11:37

Yeah, I've been wondering that too... seems weird to me.
  quote
Paul
Veteran Member
 
Join Date: May 2004
Location: New York City
 
2004-07-02, 11:48

so the disk is more efficient. Since all the files are going to be huge it would save a small percentage (but still significant) of each file. Instead of a 40 gb file taking up X million blocks, divide that number by like 500 or something.

This is all me talking out my ass, but it makes sense to me...

1215/234215 (top .51875%)
People really have got to stop thinking there is only one operating system, one economic system, one religion, and one business model. -EvilTwinSkippy (/.)
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2004-07-02, 12:54

Quote:
Originally Posted by Paul
so the disk is more efficient. Since all the files are going to be huge it would save a small percentage (but still significant) of each file. Instead of a 40 gb file taking up X million blocks, divide that number by like 500 or something.

This is all me talking out my ass, but it makes sense to me...
How would that help though? Sorry, I always was under the impression that it was better to have smaller blocks.
  quote
Gargoyle
http://ga.rgoyle.com
 
Join Date: May 2004
Location: In your dock hiding behind your finder icon!
 
2004-07-03, 04:41

Actually, the disk would be less efficient. But, it would probably fragment less (although it probably won't do that anyway with 40G files), and it will be a bit faster.

I did a really good module back in uni about multimedia stuff and how different file systems were better for different types of files. IMG - that was almost 7 years ago!!! I'm getting old.

OK, I have given up keeping this sig up to date. Lets just say I'm the guy that installs every latest version as soon as its available!
  quote
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2004-07-03, 10:10

it would, in theory be approx. 3%-5% faster for read/writes.

it should also fragment less.

as it is now, when i make a full backup of the drive from one to another, it takes 7 hours. (over firewire). if i could shave off 20 min. of that it would be nice.
  quote
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2004-07-04, 02:27

there was a program, waaaay back in the day when 8.1 and HFS+ was released, called drive + or drive plus. anyway, it allowed you to convert your drive from hfs to hfs+ w/o reformatting, and it allowed you to choose your block size. im not sure where to find this program anymore, a google search could turn something up tho.
  quote
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2004-07-04, 02:31

ahh, found it, i was way off, check out these guys, not sure how well you can select block sizes tho: http://www.alsoft.com/
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2004-07-04, 07:01

Quote:
Originally Posted by ThunderPoit
ahh, found it, i was way off, check out these guys, not sure how well you can select block sizes tho: http://www.alsoft.com/
I remember this! It required you to have enough free space though. So I took my 2.3GB HD...or maybe it was 3.4GB, either way, and back some stuff on on like 10 zip disks, and went to town. I was so worried it would mess up, or like power would fail while doing this. But I was happy in those days that it let me regain 600MB.
  quote
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2004-07-04, 09:24

i'll take a look at it. i wonder if i set the block size, it it will resize them when i use the OSX disk tool to make the disks into a RAID. i'll play around and find out.

i've got 4 250GB drives set as 1 drive in a RAID. the files on there now take up about 600 - 700 GB, so i might have to move a few before trying the tools out. the other problem is that they're on a G5, which means no OS9 booting. actually, i don't think any of my computers will boot into 9 now, but i'll find a workaround.
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2004-07-04, 10:31

Have you looked for a unix program to format drives. I'd imagine one exists, and would give you very much control...I mean it's f'n unix.
  quote
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2004-07-04, 10:40

ahhh, crap, what kind of raid? if its just a software raid set up w/ disk util, it wont work as this program is OS 9 only and OS 9 cant see a raid :/
  quote
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2004-07-04, 15:56

yeah, it's a software raid in OSX. i'm saving up from my work budget to afford a real RAID, but this is all i have access to for now. i'll get by if i can't reformat it, just thought i'd ask.
  quote
Posting Rules Navigation
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

Post Reply

Forum Jump
Thread Tools

« Previous Thread | Next Thread »

All times are GMT -5. The time now is 18:19.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova