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

Read-only issue when using unionfs-fuse



Hi,
Because aufs is not available in linux-image-2.6.35-trunk-686 in the experimental branch, I decided to try unionfs-fuse function in the Debian live. The created Debian Sid live, running with kernel 2.6.32-23, can boot, however, it shows me a lot of "Read-only" errors.
Here is how to reproduce:
1. Install live-build 2.0~a29-1
2. Run the following command to create the Debian iso
====================================
#!/bin/bash
mirror_url=http://free.nchc.org.tw/debian
mirror_security_url=http://free.nchc.org.tw/debian-security
lb config --mirror-binary $mirror_url --mirror-binary-security $mirror_security_url
lb config --mirror-bootstrap $mirror_url
lb config --mirror-chroot $mirror_url --mirror-chroot-security $mirror_security_url lb config --bootstrap-flavour minimal --packages "unionfs-fuse" --apt apt --apt-recommends false --binary-indices false --bootstrap cdebootstrap --tasksel none
lb config --volatile false
lb config --initramfs live-initramfs
lb config --username user --bootappend-live "union=unionfs-fuse"
lb config --distribution sid
lb config --linux-flavours 686
lb config --memtest none
lb build
====================================

3. Boot the created binary-hybrid.iso, and you can see the Read-only errors, for example:
/etc/init.d/mtab.sh: 178: cannot create /etc/mtab: Read-only file system
...
can't create lock file /etc/mtab~782: Read-only file system (use -n flag to override)

The complete booting process is attached.
Where am I wrong? Any hints?
Thanks in advance.

Steven.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A
[    1.695561] pcnet32: PCnet/PCI II 79C970A at 0x1400, 00:50:56:01:01:01 assigned IRQ 18.
[    1.708146] Fusion MPT base driver 3.04.12
[    1.709509] Copyright (c) 1999-2008 LSI Corporation
[    1.709652] Floppy drive(s): fd0 is 1.44M
[    1.726157] usbcore: registered new interface driver usbfs
[    1.727782] usbcore: registered new interface driver hub
[    1.729670] eth0: registered as PCnet/PCI II 79C970A
[    1.731218] pcnet32 0000:00:12.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[    1.735546] Fusion MPT SPI Host driver 3.04.12
[    1.747116] FDC 0 is a post-1991 82077
[    1.753188] usbcore: registered new device driver usb
[    1.755038] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.757000] pcnet32: PCnet/PCI II 79C970A at 0x1480,
[    1.758469]  00:50:56:01:01:02 assigned IRQ 19.
[    1.760279] eth1: registered as PCnet/PCI II 79C970A
[    1.761843] uhci_hcd: USB Universal Host Controller Interface driver
[    1.761853] mptspi 0000:00:10.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    1.761999] pcnet32: 2 cards_found.
[    1.763366] mptbase: ioc0: Initiating bringup
[    1.832441] ioc0: LSI53C1030 B0: Capabilities={Initiator}
[    1.993264] scsi0 : ioc0: LSI53C1030 B0, FwRev=01032920h, Ports=1, MaxQ=128, IRQ=17
[    2.110503] scsi1 : ata_piix
[    2.112205] scsi2 : ata_piix
[    2.113302] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0x1840 irq 14
[    2.115632] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0x1848 irq 15
[    2.118189] uhci_hcd 0000:00:07.2: PCI INT D -> GSI 19 (level, low) -> IRQ 19
[    2.120823] uhci_hcd 0000:00:07.2: UHCI Host Controller
[    2.122815] uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
[    2.125825] uhci_hcd 0000:00:07.2: irq 19, io base 0x00001060
[    2.128000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    2.130393] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.132886] usb usb1: Product: UHCI Host Controller
[    2.134627] usb usb1: Manufacturer: Linux 2.6.32-5-686 uhci_hcd
[    2.136677] usb usb1: SerialNumber: 0000:00:07.2
[    2.138015] usb usb1: configuration #1 chosen from 1 choice
[    2.139560] hub 1-0:1.0: USB hub found
[    2.140591] hub 1-0:1.0: 2 ports detected
[    2.272660] ata1.00: ATA-4: VMware Virtual IDE Hard Drive, 00000001, max UDMA/33
[    2.275251] ata1.00: 16777216 sectors, multi 16: LBA
[    2.277254] ata1.01: ATA-4: VMware Virtual IDE Hard Drive, 00000001, max UDMA/33
[    2.280954] ata1.01: 31457280 sectors, multi 16: LBA
[    2.306124] ata2.00: ATAPI: VMware Virtual IDE CDROM Drive, 00000001, max UDMA/33
[    2.306667] ata1.00: configured for UDMA/33
[    2.307252] ata1.01: configured for UDMA/33
[    2.307445] scsi 1:0:0:0: Direct-Access     ATA      VMware Virtual I 0000 PQ: 0 ANSI: 5
[    2.307873] scsi 1:0:1:0: Direct-Access     ATA      VMware Virtual I 0000 PQ: 0 ANSI: 5
[    2.316080] ata2.00: configured for UDMA/33
[    2.317806] scsi 2:0:0:0: CD-ROM            NECVMWar VMware IDE CDR10 1.00 PQ: 0 ANSI: 5
[    2.332217] sd 1:0:0:0: [sda] 16777216 512-byte logical blocks: (8.58 GB/8.00 GiB)
[    2.332352] sd 1:0:1:0: [sdb] 31457280 512-byte logical blocks: (16.1 GB/15.0 GiB)
[    2.332420] sd 1:0:1:0: [sdb] Write Protect is off
[    2.332452] sd 1:0:1:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.332757]  sdb: unknown partition table
[    2.342365] sd 1:0:1:0: [sdb] Attached SCSI disk
[    2.343743] sd 1:0:0:0: [sda] Write Protect is off
[    2.345095] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.347615]  sda: sda1 sda2 sda3 < sda5 sda6 sda7 >
[    2.350676] sd 1:0:0:0: [sda] Attached SCSI disk
[    2.354913] sr0: scsi3-mmc drive: 1x/1x xa/form2 cdda tray
[    2.356954] Uniform CD-ROM driver Revision: 3.20
[    2.366775] sd 1:0:0:0: Attached scsi generic sg0 type 0
[    2.371226] sd 1:0:1:0: Attached scsi generic sg1 type 0
[    2.373655] sr 2:0:0:0: Attached scsi generic sg2 type 5
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... [    2.533191] Uniform Multi-Platform E-IDE driver
[    2.535027] ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports
[    2.640229] fuse init (API version 7.13)
[    2.668788] loop: module loaded
[    2.754256] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Begin: Running /scripts/live-premount ... done.
Begin: Running /scripts/live-realpremount ... done.
Begin: Mounting "/live/image/live/filesystem.squashfs" on "/filesystem.squashfs" via "/dev/loop0" ... done.
sh: error setting limit: Invalid argument
done.
Begin: Running /scripts/live-bottom
 ... Begin: Configuring fstab ... done.
Begin: Preconfiguring networking ... done.
Begin: Loading preseed file ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
live-config: hostname/lib/live/config/001-hostname: 56: cannot create /etc/hostname: Directory nonexistent
:ERROR
Starting the hotplug events dispatcher: udevd[    4.297519] udev: starting version 161
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...[    4.933214] ACPI: I/O resource piix4_smbus [0x1040-0x1047] conflicts with ACPI region SMB_ [0x1040-0x104b]
[    4.935887] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    4.941218] processor LNXCPU:00: registered as cooling_device0
[    4.943519] processor LNXCPU:01: registered as cooling_device1
[    5.034743] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    5.116338] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    5.205902] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[    5.207944] ACPI: Power Button [PWRF]
[    5.273080] input: PC Speaker as /devices/platform/pcspkr/input/input2
[    5.281160] input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input3
[    5.346984] ENS1371 0000:00:13.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    5.442824] Error: Driver 'pcspkr' is already registered, aborting...
[    5.509725] ACPI: AC Adapter [ACAD] (on-line)
[    5.653726] parport_pc 00:08: reported by Plug and Play ACPI
[    5.655564] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
done.
/etc/init.d/checkroot.sh: 434: cannot open /etc/fstab: No such file
Loading kernel modules...done.
/etc/init.d/mtab.sh: 178: cannot create /etc/mtab: Read-only file system
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
WARNING: couldn't open /etc/fstab: No such file or directory
done.
Mounting local filesystems...warning: can't open /etc/fstab: No such file or directory
done.
Activating swapfile swap...done.
Cleaning up temporary files.../lib/init/bootclean.sh: 186: cannot create /tmp/.clean: Read-only file system
df: Warning: cannot read table of mounted file systems: No such file or directory
Mounting emergency tmpfs on /tmp...can't create lock file /etc/mtab~782: Read-only file system (use -n flag to override)
Cleaning up temporary files...find: cannot delete `./motd': No such file or directory
bootclean: Failure cleaning /var/run. .../etc/init.d/udev-mtab: 25: cannot create /etc/udev/rules.d/70-persistent-cd.rules: Read-only file system
 failed!
/lib/init/bootclean.sh: 188: cannot create /var/lock/.clean: Read-only file system
/etc/init.d/bootmisc.sh: 63: cannot create /var/run/utmp: Directory nonexistent
live-boot is configuring sendsigs....
startpar: service(s) returned failure: live-config checkroot.sh mtab.sh mountall-bootclean.sh mountnfs-bootclean.sh udev-mtab bootmisc.sh ... failed!
Running scripts in rcS.d/ took 4 seconds.
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
touch: setting times of `/var/lib/sudo': No such file or directory
/etc/init.d/bootlogs: 74: cannot create /var/run/motd: Directory nonexistent
/etc/init.d/bootlogs: 74: cannot create /var/run/motd: Read-only file system
touch: cannot touch `/var/log/dmesg.new': Read-only file system
chown: cannot access `/var/log/dmesg.new': No such file or directory
chmod: cannot access `/var/log/dmesg.new': No such file or directory
ln: creating hard link `/var/log//dmesg.0' => `/var/log/dmesg': No such file or directory
Error hardlinking /var/log/dmesg to /var/log//dmesg.0
/etc/init.d/bootlogs: 74: cannot create /var/log/dmesg: Directory nonexistent
chgrp: changing group of `/var/log/dmesg': No such file or directory
Running scripts in rc2.d/ took 1 seconds.

Reply to: