You are not logged in.
Pages: 1
Friends:
Merry Christmas to all. For those who had a good meal and browsing thru Arch forums, sorry to disturb you.
I need help.
I am trying to install Arch Linux on a USB drive from a Live USB stick. The install moves fine and I follow the standard Arch install but pointing to the USB drive as the target.
However, once the install is complete and I halt the machine and then I unplug the Live USB stick, then start the box(with the installed USB In the same USB socket) I receive the
/dev/by-disk/...... error.
I have the syslinux boot loader and I have not tried grub. Any help is appreciated.
Regards,
-Narahari
Offline
Did you include the usb hook in your mkinitcpio.conf? I'm guessing not - add it, then rebuild the initramfs and you should be set.
EDIT: also, are you using UUIDs in syslinux.cfg? If not, you should.
Last edited by Trilby (2012-12-25 20:13:26)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Did you include the usb hook in your mkinitcpio.conf? I'm guessing not - add it, then rebuild the initramfs and you should be set.
EDIT: also, are you using UUIDs in syslinux.cfg? If not, you should.
I used UUID's for sure but I did not know about usb hook.
Can I see an example of usb hook in the mkinitcpio.conf ?
-N
Offline
The usb hook is is deprecated in favor of the 'block' hook (see mkinitcpio --listhooks)
IOW, if you have the block hook you should be g2g
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Oops, I stand corrected. The block hook is pretty new - I've installed on several USB sticks and always needed the usb hook, but alphaniner is correct that it should not be needed if you have 'block'.
Do the latest isos have the block hook? And are you (savathari) using the latest iso?
For more complete examples see the wiki or man pages. Mine is below, but you should not simply copy it.
MODULES="ahci sd_mod ext4"
BINARIES="fsck fsck.ext4"
HOOKS="base timestamp"
COMPRESSION="lzop"
You'd want block or usb on the "HOOKS" line.
EDIT: if none of this applies/helps then post the actual error message. There is no /dev/by-disk, and paraphrased error messages only leave us guessing.
Last edited by Trilby (2012-12-26 15:25:22)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Do the latest isos have the block hook?
Not according to mkinitcpio --listhooks run in the live environment.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
https://wiki.archlinux.org/index.php/US … O_from_RAM
... It also allows booting and installing Arch from (and to) the same USB stick.
https://wiki.archlinux.org/index.php/Be … nvironment
Here you need to set the right hooks if the root is on a USB drive, if ...
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
https://wiki.archlinux.org/index.php/US … O_from_RAM
It also allows booting and installing Arch from (and to) the same USB stick.
https://wiki.archlinux.org/index.php/Be … nvironment
Here you need to set the right hooks if the root is on a USB drive, if ...
Now that I installed Linux on a USB drive with CD-ROM as the install source,
Can I (or should I) mod the mkinitcpio.conf to have
blocks
in the
HOOKS
line ?
There was talk of the blocks option not valid for HOOKS line. Is that still true ?, In that case what is my alternative ?
Kindly advise and help.
-N
Offline
Yes, this is what we've all been pointing out.
Where is this talk of "blocks" not being valid? You either need the "usb" hook, or the "block" (not blocks) hook in your mkinitcpio.conf and have regenerated the initramfs in order to be able to boot from the installation on a usb stick.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Where is this talk of "blocks" not being valid?
Maybe it was STDERR 'talking' if savithari used blocks instead of block.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
First of all, a big Thank You to all who have helped me. It is very much appreciated.
I have since this conversaton put the target USB stick and a LIVE-CDROM.
I then installed from the CDROM to the USB. I checked the mkinitcpio.conf on the USB after the installation.
It has the block entry on the HOOKS line (without me doing anything).
The sysconfig.cfg file has the UUID entry.
I have tried mixing other USB sticks, rotating the USB-STICK(where ARCH is installed) to another slot. It all works fine.
But I really would like to be able to install from a USB-LIVE-STICK to a USB-STICK.
Is that feasible or install from CDROM to USB my best option ?
Regards
-N
Offline
But I really would like to be able to install from a USB-LIVE-STICK to a USB-STICK.
Is that feasible ...?
Of course. I've done this many times. Have you tried this and had problems?
FYI, if you're making multiple USB installs, I've also installed from live-usb to usb, then configured the new install just the way I wanted it, then used `dd` to duplicate that usb (partitions and all) to other usb drives of the same size. This avoids having to go through the same install and configure steps repeatedly if you are making many persistent install usbs.
Last edited by Trilby (2012-12-28 18:30:45)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
But I really would like to be able to install from a USB-LIVE-STICK to a USB-STICK.
Is that feasible or install from CDROM to USB my best option ?
I already told you:
https://wiki.archlinux.org/index.php/US … O_from_RAM
... It also allows booting and installing Arch from (and to) the same USB stick.
Follow the link and give it a shot. If you don't have a Windows, you can combine it with the instructions from here (instead of a .bat file)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Pages: 1