tag:blogger.com,1999:blog-5188121942175615593.post1266591469785089636..comments2024-03-29T01:51:12.527+11:00Comments on Lindqvist -- a blog about Linux and Science. Mostly.: 361. Installing Debian on a USB stick (from a running Debian system)lindqvisthttp://www.blogger.com/profile/11525548328692436184noreply@blogger.comBlogger64125tag:blogger.com,1999:blog-5188121942175615593.post-37939537774851887782020-11-12T09:32:30.676+11:002020-11-12T09:32:30.676+11:00hi lindqvist, it's been many years since this ...hi lindqvist, it's been many years since this article was written but it seems to have stood the test of time; at least among internet search results! to the best of your knowledge, does this method still work for modern debian...kernel versions notwithstanding?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-50560965780892480812015-12-28T11:28:33.568+11:002015-12-28T11:28:33.568+11:00Installing Debian 8 Jessie in VMware Workstation V...Installing Debian 8 Jessie in VMware Workstation Video Tutorial<br />http://bit.ly/1KgTLv9fikret tursakhttps://www.blogger.com/profile/08829566380860021812noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-33179944582704021672015-09-21T16:41:09.932+10:002015-09-21T16:41:09.932+10:00You'll need to install the correct linux image...You'll need to install the correct linux image. In the instructions above I used 'testing' as the distro -- the current testing release is Jessie.<br />Try e.g. linux-image-3.16.0-4-686-paelindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-68246504728496514372015-09-20T19:34:43.631+10:002015-09-20T19:34:43.631+10:00Getting this error at grub install. Anybody know w...Getting this error at grub install. Anybody know what gives?<br /><br />:/# apt-get install grub-pc linux-base linux-image-3.2.0-4-686-pae<br />Reading package lists... Done<br />Building dependency tree <br />Reading state information... Done<br />E: Unable to locate package linux-image-3.2.0-4-686-pae<br />E: Couldn't find any package by regex 'linux-image-3.2.0-4-686-pae'Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-55531420930056967002014-09-26T00:31:33.503+10:002014-09-26T00:31:33.503+10:00Thank you.
I will try it.Thank you.<br />I will try it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-14873972679461557512014-09-19T17:39:55.034+10:002014-09-19T17:39:55.034+10:00Your question is a bit vague, but interpreting it ...Your question is a bit vague, but interpreting it in the most liberal way possible, then yes, you can.<br /><br />As a general rule, however, use the OS in control of a partition to install software on that partition. Your USB stick will be just like a harddrive with an OS installed on it, so you need to treat it accordingly.lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-19984142464177581052014-09-18T10:17:21.361+10:002014-09-18T10:17:21.361+10:00Can I install other program into the OS which inst...Can I install other program into the OS which installed in USB stick?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-18436046730713186892014-06-18T10:07:51.858+10:002014-06-18T10:07:51.858+10:00Don't have much of an answer for you. I would&...Don't have much of an answer for you. I would've thought that the file system on the live usb stick would've been iso9660 or something similar so that you wouldn't be able to create a mount point under it. I presume from your post that you did manage to do that?<br /><br />You can try using palimpsest (aka Disk Utility) under Gnome and mount the target USB that way.lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-35524694359693873322014-06-18T03:03:05.535+10:002014-06-18T03:03:05.535+10:00Is it possible to do this from live usb system?
I...Is it possible to do this from live usb system?<br /><br />I am trying to install to usb from live usb system and I get stuck at #2 step.<br />Not able to mount ext4 file system created on usb. (in step #1)<br />mount or mount -t ext4 command does not work. My pen drive is 32GB drive. fdisk -l is as bellow.<br /><br />root@debian:~# fdisk -l /dev/sdd<br /><br />Disk /dev/sdd: 34.1 GB, 34078719488 bytes<br />64 heads, 31 sectors/track, 33548 cylinders, total 66559999 sectors<br />Units = sectors of 1 * 512 = 512 bytes<br />Sector size (logical/physical): 512 bytes / 512 bytes<br />I/O size (minimum/optimal): 512 bytes / 512 bytes<br />Disk identifier: 0x02ff938b<br /><br /> Device Boot Start End Blocks Id System<br />/dev/sdd1 * 2048 66559998 33278975+ 83 Linux<br />cranil7https://www.blogger.com/profile/12752694181897962282noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-73298987051274919442014-03-13T20:47:32.078+11:002014-03-13T20:47:32.078+11:00Thanks for replying. I suspect it has to do with t...Thanks for replying. I suspect it has to do with the boot loader not being able to find appropriate kernel files. I'm probably missing some configuration files or configuration statements somewhere in the boot loader section (but where?)<br />Maybe you can help, it's been bugging me for some time I need to get it up and running. Thanks mate.Pawełhttp://pawelotto.comnoreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-91374000449763243702014-03-11T11:17:14.632+11:002014-03-11T11:17:14.632+11:00No idea -- haven't seen that error before. Sea...No idea -- haven't seen that error before. Searching brings up a number of hits, although most of them are related to using linux isos. Presumably the solutions to those issues should be similar to the issues you're seeing.lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-90836852666890386452014-03-09T23:08:59.151+11:002014-03-09T23:08:59.151+11:00This doesn't work for me. Can you help? I foll...This doesn't work for me. Can you help? I followed the instructions very carefully (checked 4 times) but I end up with the following error during boot:<br />No DEFAULT or UI configuration directive found<br /><br />Can you assist me further? Many thanksPawełhttp://pawelotto.comnoreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-15644891303837275552014-02-08T04:34:36.681+11:002014-02-08T04:34:36.681+11:00maybe add a warning that you can only make a amd64...maybe add a warning that you can only make a amd64 system if to create it from a amd64 system.<br /><br />i just tried it from a i386 PC and the chroot failed (end of step 2) <br />with the error :<br />chroot failed to run command /bin/bash' exec format errorVincent Verheijenhttps://www.blogger.com/profile/03272624270613565886noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-78277901756860593192013-12-22T11:26:30.675+11:002013-12-22T11:26:30.675+11:00To see what shell you're using, do
echo $SHELL...To see what shell you're using, do<br />echo $SHELL<br /><br />Does it not read your ~/.bashrc, or do you actually just have a minimal ~/.bashrc? Try<br />source ~/.bashrc<br />to force it being read, and see what happens.<br /><br />If it turns out that ~/.bashrc isn't read by default, have a look at /etc/bash.bashrc and /etc/profile<br /><br />A 'normal' bashrc should look like:<br />case $- in<br /> *i*) ;;<br /> *) return;;<br />esac<br /><br />HISTCONTROL=ignoreboth<br /><br />shopt -s histappend<br /><br />HISTSIZE=1000<br />HISTFILESIZE=2000<br /><br />shopt -s checkwinsize<br /><br />if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then<br /> debian_chroot=$(cat /etc/debian_chroot)<br />fi<br /><br />case "$TERM" in<br /> xterm-color) color_prompt=yes;;<br />esac<br /><br />if [ -n "$force_color_prompt" ]; then<br /> if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then<br /> color_prompt=yes<br /> else<br /> color_prompt=<br /> fi<br />fi<br /><br />if [ "$color_prompt" = yes ]; then<br /> PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '<br />else<br /> PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '<br />fi<br />unset color_prompt force_color_prompt<br /><br />case "$TERM" in<br />xterm*|rxvt*)<br /> PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"<br /> ;;<br />*)<br /> ;;<br />esac<br /><br />if [ -x /usr/bin/dircolors ]; then<br /> test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"<br /> alias ls='ls --color=auto'<br /><br />fi<br /><br /><br /><br />if [ -f ~/.bash_aliases ]; then<br /> . ~/.bash_aliases<br />fi<br /><br />if ! shopt -oq posix; then<br /> if [ -f /usr/share/bash-completion/bash_completion ]; then<br /> . /usr/share/bash-completion/bash_completion<br /> elif [ -f /etc/bash_completion ]; then<br /> . /etc/bash_completion<br /> fi<br />filindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-38952244527396307112013-12-21T13:56:11.504+11:002013-12-21T13:56:11.504+11:00Actually I thought it was xterm because it looked ...Actually I thought it was xterm because it looked like a non-configured xterm terminal. But I just learned that xterm needs X to run. So I guess it is just the linux console you get where you log and start X by "startx" command.<br />This happens when I boot from usb where the os is installed. This console doesn't not accept the arrows as commands but as "5]]" characters, I don't have my bashrc loaded even after logged into my account and then the "env" command returns a minimal environment.<br />I installed the stable version which is wheezy by now.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-40662007182215064752013-12-20T09:40:15.676+11:002013-12-20T09:40:15.676+11:00I'm not sure exactly what you mean -- if you e...I'm not sure exactly what you mean -- if you end up in an xterm console you must be starting some X11 environment. <br /><br />Re .bashrc -- the first step is to make sure that you are mounting your /home partition and that you end up in the right partition on logging in. Check your fstab as well.<br /><br />What DE did you install, if any?lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-31662153785383605412013-12-20T09:37:57.854+11:002013-12-20T09:37:57.854+11:00Hi Sean,
The methods are complimentary. Progress i...Hi Sean,<br />The methods are complimentary. Progress is made by people who explore the options -- using a chroot can be used for neat stuff like this: http://verahill.blogspot.com.au/2013/03/359-installing-scientific-linux-centos.html.<br /><br />And personally I have no intention of rebooting my computer just to prepare a USB stick. Over 5,000 page hits on this page so far would indicate that I'm not the only one.<br /><br />Finally, there's nothing inherently 'complicated' with open source. In most cases managing your system is much more straightforward due to the everything-is-a-file principle on linux.lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-32814221009719458042013-12-19T21:17:52.971+11:002013-12-19T21:17:52.971+11:00Or just use the first full Debian install DVD, sel...Or just use the first full Debian install DVD, select the USB drive during partition, set up as necessary, then continue the install as you would with a normal HDD install...easy peasy, and with none of this extraneous chroot crap.<br /><br />Open source is more complicated than what Windows users are used ok but no need to make it more complicated than necessary.Anonymoushttps://www.blogger.com/profile/07226418326293587683noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-3241372629709776002013-12-19T17:19:34.580+11:002013-12-19T17:19:34.580+11:00Hi, first thanks for this tuto ! ;)
Second, just 1...Hi, first thanks for this tuto ! ;)<br />Second, just 1 question : when I start deby (on the usb stick), I arrived on a xterm console not the usual console ? which doesn't take my bashrc either ? So could you please point me in the right direction to configure this correctly and have a correct 'env' setup ? Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-36606945397109941432013-11-27T15:18:10.047+11:002013-11-27T15:18:10.047+11:00Xfce is a lightweight desktop environment for UNIX...Xfce is a lightweight desktop environment for UNIX-like operating systems. It aims to be fast and low on system resources, while still being visually appealing and user friendly.<br /><br />To install Xfce on debian 7 wheezy<br /># apt-get install xorg xfce4 xfce4-goodies thunar-archive-plugin synaptic gdebi wicd<br /><br />To install extra XFCE packages<br /># apt-get install xdg-utils xfce4-power-manager xfce4-goodies htop bzip2 zip unzip unrar-free<br /><br />There are more gui to choose from http://namhuy.net/1085/install-gui-on-debian-7-wheezy.htmltychuothttps://www.blogger.com/profile/16205354056839329167noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-50886833654609103112013-11-07T09:44:03.255+11:002013-11-07T09:44:03.255+11:00What you might want to focus on is installing all ...What you might want to focus on is installing all the (non-conflicting -- watch out with broadcom) non-free firmware you can, in order to make sure that you won't have issues with unrecognised NICs.lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-6477538908398262582013-11-07T09:42:21.518+11:002013-11-07T09:42:21.518+11:00That depends on your needs, desires and how much s...That depends on your needs, desires and how much space you have. For a portable USB stick I probably wouldn't bother beyond the free radeon and nouveau drivers.lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-71395364463715683142013-11-06T09:01:23.994+11:002013-11-06T09:01:23.994+11:00Excelent article! Any regards with other drivers, ...Excelent article! Any regards with other drivers, such as video and audio drivers? Should I install ATI and nVidia non-frees aswell?Marcos Núñezhttps://www.blogger.com/profile/02579663288874254707noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-87154942738791091342013-10-17T11:07:34.406+11:002013-10-17T11:07:34.406+11:00Jeff, thank you for your feedback, and happy that ...Jeff, thank you for your feedback, and happy that it worked out for you!<br /><br />lindqvisthttps://www.blogger.com/profile/11525548328692436184noreply@blogger.comtag:blogger.com,1999:blog-5188121942175615593.post-53091141266047697732013-10-17T02:01:46.936+11:002013-10-17T02:01:46.936+11:00A really useful post! It covered something that I...A really useful post! It covered something that I have wanted to do for some time. I followed your instructions (almost) to the letter and found that when I tried to boot from the usb stick, the file system was mounted as read-only. This, I discovered, was simply because I had made a simple typing error on the fstab entry, when corrected, it booted up fine.<br /><br />My other problem was that startx was not found, I had installed gnome but I couldn't start it. Once I had installed xorg and xinit, startx worked just fine. I was surprised that they weren't installed with gnome.<br /><br />Anyway - thanks for a great post.<br />Jeffhttps://www.blogger.com/profile/07802506477268592374noreply@blogger.com