minimum valid block size on DVD-RAM

Kimi kimimeister at gmail.com
Tue Jan 8 21:23:50 PST 2008


On 07/01/2008, Martin Laabs <martin.laabs at mailbox.tu-dresden.de> wrote:
> Hi,
>
> [...]
>
> > it
> > works for me perfectly for over a year on a firewall & file server,
> > only thing I changed was the default block/frag size for UFS2 to
> > 8096/1024. Only time I hear them spin-up is when periodic runs
> > daily/weekly/monthly.
>
> Are you sure you have the frag size set to 1024? This should not
> work if the drive only supports blocks with a multiple of 2k in size.
>

it seems to work fine. have you tried different DVD-RAM Drive & Media?
My DVD-RAM is by pioneer something 109 with panasonic branded media

> How did you create the UFS image for the DVD-RAM? With an image
> via the md device? This seems actually the only way to gener-
> ate an ufs filesystem on a dvd-ram for me now.

I just treated each disc like a hard disc drive:

$ sudo fdisk -BI /dev/acd0

$ sudo bsdlabel -Bw /dev/acd0s1

$ sudo glabel label sys_root /dev/acd0s1a
$ sudo glabel label sys_vardb /dev/acd0s1d
$ sudo glabel label sys_ulocal /dev/acd0s1e

$ sudo newfs -O2 -f 1024 -b 8192 /dev/label/sys_root
$ sudo newfs -O2 -f 1024 -b 8192 /dev/label/sys_vardb
$ sudo newfs -O2 -f 1024 -b 8192 /dev/label/sys_ulocal

$ sudo tunefs -a enable /dev/label/sys_root
$ sudo tunefs -a enable /dev/label/sys_vardb
$ sudo tunefs -a enable /dev/label/sys_ulocal

$ sudo mount -t ufs /dev/label/sys_root /mnt
$ sudo mkdir -p /mnt/var/db
$ sudo mount -t ufs /dev/label/sys_vardb /mnt/var/db
$ sudo mkdir -p /mnt/usr/local
$ sudo mount -t ufs /dev/label/sys_ulocal /mnt/usr/local

$ cd /usr/src
$ su nobody
$ env -i make installworld installkernel DESTDIR=/mnt
$ exit

$ su

# echo "/ /usr/label/sys_root ufs ro 1 1" >> /mnt/etc/fstab
# echo "/var/db /usr/label/sys_vardb ufs rw 1 1" >> /mnt/etc/fstab
# echo "/usr/local /usr/label/sys_ulocal ufs rw 1 1" >> /mnt/etc/fstab

# echo "dumpdev=NO" >> /mnt/etc/rc.conf.local
# echo 'entropy_file="/var/db/entropy.db"' >> /mnt/etc/rc.conf.local
# echo "tmpmfs=YES" >> /mnt/etc/rc.conf.local
# echo "varmfs=YES" >> /mnt/etc/rc.conf.local
# echo "background_fsck=NO" >> /mnt/etc/rc.conf.local
# echo "update_motd=NO" >> /mnt/etc/rc.conf.local
# echo "clear_tmp_enable=YES" >> /mnt/etc/rc.conf.local
# echo "ifconfig_em0=DHCP" >> /mnt/etc/rc.conf.local
# echo "ifconfig_em1=DHCP" >> /mnt/etc/rc.conf.local
# sort -o /mnt/etc/rc.conf.local /mnt/etc/rc.conf.local

# exit
$ shutdown -r now && exit

boot the disc & make other changes as needed, install ports.

I am not at home which is where me notes are, so take it with a pinch
of salt as it's been months since I did this (on CURRENT, now
RELNENG_7).

>
> Best regards,
>     Martin Laabs
>


-- 
Kimi


More information about the freebsd-questions mailing list