Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo mount /dev/sda1 /mnt
- yhusha@yhusha-AOD260:~$ chroot /mnt
- chroot: cannot change root directory to /mnt: Operation not permitted
- yhusha@yhusha-AOD260:~$ sudo umount /dev/sda1 /mnt
- umount: /mnt: not mounted
- yhusha@yhusha-AOD260:~$ mkdir /tmp/live
- yhusha@yhusha-AOD260:~$ sudo mount -o loop ~/Desktop/ubuntu-12.04.1-desktop-i386.iso /tmp/live
- mount: warning: /tmp/live seems to be mounted read-only.
- yhusha@yhusha-AOD260:~$ mkdir ~/live
- yhusha@yhusha-AOD260:~$ mkdir ~/live/usb
- yhusha@yhusha-AOD260:~$ cp /tmp/live/casper/filesystem.s
- filesystem.size filesystem.squashfs
- yhusha@yhusha-AOD260:~$ mkdir /casper
- mkdir: cannot create directory `/casper': Permission denied
- yhusha@yhusha-AOD260:~$ sudo mkdir /casper
- yhusha@yhusha-AOD260:~$ cp /tmp/live/casper/filesystem.squashfs /mnt
- cp: cannot create regular file `/mnt/filesystem.squashfs': Permission denied
- yhusha@yhusha-AOD260:~$
- yhusha@yhusha-AOD260:~$
- yhusha@yhusha-AOD260:~$ sudo cp /tmp/live/casper/filesystem.squashfs /casper
- yhusha@yhusha-AOD260:~$ sudo mkdir /casper/chroot
- yhusha@yhusha-AOD260:~$ sudo mount -o loop -t squashfs /casper/filesystem.squashfs /mnt
- mount: warning: /mnt seems to be mounted read-only.
- yhusha@yhusha-AOD260:~$ sudo rsync -ax /mnt/. /casper/chroot/.
- yhusha@yhusha-AOD260:~$ sudo umount /mnt
- yhusha@yhusha-AOD260:~$ gksu gedit /casper/chroot/usr/share/initramfs-tools/scripts/casper
- yhusha@yhusha-AOD260:~$ sudo cp -L /etc/resolv.conf /casper/chroot/etc/
- yhusha@yhusha-AOD260:~$ sudo mount -t proc none /casper/chroot/proc
- yhusha@yhusha-AOD260:~$ sudo mount -o bind /dev /casper/chroot/dev
- yhusha@yhusha-AOD260:~$ sudo chroot /casper/chroot /bin/bash
- root@yhusha-AOD260:/# apt-get autoclean
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- root@yhusha-AOD260:/# apt-get autoremove
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- root@yhusha-AOD260:/# apt-get clean
- root@yhusha-AOD260:/# update initramfs
- No command 'update' found, did you mean:
- Command 'xupdate' from package 'libxml-xupdate-libxml-perl' (universe)
- Command 'uupdate' from package 'devscripts' (main)
- Command 'lupdate' from package 'qt4-linguist-tools' (main)
- Command 'lupdate' from package 'qt3-dev-tools' (main)
- update: command not found
- root@yhusha-AOD260:/# sudo apt-get update initramfs
- E: The update command takes no arguments
- root@yhusha-AOD260:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement