tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: File systems on 4k sector devices?



        Hello.  I've not tried this, but what if you use the -S flag to newfs
to help it figure out what the sector size is?  I've found that newfs seems
to have trouble extracting pertinent details from the disklabel in
NetBSD-5.  I've worked around this problem with flags to newfs with good
effects.

-Brian

On Jun 7, 12:49am, Phil Nelson wrote:
} Subject: File systems on 4k sector devices?
} Hello,
} 
}    I recently acquired a 3TB USB disk that attaches as a sd0 disk.  disklabel
} reports that it has 4k sectors.   I can write a disklabel on the disk, but 
newfs
} can not create a fs.
} 
} (parts of the disk label)
} bytes/sector: 4096
} sectors/track: 32
} tracks/cylinder: 64
} sectors/cylinder: 2048
} cylinders: 357698
} total sectors: 732566642
} 
}   d: 732566642         0     unused      0     0        # (Cyl.      0 - 
357698*)
}  e:     50000        63     4.2BSD   1024  8192     0  # (Cyl.      0*-     
24*)
}  f: 732516579     50063     4.2BSD   4096 32768     0  # (Cyl.     24*- 
357698*)
} bash-4.1# newfs -S 4096 /dev/rsd0e
} /dev/rsd0e: 195.3MB (50000 sectors) block size 32768, fragment size 4096
}         using 4 cylinder groups of 48.84MB, 1563 blks, 3072 inodes.
} rdfs: read error for sector 1: Invalid argument
} bash-4.1# newfs -S 4096 /dev/rsd0f
} /dev/rsd0f: 2861392.9MB (732516579 sectors) block size 32768, fragment size 
4096
}         using 3860 cylinder groups of 741.31MB, 23722 blks, 47104 inodes.
} wtfs: write error for sector 732516578: Invalid argument
} 
} I'm running 5.1/i386.
} 
} (The e: above was just to try a small size.)
} 
} Is there support for 4K sectors in 5.1?   I've read that other people have 
} successfully created file systems on 4k sector devices.
} 
} So, what am I doing wrong?
} 
} --Phil
} 
} -- 
} Phil Nelson, http://pcnelson.net
} life: http://goallpower.com
>-- End of excerpt from Phil Nelson




Home | Main Index | Thread Index | Old Index