[Bug 668429] Re: mount.cifs is not included in initramfs, so netboot=cifs doesn't work

maxim 668429 at bugs.launchpad.net
Fri Oct 29 17:15:18 UTC 2010


It seems something more is needed in order to get it to work properly.
Performing the following results in initramfs saying this when
attempting to mount the root file system:

mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
nfsmount: need a server
nfsmount: need a server
nfsmount: need a server
...

To get mount.cifs into the initrd, first you must have install
mount.cifs

To do this run:
# sudo apt-get install smbfs

Found some instructions here:
https://help.ubuntu.com/community/LiveCDCustomization

# mkdir lztempdir
# cd lztempdir
# lzma -dc -S .lz ../initrd.lz | cpio -imvd --no-absolute-filenames

Then do:

# cp `which mount.cifs` sbin/mount.cifs

Then pack it back up:

# find . | cpio --quiet --dereference -o -H newc | lzma -7 >
../initrd.cifs.lz

-- 
mount.cifs is not included in initramfs, so netboot=cifs doesn't work
https://bugs.launchpad.net/bugs/668429
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.




More information about the kernel-bugs mailing list