Editing
Bootable USB
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==fstab== Op de USB zijn meerdere Debian OS installs mogelijk, dus is het zinvol om een apart home partitie te gebruiken, het heeft weinig zin om een swap te definiëren. <pre> # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # systemd generates mount units based on this file, see systemd.mount(5). # Please run 'systemctl daemon-reload' after making changes here. # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/md0 during installation UUID=eb35cee7-df6d-45ad-b2fb-9917b5630443 / ext4 errors=remount-ro 0 1 UUID=7440423e-10a4-42a2-a61c-3881981945e2 /home ext4 errors=remount-ro 0 2 # We don't use swap partitions </pre> Packages <pre> ssh user install kernel image sudo geen root passwd netwerk config exit chroot mount-chroot umount de usb root partition resolv.conf interfaces </pre> Maak de partitie bootable:</br> grub-install --target=i386-pc path/to/device <pre> Oude manier: maak met unetbootin een netinstall aan op een partitie op een usb-stick Boot de doel machine met de usb-stick en voer de installatie uit Grub maakt een foutje door de devices te verwisselen, sda <-> sdb Herstel de fout in grub edit en boot Pas na de boot /etc/fstab aan en doe update-grub </pre> De installatie is nog niet erg minimaal, maar hij werkt. mkfs.ext4 /dev/sdc2 1937 mkfs.ext4 /dev/sdc3 1938 mkfs.ext4 /dev/sdc4 root@host:~# apt-get clean root@host:~# apt-get install localepurge root@host:~# localepurge root@squeeze-usb-i386:~# ln -s /home/squeeze-usb-i386/var/lib/* /var root@squeeze-usb-i386:~# ln -s /home/squeeze-usb-i386/var/cache/* /var Installeer ook nog tools om met Windows file systems te werken: apt-get install ntfsprogs scrounge-ntfs dosfstools rsync Op de host Maak een file system aan voor het OS op de USB stick. root@host:~# fdisk /dev/sdb root@host:~# mkfs.ext2 /dev/sdb1 Maak een directory aan op de host om daarin de installatie voor de usb-stick voor te bereiden. root@host:~# mkdir /usbsystem root@host:~# debootstrap --arch i386 squeeze /usbsystem http://ftp.nl.debian.org/debian root@host:~# ./croot.sh /usbsystem Doe eerst alle stappen uit chrooted en doe daarna: root@host:~# umount /usbsystem/dev/ /usbsystem/sys /usbsystem/proc /usbsystem/tmp root@host:~# umount /usbsystem-amd64/dev/ /usbsystem-amd64/sys /usbsystem-amd64/proc /usbsystem-amd64/tmp chrooted fstab # UNCONFIGURED FSTAB FOR BASE SYSTEM LABEL=USB_ROOT / ext2 defaults,errors=remount-ro,noatime 0 1 proc /proc proc defaults 0 0 tmpfs /tmp tmpfs defaults,noatime 0 0 tmpfs /var/lock tmpfs defaults,noatime 0 0 tmpfs /var/log tmpfs defaults,noatime 0 0 tmpfs /var/run tmpfs defaults,noatime 0 0 tmpfs /var/tmp tmpfs defaults,noatime 0 0
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information