Pesquisar neste blog

quarta-feira, 22 de abril de 2015

Mounting ext4 partitions in Debian

As of Debian 5.04 (Lenny), Debian doesn’t support mounting ext4 partitions out of the box, or rather, we should say, using conventional methods.
Trying to mount an ext4 partition using the mount directive yields the error :
mount: unknown filesystem type 'ext4'
The roundabout way of doing it is setting a test_fs flag on the partition using the tune2fs utility.
su -
tune2fs -E test_fs /dev/hda1
mount -t ext4dev /dev/hda1 /place/to/mount/
Replace hda1 with the name of the ext4 partition you want to mount.

quinta-feira, 9 de abril de 2015

Serial Console customization of debian-installer CD or DVD

This should work on the CD or DVD image.  Illustrated below is the steps for the CD image.

First, if you do not have an ISO image already, download CD1 via jigdo or bittorrent. If I had more time, I'd probably screencast how to do all that, but if you fetch the .jigdo and have jigdo installed, it's downhill from there.

mkdir /mnt/debian-7.8.0-i386-CD1-ttyS0

sudo mount -o loop,ro debian-7.2.0-amd64-CD-1.iso /media/cdrom

rsync -av /media/cdrom/ /mnt/debian-7.8.0-i386-CD1-ttyS0/

Open the file below:

serial 0 115200 prompt 0 timeout 0 default install label install menu label ^Install menu default kernel /install.amd/vmlinuz append term=linux priority=low console=ttyS0,115200 text initrd=/install.amd/initrd.gz --

save and quit

Run the command below:

sudo genisoimage -r -J -b /mnt/debian-7.8.0-i386-CD1-ttyS0/isolinux/isolinux.bin -c /mnt/debian-7.8.0-i386-CD1-ttyS0/isolinux/ -no-emul-boot -boot-load-size 4 -boot-info-table -o /tmp/debian-7.2.0-amd64-CD-1-ttyS0.iso /mnt/debian-7.8.0-i386-CD1-ttyS0

Burn your CD with new ISO.