So i am trying make a live usb stick. I have done this before without problems. Following is the error and my /etc/fstab, mtab and /proc/mounts. Also /media. There is a ton of crap in /media. I would like to know how to clean it up. I am guessing that all this crap was created by the isotostick script and it is causing isotostick to fail.
$ sudo ./isotostick.sh kubuntu-8.10-desktop-amd64.iso /dev/sdb1
Not verifying image...(no checkisomd5 in Ubuntu so skipping)!
mount: could not find any free loop device
Cleaning up to exit...
umount: /media/cdtmp.Vf8811: not mounted
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda5
UUID=bed179b7-91f5-47e9-bd2d-df40ca9a504c / ext3 relatime,errors=remount-ro 0 1
# /dev/sda3
UUID=513126dc-65c3-4e71-95f3-086f100afc4d /home ext3 relatime 0 2
# /dev/sda2
UUID=373075e1-4f0d-4b44-aab2-e6d6c2c4e0b5 /var ext3 relatime 0 2
# /dev/sda1
UUID=55a9f8ef-1216-4c1d-b8cb-0b6938b5b8df none swap sw 0 0
#/dev/hda /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0/dev/scd0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
cat /etc/mtab
/dev/sda5 / ext3 rw,relatime,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
lrm /lib/modules/2.6.24-19-generic/volatile tmpfs rw 0 0
/dev/sda3 /home ext3 rw,relatime 0 0
/dev/sda2 /var ext3 rw,relatime 0 0
securityfs /sys/kernel/security securityfs rw 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.QW7245 iso9660 rw,loop=/dev/loop0 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.lM7303 iso9660 rw,loop=/dev/loop1 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.ds7549 iso9660 rw,loop=/dev/loop2 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.VY7658 iso9660 rw,loop=/dev/loop3 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.jN7719 iso9660 rw,loop=/dev/loop4 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.gq7762 iso9660 rw,loop=/dev/loop5 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.uh8011 iso9660 rw,loop=/dev/loop6 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.bG8218 iso9660 rw,loop=/dev/loop7 0 0
/dev/sdb1 /media/usbdev.cY8221 vfat rw 0 0
$ cat /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/disk/by-uuid/bed179b7-91f5-47e9-bd2d-df40ca9a504c / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/disk/by-uuid/bed179b7-91f5-47e9-bd2d-df40ca9a504c /dev/.static/dev ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
shmfs /lib/init/rw/splashy tmpfs rw,relatime 0 0
tmpfs /lib/modules/2.6.24-19-generic/volatile tmpfs rw,relatime 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
/dev/sda3 /home ext3 rw,relatime,data=ordered 0 0
/dev/sda2 /var ext3 rw,relatime,data=ordered 0 0
securityfs /sys/kernel/security securityfs rw,relatime 0 0
/dev/loop0 /media/cdtmp.QW7245 iso9660 ro,relatime 0 0
/dev/loop1 /media/cdtmp.lM7303 iso9660 ro,relatime 0 0
/dev/loop2 /media/cdtmp.ds7549 iso9660 ro,relatime 0 0
/dev/loop3 /media/cdtmp.VY7658 iso9660 ro,relatime 0 0
/dev/loop4 /media/cdtmp.jN7719 iso9660 ro,relatime 0 0
/dev/loop5 /media/cdtmp.gq7762 iso9660 ro,relatime 0 0
/dev/loop6 /media/cdtmp.uh8011 iso9660 ro,relatime 0 0
/dev/loop7 /media/cdtmp.bG8218 iso9660 ro,relatime 0 0
/dev/sdb1 /media/usbdev.cY8221 vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1 0 0
ls /media
cdrom0 cdtmp.gq7762 cdtmp.R20302 disk-1 usbdev.hd7722 usbdev.SE7552
cdrom1 cdtmp.jN7719 cdtmp.tf7696 floppy0 usbdev.Ih7699 usbdev.we7765
cdtmp.bG8218 cdtmp.lM7303 cdtmp.uh8011 usbdev.bG8014 usbdev.LU7264
cdtmp.dF8294 cdtmp.O20715 cdtmp.Vf8811 usbdev.bU8678 usbdev.oh7661
cdtmp.ds7549 cdtmp.qC8675 cdtmp.VY7658 usbdev.cY8221 usbdev.P20718
cdtmp.Ed8256 cdtmp.QW7245 disk usbdev.DV7306 usbdev.q20321
EDIT:
I ran a root shell and did:
#umount /media/*
#rmdir (all the cdtmp and usbdev directories)
That cleaned up /media. Ran ./isotostick.sh kubuntu-8.10-desktop-amd64.iso /dev/sdb1
Success!
$ sudo ./isotostick.sh kubuntu-8.10-desktop-amd64.iso /dev/sdb1
Not verifying image...(no checkisomd5 in Ubuntu so skipping)!
mount: could not find any free loop device
Cleaning up to exit...
umount: /media/cdtmp.Vf8811: not mounted
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda5
UUID=bed179b7-91f5-47e9-bd2d-df40ca9a504c / ext3 relatime,errors=remount-ro 0 1
# /dev/sda3
UUID=513126dc-65c3-4e71-95f3-086f100afc4d /home ext3 relatime 0 2
# /dev/sda2
UUID=373075e1-4f0d-4b44-aab2-e6d6c2c4e0b5 /var ext3 relatime 0 2
# /dev/sda1
UUID=55a9f8ef-1216-4c1d-b8cb-0b6938b5b8df none swap sw 0 0
#/dev/hda /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0/dev/scd0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
cat /etc/mtab
/dev/sda5 / ext3 rw,relatime,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
lrm /lib/modules/2.6.24-19-generic/volatile tmpfs rw 0 0
/dev/sda3 /home ext3 rw,relatime 0 0
/dev/sda2 /var ext3 rw,relatime 0 0
securityfs /sys/kernel/security securityfs rw 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.QW7245 iso9660 rw,loop=/dev/loop0 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.lM7303 iso9660 rw,loop=/dev/loop1 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.ds7549 iso9660 rw,loop=/dev/loop2 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.VY7658 iso9660 rw,loop=/dev/loop3 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.jN7719 iso9660 rw,loop=/dev/loop4 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.gq7762 iso9660 rw,loop=/dev/loop5 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.uh8011 iso9660 rw,loop=/dev/loop6 0 0
/home/charlie/kubuntu_iso/kubuntu-8.10-desktop-amd64.iso /media/cdtmp.bG8218 iso9660 rw,loop=/dev/loop7 0 0
/dev/sdb1 /media/usbdev.cY8221 vfat rw 0 0
$ cat /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/disk/by-uuid/bed179b7-91f5-47e9-bd2d-df40ca9a504c / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/disk/by-uuid/bed179b7-91f5-47e9-bd2d-df40ca9a504c /dev/.static/dev ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
shmfs /lib/init/rw/splashy tmpfs rw,relatime 0 0
tmpfs /lib/modules/2.6.24-19-generic/volatile tmpfs rw,relatime 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
/dev/sda3 /home ext3 rw,relatime,data=ordered 0 0
/dev/sda2 /var ext3 rw,relatime,data=ordered 0 0
securityfs /sys/kernel/security securityfs rw,relatime 0 0
/dev/loop0 /media/cdtmp.QW7245 iso9660 ro,relatime 0 0
/dev/loop1 /media/cdtmp.lM7303 iso9660 ro,relatime 0 0
/dev/loop2 /media/cdtmp.ds7549 iso9660 ro,relatime 0 0
/dev/loop3 /media/cdtmp.VY7658 iso9660 ro,relatime 0 0
/dev/loop4 /media/cdtmp.jN7719 iso9660 ro,relatime 0 0
/dev/loop5 /media/cdtmp.gq7762 iso9660 ro,relatime 0 0
/dev/loop6 /media/cdtmp.uh8011 iso9660 ro,relatime 0 0
/dev/loop7 /media/cdtmp.bG8218 iso9660 ro,relatime 0 0
/dev/sdb1 /media/usbdev.cY8221 vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1 0 0
ls /media
cdrom0 cdtmp.gq7762 cdtmp.R20302 disk-1 usbdev.hd7722 usbdev.SE7552
cdrom1 cdtmp.jN7719 cdtmp.tf7696 floppy0 usbdev.Ih7699 usbdev.we7765
cdtmp.bG8218 cdtmp.lM7303 cdtmp.uh8011 usbdev.bG8014 usbdev.LU7264
cdtmp.dF8294 cdtmp.O20715 cdtmp.Vf8811 usbdev.bU8678 usbdev.oh7661
cdtmp.ds7549 cdtmp.qC8675 cdtmp.VY7658 usbdev.cY8221 usbdev.P20718
cdtmp.Ed8256 cdtmp.QW7245 disk usbdev.DV7306 usbdev.q20321
EDIT:
I ran a root shell and did:
#umount /media/*
#rmdir (all the cdtmp and usbdev directories)
That cleaned up /media. Ran ./isotostick.sh kubuntu-8.10-desktop-amd64.iso /dev/sdb1
Success!
Comment