I used Kernel-2.6.10-rc3 as it has build-in UDF file system.
Because it is still not in portage stable branch I did:
Code: Select all
ACCEPT_KEYWORDS="~x86" emerge development-sources -vp
(next repeat the command without "p" if everything looks OK).Code: Select all
cd /usr/src
rm linux
ln -s linux-2.6.NEW-gentoo linux ; substitute NEW for new version.
cd linux
cp ../linux-2.6.OLD-gentoo/.config .
make oldconfig
[ At this point, it will ask you what settings you want for the options that have changed since 2.6.OLD-gentoo]
make && make modules_install
mount /boot
(backup your working kernel; I copy working kernel to old one and copy the new-one over current one).
cp arch/i386/boot/bzImage /boot/kernel-2.6.DEFAULT-gentoo
cp System.map /boot/System.map-2.6.DEFAULT-gentooRebootMake sure these settings are enabled:
Device Drivers ---->
Block Drivers ---->
<*> Packet writing on CD/DVD Media (EXPERIMENTAL)
( 8 ) Freebuffers for data gathering
[ ] Enable write caching
File Systems ---->
CD-ROM/DVD Filesystems ---->
<*> UDF Filesystem Support
Got to /dev directory and delete (or move somewhere else) all "pktcdvd" files (we will setup new one):
Code: Select all
#rm pktcdvd*Code: Select all
#ACCEPT_KEYWORDS="~x86" emerge udftoolsso I followed his pattern and use the same format:as lunatc has mention in post above:
IIRC something changed on newer kernels (i think it was on 2.6.8.1 on something related with ioctl or so, not sure..), so the pktsetup command changed the format from pktsetup /dev/cdroms/pktcdvd0 /dev/hdc to pktsetup device_name /dev/hdc
To setup device I use
Code: Select all
#pktsetup cdwri /dev/cdrom Code: Select all
/dev/pktcdvd/ll
brw-r----- 1 root root 254, 0 Dec 18 21:00 cdwri
crw-r--r-- 1 root root 10, 63 Dec 18 20:25 control
Code: Select all
/dev/pktcdvd/cdwri /mnt/cdrw udf noauto,noatime,rw,users 0 0
Some notes:(File: /etc/init.d/cdrw) you will find in at the bottom:
http://gentoo-wiki.com/HOWTO_Packet_Writing_on_CD-RW
If you have an CDRW icon on your desktop, edit it. Right click the icon - go to
restart the cdrwProperties - Devices and use: /dev/pktcdvd/cdwri
Code: Select all
/etc/init.d/cdrw startYou can format the CDRW as packet writing as normal user:
Code: Select all
$ cdrwtool -d /dev/hdc -q (hdc is your CDRW device) if you don't know what it is use command:
Code: Select all
dmesg | grep -i dvd hdc: PLEXTOR CD-R PX-W8432T, ATAPI CD/DVD-ROM drive
When you format the CDRW first time and mount it the owner will be root:
While the CDRW is mounted change the owner to yourself:/mnt/ll
drwxr-xr-x 3 root root 152 Dec 18 20:14 cdrw
Code: Select all
chown joseph:user /mnt/cdrw



