I have a laptop whose installed system (aptosid) is configured for work-related purposes, so installing over top of that wasn't an option. So I could play with AntiX in parallel, I decided to install it on an external USB HDD. The following are the steps I followed to get it working.
I have tried to make the steps sufficiently detailed so others can follow them.
Hardware:
Dell Inspiron 6000 (4 years old)
Intel Pentium M 2.0 GHz
2 GB RAM
Wired: Broadcom BCM4401-B0
Wireless: Intel Pro 2200BG
External USB HDD:
Western Digital Element 250 GB (USB powered)
25 GB for root
198 GB for /home
10 GB for /swap
AntiX 686-update Live CD (updated version from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.mepisimo.com/antix/Testing/"
linktext was:"http://www.mepisimo.com/antix/Testing/"
====================================
)
Boot cheat codes: I left the"lean" and added lang=en_GB
Used the AntiX installer (not antix2usb) and did a normal install onto the external hdd.
At this point, the external hdd did not boot properly, nor did it find the wired ethernet connection because the Broadcom kernel module wasn't loaded.
Post-Installation Tinkering:
The laptop was still running from the Live CD so ...
1. I used Gparted to find the UUIDs for the 3 partitions on the external hdd.
2. I mounted the root partition using the mount utility in the AntiX Control Centre (Disks tab > Mount Connected Devices icon).
3. /boot/grub/menu.lst was edited:
"root (hd1,0)" was changed to"root (hd0,0)"
"kernel ... /dev/sdb1 ..." was changed to"kernel ... /dev/disk/by-uuid/<uuid here> ..."
added rootdelay=8 at the end of the kernel line to allow time for USB devices to settle.
removed"boot" in the final line of the section because it's not needed.
4. /etc/fstab was edited:
"/dev/sdb<n>" was replaced by"UUID=<uuid for partition>"
5. /etc/modprobe.d/b43.conf was edited:
I commented out the line containing"install b44 true" by putting a # at the beginning.
Note that the comments within this file refer to a /etc/defaults/mepis-network file/folder which does not seem to exist in the installed AntiX system.
6. I booted the system from the external USB HDD (after removing the Live CD). For some reason I have to use F12 to manually select the external USB drive even though I have set the BIOS boot order to CD then external USB drive then internal HDD. (My Arch Linux system which is also installed on an external USB HDD doesn't require me to press F12. So there is a bit of a mystery here.) After selecting the external USB drive, AntiX starts perfectly.
7. From the AntiX Control Centre, (Network tab > Configure DSL Connection icon) I started the DSL configuration, replied"No" when it asked if all my interfaces were shown (because the wired ethernet was missing) and under the kernel/drivers/net section I added the b44 kernel module. Note that it said the"installation failed".
8. I rebooted the laptop from the external USB HDD and repeated step 7. This time it said the installation was successful. However the wired ethernet connection still wasn't working nor detected.
9. I rebooted the laptop a third time and the wired ethernet connection was detected and working. I edited the preferences for Wicd to make the wired connection my default (AntiX Control Centre > Network tab > Connect Wirelessly (wicd) icon).
10. I used Ceni to edit my wired connection (AntiX Control Centre > Network tab > Network Interfaces (ceni) icon). For the wired connection I selected"dhcp" and then"auto" (within the class window) because it is a built-in ethernet.
11. I opened a terminal, logged in as root and ran the get-iana script. I left the terminal window open for step 13.
12. I edited the firewall settings (AntiX Control Centre > Network tab > Manage Firewall icon)
START_FIREHOL=NO was changed to START_FIREHOL=YES
I saved the file.
Then I restarted the firewall (Firehol) by clicking on the Restart icon and typed in my root password when it asked.
13. In the open root terminal window I updated my system:
apt-get update
apt-get dist-upgrade
apt-get -f install
apt-get clean
apt-get autoclean
I closed the terminal window.
14. I have a running and up-to-date AntiX system on my external USB HDD.
I hope this is helpful.
Kind Regards,
Ted
topic title: Installing AntiX 8.5 (updated) on External USB HDD
-
Posts: 2
- Joined: 28 Oct 2010
-
Posts: 516
- Site Admin
- Joined: 01 Oct 2007
#2
Welcome to anitX,
There are several here who have run sidux and now aptosid,
I occasionally dl and try out KDE or XFCE from aptosid (sidux), but I always end up back with antiX, I prefer Fluxbox, though IceWM is tweaked very nicely by anticapitlista. I personally use sxmi on antiX running sid repos, but you can run stable too. It is a very flexible system.
Currently running the liquorix kernel.
Nice writeup, very readable. Again Welcome.
cheers,
ohh
There are several here who have run sidux and now aptosid,
I occasionally dl and try out KDE or XFCE from aptosid (sidux), but I always end up back with antiX, I prefer Fluxbox, though IceWM is tweaked very nicely by anticapitlista. I personally use sxmi on antiX running sid repos, but you can run stable too. It is a very flexible system.
Currently running the liquorix kernel.
Nice writeup, very readable. Again Welcome.
cheers,
ohh
-
Posts: 2
- Joined: 28 Oct 2010
#3
Dear ohh,
Thanks for the welcome! I'm glad you found the write-up clear.
When something doesn't"work out of the box" and I have to spend some time figuring out how to make it work, I like to write it up to save other people time.
I switched to Linux nearly 4 years ago. I ran Debian Testing for quite a while then switched to sidux. sidux was nice and stable but with their recent problems I've found it"twitchy". Perhaps it will settle down again. But if not, AntiX is looking to be a bloat-free + rolling-release replacement I could happily live with.
All the best,
Ted
Thanks for the welcome! I'm glad you found the write-up clear.
When something doesn't"work out of the box" and I have to spend some time figuring out how to make it work, I like to write it up to save other people time.
I switched to Linux nearly 4 years ago. I ran Debian Testing for quite a while then switched to sidux. sidux was nice and stable but with their recent problems I've found it"twitchy". Perhaps it will settle down again. But if not, AntiX is looking to be a bloat-free + rolling-release replacement I could happily live with.
All the best,
Ted
-
Posts: 4
- Joined: 14 Nov 2010
#4
I am trying to to install Antix on an external WD drive to use it as a portable system. I can install Antix using Antix2usb, but then I am stuck with a standard"live CD" type system, which is not what I am looking for. I want to install Antix in a similar way I have installed it on my computer (locale stettings, users, paswords, etc.), but then on an external drive so I can startup any computer using my disk and have my own system available.
Any good suggestions?
Crazy
Any good suggestions?
Crazy
-
Posts: 516
- Site Admin
- Joined: 01 Oct 2007
#5
Hmm,
Well, I have in the past installed antiX to a USB hdd, and then any computer capable of booting from usb can be used to boot my antiX wherever I am.
I usually append the boot line with rootdelay=10 to allow time to read the usb. YMMV
cheers,
ohh
Well, I have in the past installed antiX to a USB hdd, and then any computer capable of booting from usb can be used to boot my antiX wherever I am.
I usually append the boot line with rootdelay=10 to allow time to read the usb. YMMV
cheers,
ohh
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#6
Use the antiX installer as normal, but point it to install to the usb device.
make sure you install grub to the mbr of the usb device otherwise it wont boot.
You might also need to reconfigure the /boot/grub/menu.lst so root=points to the correct drive.
make sure you install grub to the mbr of the usb device otherwise it wont boot.
You might also need to reconfigure the /boot/grub/menu.lst so root=points to the correct drive.
-
Posts: 4
- Joined: 14 Nov 2010
#7
I tried just what Anticapitalista suggested, but was only able ro run the system of of the laptop I installed it from.
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#8
You will need to change the menu.lst on the usb device.
Post it so we can see it.
Post it so we can see it.
-
Posts: 4
Crazy - Joined: 14 Nov 2010
#9
timeout 10
color cyan/blue white/blue
foreground ffffff
background 0639a1
gfxmenu /boot/grub/message
title antiX at sdb1, kernel 2.6.32-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=/dev/sdb1 nomce quiet nosplash vga=791
initrd /boot/initrd.img-2.6.32-1-mepis-smp
boot
title Microsoft Windows XP Professional at sda2
rootnoverify (hd0,1)
chainloader +1
title antiX at sda1, kernel 2.6.32-1-mepis-smp
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=/dev/sda1 nomce quiet nosplash vga=791
initrd /boot/initrd.img-2.6.32-1-mepis-smp
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=13f59ccf-aa12-4e7b-bf41-af8196742af0 ro
# kopt_2_6=root=UUID=13f59ccf-aa12-4e7b-bf41-af8196742af0 ro nosplash quiet
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(init-3) 3
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title antiX-M8.5, kernel 2.6.32-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=UUID=13f59ccf-aa12-4e7b-bf41-af8196742af0 ro nosplash quiet
initrd /boot/initrd.img-2.6.32-1-mepis-smp
title antiX-M8.5, kernel 2.6.32-1-mepis-smp (init-3)
root (hd1,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=UUID=13f59ccf-aa12-4e7b-bf41-af8196742af0 ro nosplash quiet 3
initrd /boot/initrd.img-2.6.32-1-mepis-smp
title antiX-M8.5, kernel memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
here is the menu.lst file (should be default as have not made any changes)anticapitalista wrote:You will need to change the menu.lst on the usb device.
Post it so we can see it.
timeout 10
color cyan/blue white/blue
foreground ffffff
background 0639a1
gfxmenu /boot/grub/message
title antiX at sdb1, kernel 2.6.32-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=/dev/sdb1 nomce quiet nosplash vga=791
initrd /boot/initrd.img-2.6.32-1-mepis-smp
boot
title Microsoft Windows XP Professional at sda2
rootnoverify (hd0,1)
chainloader +1
title antiX at sda1, kernel 2.6.32-1-mepis-smp
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=/dev/sda1 nomce quiet nosplash vga=791
initrd /boot/initrd.img-2.6.32-1-mepis-smp
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=13f59ccf-aa12-4e7b-bf41-af8196742af0 ro
# kopt_2_6=root=UUID=13f59ccf-aa12-4e7b-bf41-af8196742af0 ro nosplash quiet
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(init-3) 3
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title antiX-M8.5, kernel 2.6.32-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=UUID=13f59ccf-aa12-4e7b-bf41-af8196742af0 ro nosplash quiet
initrd /boot/initrd.img-2.6.32-1-mepis-smp
title antiX-M8.5, kernel 2.6.32-1-mepis-smp (init-3)
root (hd1,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=UUID=13f59ccf-aa12-4e7b-bf41-af8196742af0 ro nosplash quiet 3
initrd /boot/initrd.img-2.6.32-1-mepis-smp
title antiX-M8.5, kernel memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#10
Hmm, that seems ok.
Mine is similar.
Do you have antiX installed on sda1 and sdb1?
Have you set the bias ok on the other boxes to boot from the usb device? If so, what errors do you get when it fails to boot antiX?
My device.map looks like this:
Mine is similar.
Do you have antiX installed on sda1 and sdb1?
Have you set the bias ok on the other boxes to boot from the usb device? If so, what errors do you get when it fails to boot antiX?
My device.map looks like this:
Code: Select all
(hd0) /dev/disk/by-id/ata-WDC_WD1600AAJS-00PSA0_WD-WCAP95014132
(hd1) /dev/disk/by-id/ata-ST3320620AS_9QF9VV48
(hd2) /dev/disk/by-id/usb-WDC_WD20_00JB-00GVA0_0-0:0
-
Posts: 4
- Joined: 14 Nov 2010
#11
it runs on sdb1
When I start the other box just get:
GRUB Loading stage1.5.
GRUB loading, please wait...
and that is it
Crazy
When I start the other box just get:
GRUB Loading stage1.5.
GRUB loading, please wait...
and that is it
Crazy
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#12
No error number?
This offers a solution:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://grub.enbug.org/GrubLegacy"
linktext was:"http://grub.enbug.org/GrubLegacy"
====================================
This offers a solution:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://grub.enbug.org/GrubLegacy"
linktext was:"http://grub.enbug.org/GrubLegacy"
====================================
-
Posts: 516
- Site Admin
- Joined: 01 Oct 2007
#13
I may be wrong, but are you positive your booting from the usb hdd?
In order to boot from mine I have to hit f12 (Dell Laptop) to get a boot menu to choose from
hd
usb
cd-rom
network
then I choose usb, the caveat is that when you do it this way grub has to be installed to the mbr of the usb drive as well as on your hd.
and you have to go into menu.lst on the usb and change it to read:
as an example from
root (hd1,0)
to
root (hd0,0)
cheers,
ohh
In order to boot from mine I have to hit f12 (Dell Laptop) to get a boot menu to choose from
hd
usb
cd-rom
network
then I choose usb, the caveat is that when you do it this way grub has to be installed to the mbr of the usb drive as well as on your hd.
and you have to go into menu.lst on the usb and change it to read:
as an example from
root (hd1,0)
to
root (hd0,0)
cheers,
ohh
-
Posts: 51
- Joined: 05 Sep 2010
#14
Hi , please allow me to join in on this subject.
I recently played with multi-booting from USB and went through some of these issues and probably can share a bit here.
First, I borrow your grub stanza, just the first one that read:
title antiX at sdb1, kernel 2.6.32-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=/dev/sdb1 nomce quiet nosplash vga=791
initrd /boot/initrd.img-2.6.32-1-mepis-smp
boot
Here some explanation might be useful:
1. when Bios is set to boot from USB drive, then it becomes first boot drive.
It pays to note Grub always see first boot drive as (hd0)
2. the kernel see /dev/<whatever> according to floppy/IDE/Sata/SCSI/CDROM etc that depends also on kernel level.
My old laptop see it as /dev/hda by antiXM8.5, but other OS's kernel see the same IDE drive as /dev/sda so I often need to make proper change on grub stanza.
When you setup your USB drive from the original computer, if the above grub stanza had not been changed, then it appeared that your original computer's grub see it as /dev/sdb1 (second drive , partition 1) and as such the grub stanza put (hd1,0)= /dev/sdb1
Now when you move the USB to second computer, and set that computer's Bios to boot from USB, remember now Grub will see your USB as (hd0) and your antiX partition as (hd0,0).
So you need to amend the grub stanza to (hd0,0) for this reason. This is also permanent change since what you want is to boot from other computer via USB, as first boot drive.
Next , the /dev/sdb1 on original computer seen by its kernel at the point of installation, when you move USB drive to second computer, it is important to know what this partition is seen by the kernel ( fdisk -l will show) and you would need to amend this to the proper /dev/<whatever>.
This is the chore that I do not like, but have to deal with it. When I move this USB drive to the third, fourth computer and so on, while the line (hd0,0) will remain the same as Grub always see boot drive as (hd0), I need to change the /dev/<whatever> again. This is bad. Someday I hope to overcome this.
Sometime, I just delete the root=/dev/<whatever> and still be able to boot from USB but I felt I did not do it right yet.
Hope this help you to get your USB drive to boot on more than one computer.
I recently played with multi-booting from USB and went through some of these issues and probably can share a bit here.
First, I borrow your grub stanza, just the first one that read:
title antiX at sdb1, kernel 2.6.32-1-mepis-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=/dev/sdb1 nomce quiet nosplash vga=791
initrd /boot/initrd.img-2.6.32-1-mepis-smp
boot
Here some explanation might be useful:
1. when Bios is set to boot from USB drive, then it becomes first boot drive.
It pays to note Grub always see first boot drive as (hd0)
2. the kernel see /dev/<whatever> according to floppy/IDE/Sata/SCSI/CDROM etc that depends also on kernel level.
My old laptop see it as /dev/hda by antiXM8.5, but other OS's kernel see the same IDE drive as /dev/sda so I often need to make proper change on grub stanza.
When you setup your USB drive from the original computer, if the above grub stanza had not been changed, then it appeared that your original computer's grub see it as /dev/sdb1 (second drive , partition 1) and as such the grub stanza put (hd1,0)= /dev/sdb1
Now when you move the USB to second computer, and set that computer's Bios to boot from USB, remember now Grub will see your USB as (hd0) and your antiX partition as (hd0,0).
So you need to amend the grub stanza to (hd0,0) for this reason. This is also permanent change since what you want is to boot from other computer via USB, as first boot drive.
Next , the /dev/sdb1 on original computer seen by its kernel at the point of installation, when you move USB drive to second computer, it is important to know what this partition is seen by the kernel ( fdisk -l will show) and you would need to amend this to the proper /dev/<whatever>.
This is the chore that I do not like, but have to deal with it. When I move this USB drive to the third, fourth computer and so on, while the line (hd0,0) will remain the same as Grub always see boot drive as (hd0), I need to change the /dev/<whatever> again. This is bad. Someday I hope to overcome this.
Sometime, I just delete the root=/dev/<whatever> and still be able to boot from USB but I felt I did not do it right yet.
Hope this help you to get your USB drive to boot on more than one computer.
-
Posts: 516
- Site Admin
- Joined: 01 Oct 2007
#15
Wayne,
One way to minimize the hda, sda issue is to use uuid, but then you have to remember to tweak fstab any time a partition gets reformatted, then it gets a new uuid.
cheers,
ohh
One way to minimize the hda, sda issue is to use uuid, but then you have to remember to tweak fstab any time a partition gets reformatted, then it gets a new uuid.
cheers,
ohh