https://wiki.archlinux.org/api.php?action=feedcontributions&user=K+E+S+T&feedformat=atomArchWiki - User contributions [en]2024-03-29T08:24:41ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=User:K_E_S_T&diff=98353User:K E S T2010-02-27T09:36:15Z<p>K E S T: Created page with 'Связаться со мной можно по электронной почте: kko-smol@mail.ru'</p>
<hr />
<div>Связаться со мной можно по электронной почте: kko-smol@mail.ru</div>K E S Thttps://wiki.archlinux.org/index.php?title=Awesome_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=98352Awesome (Русский)2010-02-27T09:27:56Z<p>K E S T: </p>
<hr />
<div>[[Category:Dynamic WMs (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Awesome3}}<br />
<br />
С официального сайта:<br />
"''[http://awesome.naquadah.org/ awesome] это полностью настраиваемый современнай оконный менеджер для X. Он очень быстрый, расширяем и распространяется под GNU GPLv2 лицензией.<br />
<br />
Ориентирован на опытных пользователей, разработчиков, людей занимающихся вычислениями и желающих иметь полный контроль над графической средой.''"<br />
<br />
==Установка==<br />
<br />
Awesome 3.x доступен в репозитории community:<br />
# pacman -S awesome<br />
<br />
===Awesome-git===<br />
Git-based версия для разработчиков доступна в AUR, смотрите [http://aur.archlinux.org/packages.php?ID=13916 awesome-git] <br />
<br />
Есть несколько путей установки.<br />
Самый простой - использование "yaourt" (досупно в AUR). Если yaourt устанолен у вас, то выполните команду:<br />
# yaourt -S awesome-git<br />
<br />
==Getting Started==<br />
<br />
===Использование awesome===<br />
Для запуска awesome без менеджера загрузки, добавьте '''<tt>exec awesome</tt>''' в ваш загрузочный скрипт (т.е. ~/.xinitrc.)<br />
<br />
Если у вас есть проблемы с оборудованием(монтирование USB-дисков или чтение DVD) обратитесь к документации [[HAL]] и политикам доступа. Использование '''<tt>exec ck-launch-session awesome</tt>''' поможет решить ваши проблемы<br />
<br />
Чтобы запустить awesome из менеджера загрузки, читайте это: [[Display Manager|this article]]. <br />
<br />
'''[[SLIM]]''' это популярный лёгкий менеджер загрузки, рекомендуем использовать его. You should do like this:<br />
<br />
1) Отредактируйте /etc/slim.conf для запуска сессии awesome, добавте awesome в строку сессии.. <br>Пример: <br />
sessions awesome,wmii,xmonad<br />
2) Отредактируйте ~/.xinitrc file <br />
DEFAULT_SESSION=awesome<br />
case $1 in<br />
awesome) exec awesome ;;<br />
wmii) exec wmii ;;<br />
xmonad) exec xmonad ;;<br />
*) exec $DEFAULT_SESSION ;;<br />
esac<br />
However, you can also start awesome as preferred user without any login manager and even without logging in, after editing ~/.xinitrc and /etc/inittab properly. Refer to the article [[Start X at boot]].<br />
<br />
==Configuration==<br />
Awesome includes some good default settings right out of the box, but sooner or later you'll want to change something. The lua based configuration file is at <tt>~/.config/awesome/rc.lua</tt>.<br />
<br />
===Creating the configuration file===<br />
Whenever compiled, awesome will attempt to use whatever custom settings are contained in ~/.config/awesome/rc.lua. This file is not created by default, so we must copy the template file first:<br />
$ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/rc.lua<br />
<br />
The syntax of the configuration often changes when awesome updates. So, remember to repeate the command above when you get something strange with awesome, or you'd like to modify the configuration.<br />
<br />
For more information about configuring awesome, check out the [http://awesome.naquadah.org/wiki/Awesome_3_configuration configuration page at awesome wiki]<br />
<br />
===More configuration resources===<br />
{{Note|The syntax of awesome configuration changes regularly, so you will likely have to modify any file you download.}}<br />
<br />
Some good examples of rc.lua would be as follows:<br />
<br />
* http://git.sysphere.org/awesome-configs/tree/ - Awesome 3.4 configurations from Adrian C. (anrxc)<br />
* http://pastebin.com/f6e4b064e - Darthlukan's awesome 3.4 configuration. <br />
* http://www.calmar.ws/dotfiles/dotfiledir/dot_awesomerc.lua<br />
* http://github.com/wolgri/wolgri.config/tree/master/.config/awesome/rc.lua<br />
* http://oxmoz.no-ip.org/awesome/rc.lua<br />
* http://www.ugolnik.info/downloads/awesome/rc.lua (screen) - Awesome 3 with small titlebar and statusbar.<br />
* http://github.com/bash/dotfiles/blob/master/.config/awesome/rc.lua<br />
* http://github.com/nblock/config/blob/master/.config/awesome/rc.lua<br />
* User Configuration Files http://awesome.naquadah.org/wiki/User_Configuration_Files<br />
<br />
===Debug rc.lua using Xephyr===<br />
<br />
This is my prefered way to debug rc.lua, without breaking my curent desktop. I first copy my rc.lua into a new file, rc.lua.new, and modify it as needed. Then, I run new instance of awesome in Xephyr (allows you to run X nested in another X's client window - [http://www.dante4d.cz/pub/screenie/2009-08-01-025216_1920x1200_scrot.png screenshot]), supplying rc.lua.new as a config file like this:<br />
<br />
$ Xephyr -ac -br -noreset -screen 1152x720 :1 &<br />
$ DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua.new<br />
<br />
Big advantage of this approach is that if I break rc.lua.new, I don't break my current awesome desktop (and possibly crash all my X apps, lose all unsaved things and so on...). Once I'm happy with my new settings, I move rc.lua.new to rc.lua and restart awesome. And I can be sure it will work and restarting with new config won't mess up things.<br />
<br />
==Themes==<br />
<br />
Beautiful is a lua library that allows you to theme awesome using an external file, it becomes very easy to dynamically change your whole awesome colours and wallpaper without changing your rc.lua. <br />
<br />
The default theme is at /usr/share/awesome/themes/default. Copy it to ~/.config/awesome/themes/default and change theme_path in rc.lua. <br />
<br />
More details [http://awesome.naquadah.org/wiki/Beautiful here]<br />
<br />
A few sample [http://awesome.naquadah.org/wiki/Beautiful_themes themes]<br />
<br />
===Setting up your wallpaper===<br />
<br />
Beautiful can handle your wallpaper, thus you don't need to set it up in your .xinitrc or .xsession files. This allows you to have a specific wallpaper for each theme. If you take a look at the default theme file you'll see a wallpaper_cmd key, the given command is executed when beautiful.init("path_to_theme_file") is run. You can put here you own command or remove/comment the key if you don't want Beautiful to interfere with your wallpaper business.<br />
<br />
For instance, if you use awsetbg to set your wallpaper, you can write:<br />
<br />
wallpaper_cmd = { "awsetbg -f .config/awesome/themes/awesome-wallpaper.png" }<br />
<br />
====Random Background Image====<br />
To rotate the wallpapers randomly, just comment the wallpaper_cmd line above, and add a script into your .xinitrc with the codes below:<br />
<pre><br />
while true;<br />
do<br />
awsetbg -r <path/to/the/directory/of/your/wallpapers><br />
sleep 15m<br />
done &<br />
</pre><br />
<br />
==Tips & Tricks==<br />
Feel free to add any tips or tricks that you would like to pass on to other awesome users.<br />
<br />
===Expose effect like compiz===<br />
<br />
Revelation brings up a view of all your open clients; left-clicking a client pops to the first tag that client is visible on and raises/focuses the client. In addition, the Enter key pops to the currently focused client, and Escape aborts. <br />
<br />
http://awesome.naquadah.org/wiki/Revelation<br />
<br />
===Hide / show wibox in awesome 3===<br />
<br />
To map Modkey-b to hide/show default statusbar on active screen (as default in awesome 2.3), add to your ''clientkeys'' in rc.lua:<br />
<br />
awful.key({ modkey }, "b", function ()<br />
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible<br />
end),<br />
<br />
===Enable printscreens===<br />
<br />
To enable printscreens in awesome through the PrtScr button you need to have a screen capturing program.<br />
Scrot is a easy to use utility for this purpose and is available in Arch repositories.<br />
<br />
Just type:<br />
# pacman -S scrot<br />
<br />
and install optional dependencies if you feel that you need them.<br />
<br />
Next of we need to get the key name for PrtScr, most often this is named "Print" but one can never be too sure.<br />
<br />
Start up:<br />
# xev<br />
<br />
And press the PrtScr button, the output should be something like:<br />
KeyPress event ....<br />
root 0x25c, subw 0x0, ...<br />
state 0x0, keycode 107 (keysym 0xff61, '''Print'''), same_screen YES,<br />
....<br />
<br />
In my case as you see, the keyname is Print.<br />
<br />
Now to the configuration of awesome!<br />
<br />
Somewhere in your globalkeys array (doesn't mather where) type:<br />
<br />
Lua code:<br />
<br />
awful.key({ }, "Print", function () awful.util.spawn("scrot -e 'mv $f ~/screenshots/ 2>/dev/null'") end),<br />
<br />
A good place to place this is bellow the keyhook for spawning a terminal.<br />
To find this line search for: awful.util.spawn(terminal) in your favourite text editor.<br />
<br />
Also, this function saves screenshots inside ~/screenshots/, edit this to fit your needs.<br />
<br />
===Dynamic tagging===<br />
<br />
[http://awesome.naquadah.org/wiki/Eminent Eminent] is a small lua library that monkey-patches awful to provide you with effortless and quick wmii-style dynamic tagging. Unlike shifty, eminent does not aim to provide a comprehensive tagging system, but tries to make dynamic tagging as simple as possible. In fact, besides importing the eminent library, you do not have to change your rc.lua at all, eminent does all the work for you.<br />
<br />
[http://awesome.naquadah.org/wiki/Shifty Shifty] is an Awesome 3 extension that implements dynamic tagging. It also implements fine client matching configuration allowing YOU to be the master of YOUR desktop only by setting two simple config variables and some keybindings!<br />
<br />
===Space Invaders===<br />
[http://awesome.naquadah.org/wiki/Space_Invaders Space Invaders] is a demo to show the possibilities of the Awesome Lua API.<br />
<br />
Please note that it is no longer included in the Awesome package since the 3.4-rc1 release.<br />
<br />
===Naughty for popup notification===<br />
TODO<br />
[http://awesome.naquadah.org/wiki/index.php?title=Naughty]<br />
<br />
===Popup Menus===<br />
There's a simple menu by default in awesome3, and customed menus seem very easy now. However, if you're using 2.x awesome, have a look at ''[http://awesome.naquadah.org/wiki/index.php?title=Awful.menu awful.menu]''.<br />
<br />
An example for awesome3:<br />
<pre><br />
myawesomemenu = {<br />
{ "lock", "xscreensaver-command -activate" },<br />
{ "manual", terminal .. " -e man awesome" },<br />
{ "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },<br />
{ "restart", awesome.restart },<br />
{ "quit", awesome.quit }<br />
}<br />
<br />
mycommons = {<br />
{ "pidgin", "pidgin" },<br />
{ "OpenOffice", "soffice-dev" },<br />
{ "Graphic", "gimp" }<br />
}<br />
<br />
mymainmenu = awful.menu.new({ items = { <br />
{ "terminal", terminal },<br />
{ "icecat", "icecat" },<br />
{ "Editor", "gvim" },<br />
{ "File Manager", "pcmanfm" },<br />
{ "VirtualBox", "VirtualBox" },<br />
{ "Common App", mycommons, beautiful.awesome_icon },<br />
{ "awesome", myawesomemenu, beautiful.awesome_icon }<br />
}<br />
})<br />
</pre><br />
<br />
===More Widgets in awesome===<br />
''Widgets in awesome are objects that you can add to any widget-box (statusbars and titlebars), they can provide various information about your system, and are useful for having access to this information, right from your window manager. Widgets are simple to use and offer a great deal of flexibility.'' -- Source [http://awesome.naquadah.org/wiki/Widgets_in_awesome Awesome Wiki: Widgets].<br />
<br />
There's a widely used widget library called '''Wicked''' (compatible with awesome versions '''prior to 3.4'''), that provides more widgets, like MPD widget, CPU usage, memory usage, etc. For more details see the [http://awesome.naquadah.org/wiki/index.php?title=Wicked Wicked page].<br />
<br />
As a replacement for Wicked in awesome v3.4 check '''[http://awesome.naquadah.org/wiki/Vicious Vicious]''', '''[http://awesome.naquadah.org/wiki/Obvious Obvious]''' and '''[http://awesome.naquadah.org/wiki/Bashets Bashets]'''. If you pick vicious, you are also suggested to take a good look at [http://git.sysphere.org/vicious/tree/README vicious documentation].<br />
<br />
===Transparency===<br />
Awesome has support for (2D) transparency through xcompmgr. Note that you'll probably want the git version of xcompmgr, which is [http://aur.archlinux.org/packages.php?ID=16554 available in AUR]. <br />
<br />
Add this to your ~/.xinitrc:<br />
exec xcompmgr &<br />
See ''man xcompmgr'' or [[xcompmgr]] for more options.<br />
<br />
In awesome 3.4, window transparency can be set dynamically using signals. For example, your rc.lua could contain the following:<br />
<br />
client.add_signal("focus", function(c)<br />
c.border_color = beautiful.border_focus<br />
c.opacity = 1<br />
end)<br />
client.add_signal("unfocus", function(c)<br />
c.border_color = beautiful.border_normal<br />
c.opacity = 0.7<br />
end)<br />
<br />
Note that if you are using conky, you must set it to create its own window instead of using the desktop. To do so, edit ~/.conkyrc to contain:<br />
<br />
own_window yes<br />
own_window_transparent yes<br />
own_window_type desktop<br />
<br />
Otherwise strange behavior may be observed, such as all windows becoming fully transparent. Note also that since conky will be creating a transparent window on your desktop, any actions defined in awesome's rc.lua for the desktop will not work where conky is.<br />
<br />
As of Awesome 3.1, there is built-in pseudo-transparency for wiboxes. To enable it, append 2 hexadecimal digits to the colors in your theme file (~/.config/awesome/themes/default, which is usually a copy of /usr/share/awesome/themes/default), like shown here:<br />
<br />
bg_normal = #000000AA<br />
<br />
where "AA" is the transparency value.<br />
<br />
===Autorun programs===<br />
Just add the following codes in the rc.lua, and replace the applications in the autorunApps section with anything you like. Example:<br />
-- Autorun programs<br />
autorun = true<br />
autorunApps = <br />
{ <br />
"swiftfox",<br />
"mutt",<br />
"consonance",<br />
"linux-fetion",<br />
"weechat-curses",<br />
}<br />
if autorun then<br />
for app = 1, #autorunApps do<br />
awful.util.spawn(autorunApps[app])<br />
end<br />
end<br />
or like this:<br />
os.execute("mutt &"),<br />
os.execute("weechat-curses &"),<br />
<br />
To execute an application only once, e.g. for restarting awesome, use this function (from the [http://awesome.naquadah.org/wiki/Autostart awesome wiki]):<br />
function run_once(prg)<br />
if not prg then<br />
do return nil end<br />
end<br />
awful.util.spawn_with_shell("pgrep -u $USER -x " .. prg .. " || (" .. prg .. ")")<br />
end<br />
<br />
-- AUTORUN APPS!<br />
run_once("parcellite")<br />
<br />
===Passing content to widgets with awesome-client===<br />
<br />
You can easily send text to an awesome widget. Just create a new widget:<br />
<pre><br />
mywidget = widget({ type = "textbox", name = "mywidget" })<br />
mywidget.text = "initial text"<br />
</pre><br />
To update the text from an external source, use awesome-client:<br />
<pre> <br />
echo -e 'mywidget.text = "new text"' | awesome-client<br />
</pre><br />
Don't forget to add the widget to your wibox.<br />
<br />
==Troubleshooting==<br />
<br />
===Mod4 key===<br />
<br />
The Mod4 is by default the '''Win key'''. If it's not mapped by default, for some reason, you can check the keycode of your Mod4 key with<br />
<br />
$ xev<br />
<br />
It should be 115 for the left one. Then add this to your ~/.xinitrc<br />
<br />
xmodmap -e "keycode 115 = Super_L" -e "add mod4 = Super_L"<br />
exec awesome<br />
<br />
====Mod4 key vs. IBM ThinkPad users====<br />
<br />
IBM ThinkPads do not come equipped with a Window key (although Lenovo have changed this tradition on their ThinkPads). As of writing, the Alt key is not used in command combinations by the default rc.lua (refer to the Awesome wiki for a table of commands), which allows it be used as a replacement for the Super/Mod4/Win key. To do this, edit your rc.lua and replace:<br />
<br />
modkey = "Mod4"<br />
<br />
by:<br />
<br />
modkey = "Mod1"<br />
<br />
Note: Awesome does a have a few commands that make use of Mod4 plus a single letter. Changing Mod4 to Mod1/Alt could cause overlaps for some key combinations. The small amount of instances where this happens can be changed in the rc.lua file.<br />
<br />
If you don't like to change the awesome standards, you might like to remap a key. For instance the caps lock key is rather useless (for me) adding the following contents to ~/.Xmodmap <br />
<br />
clear lock <br />
add mod4 = Caps_Lock<br />
<br />
and [http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg#Introduction_2 (re)load] the file.<br />
This will change the caps lock key into the mod4 key and works nicely with the standard awesome settings. In addition, if needed, it provides the mod4 key to other X-programs as well.<br />
<br />
===Cairo Memory Leak===<br />
If you experiencing [http://awesome.naquadah.org/bugs/index.php?do=details&task_id=396 memory leaks] then try [http://aur.archlinux.org/packages.php?ID=9566 cairo-git] in AUR. [http://bbs.archlinux.org/viewtopic.php?pid=462021 Forum Thread]<br />
<br />
'''Update''': The recent Cairo 1.8.6 release is also fine to use it seems as the fix from git should be in there.<br />
<br />
==External Links==<br />
* http://awesome.naquadah.org/wiki/FAQ - FAQ<br />
* http://www.lua.org/pil/ - Programming in Lua (first edition)<br />
* http://awesome.naquadah.org/ - The official awesome website<br />
* http://awesome.naquadah.org/wiki/Main_Page - the awesome wiki<br />
* http://www.penguinsightings.org/desktop/awesome/ - A review</div>K E S Thttps://wiki.archlinux.org/index.php?title=Awesome_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=98351Awesome (Русский)2010-02-27T09:26:39Z<p>K E S T: Created page with 'Category:Dynamic WMs (Русский) Category:HOWTOs (Русский) {{i18n|Awesome3}} С официального сайта: "''[http://awesome.naquadah.org/ awesome…'</p>
<hr />
<div>[[Category:Dynamic WMs (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Awesome3}}<br />
<br />
С официального сайта:<br />
"''[http://awesome.naquadah.org/ awesome] это полностью настраиваемый современнай оконный менеджер для X. Он очень быстрый, расширяем и распространяется под GNU GPLv2 лицензией.<br />
<br />
Ориентирован на опытных пользователей, разработчиков, людей занимающихся вычислениями и желающих иметь полный контроль над графической средой.''"<br />
<br />
==Установка==<br />
<br />
Awesome 3.x доступен в репозитории community:<br />
# pacman -S awesome<br />
<br />
===Awesome-git===<br />
Git-based версия для разработчиков доступна в AUR, смотрите [http://aur.archlinux.org/packages.php?ID=13916 awesome-git] <br />
<br />
Есть несколько путей установки.<br />
Самый простой - использование "yaourt" (досупно в AUR). Если yaourt устанолен у вас, то выполните команду:<br />
# yaourt -S awesome-git<br />
<br />
==Getting Started==<br />
<br />
===Использование awesome===<br />
Для запуска awesome без менеджера загрузки, добавьте '''<tt>exec awesome</tt>''' в ваш загрузочный скрипт (т.е. ~/.xinitrc.)<br />
<br />
Если у вас есть проблемы с оборудованием(монтирование USB-дисков или чтение DVD) обратитесь к документации [[HAL]] и политикам доступа. Использование '''<tt>exec ck-launch-session awesome</tt>''' поможет решить ваши проблемы<br />
<br />
Чтобы запустить awesome из менеджера загрузки, читайте это: [[Display Manager|this article]]. <br />
<br />
'''[[SLIM]]''' это популярный лёгкий менеджер загрузки, рекомендуем использовать его. You should do like this:<br />
<br />
1) Отредактируйте /etc/slim.conf для запуска сессии awesome, добавте awesome и строку сессии.. <br>Пример: <br />
sessions awesome,wmii,xmonad<br />
2) Edit ~/.xinitrc file <br />
DEFAULT_SESSION=awesome<br />
case $1 in<br />
awesome) exec awesome ;;<br />
wmii) exec wmii ;;<br />
xmonad) exec xmonad ;;<br />
*) exec $DEFAULT_SESSION ;;<br />
esac<br />
However, you can also start awesome as preferred user without any login manager and even without logging in, after editing ~/.xinitrc and /etc/inittab properly. Refer to the article [[Start X at boot]].<br />
<br />
==Configuration==<br />
Awesome includes some good default settings right out of the box, but sooner or later you'll want to change something. The lua based configuration file is at <tt>~/.config/awesome/rc.lua</tt>.<br />
<br />
===Creating the configuration file===<br />
Whenever compiled, awesome will attempt to use whatever custom settings are contained in ~/.config/awesome/rc.lua. This file is not created by default, so we must copy the template file first:<br />
$ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/rc.lua<br />
<br />
The syntax of the configuration often changes when awesome updates. So, remember to repeate the command above when you get something strange with awesome, or you'd like to modify the configuration.<br />
<br />
For more information about configuring awesome, check out the [http://awesome.naquadah.org/wiki/Awesome_3_configuration configuration page at awesome wiki]<br />
<br />
===More configuration resources===<br />
{{Note|The syntax of awesome configuration changes regularly, so you will likely have to modify any file you download.}}<br />
<br />
Some good examples of rc.lua would be as follows:<br />
<br />
* http://git.sysphere.org/awesome-configs/tree/ - Awesome 3.4 configurations from Adrian C. (anrxc)<br />
* http://pastebin.com/f6e4b064e - Darthlukan's awesome 3.4 configuration. <br />
* http://www.calmar.ws/dotfiles/dotfiledir/dot_awesomerc.lua<br />
* http://github.com/wolgri/wolgri.config/tree/master/.config/awesome/rc.lua<br />
* http://oxmoz.no-ip.org/awesome/rc.lua<br />
* http://www.ugolnik.info/downloads/awesome/rc.lua (screen) - Awesome 3 with small titlebar and statusbar.<br />
* http://github.com/bash/dotfiles/blob/master/.config/awesome/rc.lua<br />
* http://github.com/nblock/config/blob/master/.config/awesome/rc.lua<br />
* User Configuration Files http://awesome.naquadah.org/wiki/User_Configuration_Files<br />
<br />
===Debug rc.lua using Xephyr===<br />
<br />
This is my prefered way to debug rc.lua, without breaking my curent desktop. I first copy my rc.lua into a new file, rc.lua.new, and modify it as needed. Then, I run new instance of awesome in Xephyr (allows you to run X nested in another X's client window - [http://www.dante4d.cz/pub/screenie/2009-08-01-025216_1920x1200_scrot.png screenshot]), supplying rc.lua.new as a config file like this:<br />
<br />
$ Xephyr -ac -br -noreset -screen 1152x720 :1 &<br />
$ DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua.new<br />
<br />
Big advantage of this approach is that if I break rc.lua.new, I don't break my current awesome desktop (and possibly crash all my X apps, lose all unsaved things and so on...). Once I'm happy with my new settings, I move rc.lua.new to rc.lua and restart awesome. And I can be sure it will work and restarting with new config won't mess up things.<br />
<br />
==Themes==<br />
<br />
Beautiful is a lua library that allows you to theme awesome using an external file, it becomes very easy to dynamically change your whole awesome colours and wallpaper without changing your rc.lua. <br />
<br />
The default theme is at /usr/share/awesome/themes/default. Copy it to ~/.config/awesome/themes/default and change theme_path in rc.lua. <br />
<br />
More details [http://awesome.naquadah.org/wiki/Beautiful here]<br />
<br />
A few sample [http://awesome.naquadah.org/wiki/Beautiful_themes themes]<br />
<br />
===Setting up your wallpaper===<br />
<br />
Beautiful can handle your wallpaper, thus you don't need to set it up in your .xinitrc or .xsession files. This allows you to have a specific wallpaper for each theme. If you take a look at the default theme file you'll see a wallpaper_cmd key, the given command is executed when beautiful.init("path_to_theme_file") is run. You can put here you own command or remove/comment the key if you don't want Beautiful to interfere with your wallpaper business.<br />
<br />
For instance, if you use awsetbg to set your wallpaper, you can write:<br />
<br />
wallpaper_cmd = { "awsetbg -f .config/awesome/themes/awesome-wallpaper.png" }<br />
<br />
====Random Background Image====<br />
To rotate the wallpapers randomly, just comment the wallpaper_cmd line above, and add a script into your .xinitrc with the codes below:<br />
<pre><br />
while true;<br />
do<br />
awsetbg -r <path/to/the/directory/of/your/wallpapers><br />
sleep 15m<br />
done &<br />
</pre><br />
<br />
==Tips & Tricks==<br />
Feel free to add any tips or tricks that you would like to pass on to other awesome users.<br />
<br />
===Expose effect like compiz===<br />
<br />
Revelation brings up a view of all your open clients; left-clicking a client pops to the first tag that client is visible on and raises/focuses the client. In addition, the Enter key pops to the currently focused client, and Escape aborts. <br />
<br />
http://awesome.naquadah.org/wiki/Revelation<br />
<br />
===Hide / show wibox in awesome 3===<br />
<br />
To map Modkey-b to hide/show default statusbar on active screen (as default in awesome 2.3), add to your ''clientkeys'' in rc.lua:<br />
<br />
awful.key({ modkey }, "b", function ()<br />
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible<br />
end),<br />
<br />
===Enable printscreens===<br />
<br />
To enable printscreens in awesome through the PrtScr button you need to have a screen capturing program.<br />
Scrot is a easy to use utility for this purpose and is available in Arch repositories.<br />
<br />
Just type:<br />
# pacman -S scrot<br />
<br />
and install optional dependencies if you feel that you need them.<br />
<br />
Next of we need to get the key name for PrtScr, most often this is named "Print" but one can never be too sure.<br />
<br />
Start up:<br />
# xev<br />
<br />
And press the PrtScr button, the output should be something like:<br />
KeyPress event ....<br />
root 0x25c, subw 0x0, ...<br />
state 0x0, keycode 107 (keysym 0xff61, '''Print'''), same_screen YES,<br />
....<br />
<br />
In my case as you see, the keyname is Print.<br />
<br />
Now to the configuration of awesome!<br />
<br />
Somewhere in your globalkeys array (doesn't mather where) type:<br />
<br />
Lua code:<br />
<br />
awful.key({ }, "Print", function () awful.util.spawn("scrot -e 'mv $f ~/screenshots/ 2>/dev/null'") end),<br />
<br />
A good place to place this is bellow the keyhook for spawning a terminal.<br />
To find this line search for: awful.util.spawn(terminal) in your favourite text editor.<br />
<br />
Also, this function saves screenshots inside ~/screenshots/, edit this to fit your needs.<br />
<br />
===Dynamic tagging===<br />
<br />
[http://awesome.naquadah.org/wiki/Eminent Eminent] is a small lua library that monkey-patches awful to provide you with effortless and quick wmii-style dynamic tagging. Unlike shifty, eminent does not aim to provide a comprehensive tagging system, but tries to make dynamic tagging as simple as possible. In fact, besides importing the eminent library, you do not have to change your rc.lua at all, eminent does all the work for you.<br />
<br />
[http://awesome.naquadah.org/wiki/Shifty Shifty] is an Awesome 3 extension that implements dynamic tagging. It also implements fine client matching configuration allowing YOU to be the master of YOUR desktop only by setting two simple config variables and some keybindings!<br />
<br />
===Space Invaders===<br />
[http://awesome.naquadah.org/wiki/Space_Invaders Space Invaders] is a demo to show the possibilities of the Awesome Lua API.<br />
<br />
Please note that it is no longer included in the Awesome package since the 3.4-rc1 release.<br />
<br />
===Naughty for popup notification===<br />
TODO<br />
[http://awesome.naquadah.org/wiki/index.php?title=Naughty]<br />
<br />
===Popup Menus===<br />
There's a simple menu by default in awesome3, and customed menus seem very easy now. However, if you're using 2.x awesome, have a look at ''[http://awesome.naquadah.org/wiki/index.php?title=Awful.menu awful.menu]''.<br />
<br />
An example for awesome3:<br />
<pre><br />
myawesomemenu = {<br />
{ "lock", "xscreensaver-command -activate" },<br />
{ "manual", terminal .. " -e man awesome" },<br />
{ "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },<br />
{ "restart", awesome.restart },<br />
{ "quit", awesome.quit }<br />
}<br />
<br />
mycommons = {<br />
{ "pidgin", "pidgin" },<br />
{ "OpenOffice", "soffice-dev" },<br />
{ "Graphic", "gimp" }<br />
}<br />
<br />
mymainmenu = awful.menu.new({ items = { <br />
{ "terminal", terminal },<br />
{ "icecat", "icecat" },<br />
{ "Editor", "gvim" },<br />
{ "File Manager", "pcmanfm" },<br />
{ "VirtualBox", "VirtualBox" },<br />
{ "Common App", mycommons, beautiful.awesome_icon },<br />
{ "awesome", myawesomemenu, beautiful.awesome_icon }<br />
}<br />
})<br />
</pre><br />
<br />
===More Widgets in awesome===<br />
''Widgets in awesome are objects that you can add to any widget-box (statusbars and titlebars), they can provide various information about your system, and are useful for having access to this information, right from your window manager. Widgets are simple to use and offer a great deal of flexibility.'' -- Source [http://awesome.naquadah.org/wiki/Widgets_in_awesome Awesome Wiki: Widgets].<br />
<br />
There's a widely used widget library called '''Wicked''' (compatible with awesome versions '''prior to 3.4'''), that provides more widgets, like MPD widget, CPU usage, memory usage, etc. For more details see the [http://awesome.naquadah.org/wiki/index.php?title=Wicked Wicked page].<br />
<br />
As a replacement for Wicked in awesome v3.4 check '''[http://awesome.naquadah.org/wiki/Vicious Vicious]''', '''[http://awesome.naquadah.org/wiki/Obvious Obvious]''' and '''[http://awesome.naquadah.org/wiki/Bashets Bashets]'''. If you pick vicious, you are also suggested to take a good look at [http://git.sysphere.org/vicious/tree/README vicious documentation].<br />
<br />
===Transparency===<br />
Awesome has support for (2D) transparency through xcompmgr. Note that you'll probably want the git version of xcompmgr, which is [http://aur.archlinux.org/packages.php?ID=16554 available in AUR]. <br />
<br />
Add this to your ~/.xinitrc:<br />
exec xcompmgr &<br />
See ''man xcompmgr'' or [[xcompmgr]] for more options.<br />
<br />
In awesome 3.4, window transparency can be set dynamically using signals. For example, your rc.lua could contain the following:<br />
<br />
client.add_signal("focus", function(c)<br />
c.border_color = beautiful.border_focus<br />
c.opacity = 1<br />
end)<br />
client.add_signal("unfocus", function(c)<br />
c.border_color = beautiful.border_normal<br />
c.opacity = 0.7<br />
end)<br />
<br />
Note that if you are using conky, you must set it to create its own window instead of using the desktop. To do so, edit ~/.conkyrc to contain:<br />
<br />
own_window yes<br />
own_window_transparent yes<br />
own_window_type desktop<br />
<br />
Otherwise strange behavior may be observed, such as all windows becoming fully transparent. Note also that since conky will be creating a transparent window on your desktop, any actions defined in awesome's rc.lua for the desktop will not work where conky is.<br />
<br />
As of Awesome 3.1, there is built-in pseudo-transparency for wiboxes. To enable it, append 2 hexadecimal digits to the colors in your theme file (~/.config/awesome/themes/default, which is usually a copy of /usr/share/awesome/themes/default), like shown here:<br />
<br />
bg_normal = #000000AA<br />
<br />
where "AA" is the transparency value.<br />
<br />
===Autorun programs===<br />
Just add the following codes in the rc.lua, and replace the applications in the autorunApps section with anything you like. Example:<br />
-- Autorun programs<br />
autorun = true<br />
autorunApps = <br />
{ <br />
"swiftfox",<br />
"mutt",<br />
"consonance",<br />
"linux-fetion",<br />
"weechat-curses",<br />
}<br />
if autorun then<br />
for app = 1, #autorunApps do<br />
awful.util.spawn(autorunApps[app])<br />
end<br />
end<br />
or like this:<br />
os.execute("mutt &"),<br />
os.execute("weechat-curses &"),<br />
<br />
To execute an application only once, e.g. for restarting awesome, use this function (from the [http://awesome.naquadah.org/wiki/Autostart awesome wiki]):<br />
function run_once(prg)<br />
if not prg then<br />
do return nil end<br />
end<br />
awful.util.spawn_with_shell("pgrep -u $USER -x " .. prg .. " || (" .. prg .. ")")<br />
end<br />
<br />
-- AUTORUN APPS!<br />
run_once("parcellite")<br />
<br />
===Passing content to widgets with awesome-client===<br />
<br />
You can easily send text to an awesome widget. Just create a new widget:<br />
<pre><br />
mywidget = widget({ type = "textbox", name = "mywidget" })<br />
mywidget.text = "initial text"<br />
</pre><br />
To update the text from an external source, use awesome-client:<br />
<pre> <br />
echo -e 'mywidget.text = "new text"' | awesome-client<br />
</pre><br />
Don't forget to add the widget to your wibox.<br />
<br />
==Troubleshooting==<br />
<br />
===Mod4 key===<br />
<br />
The Mod4 is by default the '''Win key'''. If it's not mapped by default, for some reason, you can check the keycode of your Mod4 key with<br />
<br />
$ xev<br />
<br />
It should be 115 for the left one. Then add this to your ~/.xinitrc<br />
<br />
xmodmap -e "keycode 115 = Super_L" -e "add mod4 = Super_L"<br />
exec awesome<br />
<br />
====Mod4 key vs. IBM ThinkPad users====<br />
<br />
IBM ThinkPads do not come equipped with a Window key (although Lenovo have changed this tradition on their ThinkPads). As of writing, the Alt key is not used in command combinations by the default rc.lua (refer to the Awesome wiki for a table of commands), which allows it be used as a replacement for the Super/Mod4/Win key. To do this, edit your rc.lua and replace:<br />
<br />
modkey = "Mod4"<br />
<br />
by:<br />
<br />
modkey = "Mod1"<br />
<br />
Note: Awesome does a have a few commands that make use of Mod4 plus a single letter. Changing Mod4 to Mod1/Alt could cause overlaps for some key combinations. The small amount of instances where this happens can be changed in the rc.lua file.<br />
<br />
If you don't like to change the awesome standards, you might like to remap a key. For instance the caps lock key is rather useless (for me) adding the following contents to ~/.Xmodmap <br />
<br />
clear lock <br />
add mod4 = Caps_Lock<br />
<br />
and [http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg#Introduction_2 (re)load] the file.<br />
This will change the caps lock key into the mod4 key and works nicely with the standard awesome settings. In addition, if needed, it provides the mod4 key to other X-programs as well.<br />
<br />
===Cairo Memory Leak===<br />
If you experiencing [http://awesome.naquadah.org/bugs/index.php?do=details&task_id=396 memory leaks] then try [http://aur.archlinux.org/packages.php?ID=9566 cairo-git] in AUR. [http://bbs.archlinux.org/viewtopic.php?pid=462021 Forum Thread]<br />
<br />
'''Update''': The recent Cairo 1.8.6 release is also fine to use it seems as the fix from git should be in there.<br />
<br />
==External Links==<br />
* http://awesome.naquadah.org/wiki/FAQ - FAQ<br />
* http://www.lua.org/pil/ - Programming in Lua (first edition)<br />
* http://awesome.naquadah.org/ - The official awesome website<br />
* http://awesome.naquadah.org/wiki/Main_Page - the awesome wiki<br />
* http://www.penguinsightings.org/desktop/awesome/ - A review</div>K E S Thttps://wiki.archlinux.org/index.php?title=Fast_Arch_Install_from_existing_Linux_System_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97778Fast Arch Install from existing Linux System (Русский)2010-02-21T15:25:06Z<p>K E S T: </p>
<hr />
<div>Это руководство равноправно с этим: [[Install From Existing Linux]]<br />
<br />
<br />
[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Deutsch|Schnellinstallation von einem bestehenden Linuxsystem (Deutsch)}}<br />
{{i18n_entry|English|Fast Arch Install from existing Linux System}}<br />
{{i18n_entry|繁體中文|F.在安裝了 Linux 的電腦上快速安裝 Arch}}<br />
{{i18n_entry|简体中文|在安装了 Linux 的电脑上快速安装 Arch}}<br />
{{i18n_entry|Русский|Быстрая установка Arch с жесткого диска}}<br />
{{i18n_links_end}}<br />
<br />
Если вы не имеете пишущего CD/DVD-ROM для записи установочного образа на диск, или вы хотите ускорить обычный процесс установки, вы можете использовать вместо CD ваш жесткий диск.<br />
<br />
Прочитайте [[Beginners' Guide (Русский)]] перед установкой.<br />
<br />
Вам понадобится '''ещё один''' раздел, больший чем установочный диск Arch. Я вошел в систему как '''root''' и буду использовать "/dev/hda12" объёмом 6Гб.<br />
<br />
Выберите загрузчик, который вы хотите использовать, это может быть "LILO" или "GRUB".<br />
<br />
==Lilo==<br />
<br />
Файл ISO должен находитьна на разделе, отличном от /dev/hda12<br />
<br />
1) Запишите iso на выбранный раздел (не надо использовать рекурсивное копирование, это не даст результата. dd запишет образ полностью побайтово):<br />
dd if=arch-0.7.iso of=/dev/hda12<br />
здесь arch-0.7.iso - образ ISO CD с установщиком Arch<br />
<br />
2) Создайте или используйте существуюшую точку монтирования и примонтируйте /dev/hda12 (можне не использовать опцию -tiso9660. ):<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
3) Отредактируйте lilo.conf:<br />
image=/mnt/archCD/isolinux/vmlinuz<br />
label=archCD<br />
initrd=/mnt/archCD/isolinux/initrd.img<br />
append="root=/dev/hda12 BOOTMEDIA=cd"<br />
<br />
Не забудте запустить:<br />
lilo<br />
<br />
==Grub==<br />
<br />
Я не смог загрузиться с раздела жесткого диска, содержащего ISO с GRUB, ISO должет быть сначала распакован на обычный раздел. Это еще быстрее, чем запись CD:<br />
<br />
1) Отформатируйте раздел (создайте или используйтё имеющуюсь точку монтирования) и примонтируйте его:<br />
<br />
mkreiserfs /dev/hda12<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
<br />
2) Примонтируйте Arch iso файл (используйте для этого ещё одну точку монтирования):<br />
mkdir /mnt/tmp<br />
mount -o loop arch-0.7.iso /mnt/tmp<br />
<br />
3) Скопируйте все файлы из ISO файла на жесткий диск:<br />
cd /mnt/tmp<br />
cp -a * /mnt/archCD<br />
<br />
4) Отредактируйте <code>/boot/grub/menu.lst</code><br />
title ArchCD<br />
kernel (hd0,11)/isolinux/vmlinuz root=/dev/hda12 BOOTMEDIA=cd<br />
initrd (hd0,11)/isolinux/initrd.img<br />
<br />
==Перезагрузка и установка Arch==<br />
<br />
Перезагрузите компьютер и выберите '''archCD''' в вашем загрузчике, установщик спросит вас, использовать CD или SRC, перейдите в другую командную оболочку и если вы используете lilo выполните:<br />
mount -t iso9660 /dev/hda12 /src<br />
если grub:<br />
mount /dev/hda12 /src<br />
<br />
* замените <code>/dev/hda12</code> на название выбранного вами раздела<br />
* вы можете использовать "авто-дополнение", чтобы найти нужный раздел, а не набирать всё это.<br />
* затем переключитесь обратно в установщик и выберите SRC а не CD для установки.<br />
<br />
==Восстановление раздела после установки==<br />
<br />
1) Раздел, на который был записан установочный образ, может быть использован далее. Просто создайте на нём файловую систему при помощи "mkreiserfs", "mke2fs" или других:<br />
mkreiserfs /dev/hda12<br />
<br />
2) Отредактируйте /etc/fstab чтобы раздел подключался при загрузке. Укажите его файловую систему и параметры :<br />
/dev/hda12 /mnt/spare reiserfs defaults,noatime,notail,noauto 0 0<br />
<br />
3) Проверьте, существует ли выбраная точка монтирования. Если её нет, то создайте:<br />
mkdir /mnt/spare</div>K E S Thttps://wiki.archlinux.org/index.php?title=Fast_Arch_Install_from_existing_Linux_System_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97777Fast Arch Install from existing Linux System (Русский)2010-02-21T15:04:32Z<p>K E S T: </p>
<hr />
<div>Это руководство равноправно с этим: [[Install From Existing Linux]]<br />
<br />
<br />
[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Deutsch|Schnellinstallation von einem bestehenden Linuxsystem (Deutsch)}}<br />
{{i18n_entry|English|Fast Arch Install from existing Linux System}}<br />
{{i18n_entry|繁體中文|F.在安裝了 Linux 的電腦上快速安裝 Arch}}<br />
{{i18n_entry|简体中文|在安装了 Linux 的电脑上快速安装 Arch}}<br />
{{i18n_entry|Русский|Быстрая установка Arch с жесткого диска}}<br />
{{i18n_links_end}}<br />
<br />
Если вы не имеете пишущего CD/DVD-ROM для записи установочного образа на диск, или вы хотите ускорить обычный процесс установки, вы можете использовать вместо CD ваш жесткий диск.<br />
<br />
Прочитайте [[Beginners' Guide (Русский)]] перед установкой.<br />
<br />
Вам понадобится '''ещё один''' раздел, больший чем установочный диск Arch. Я вошел в систему как '''root''' и буду использовать "/dev/hda12" объёмом 6Гб.<br />
<br />
Выберите загрузчик, который вы хотите использовать, это может быть "LILO" или "GRUB".<br />
<br />
==Lilo==<br />
<br />
Файл ISO должен находитьна на разделе, отличном от /dev/hda12<br />
<br />
1) Запишите iso на выбранный раздел (не надо использовать рекурсивное копирование, это не даст результата. dd запишет образ полностью побайтово):<br />
dd if=arch-0.7.iso of=/dev/hda12<br />
здесь arch-0.7.iso - образ ISO CD с установщиком Arch<br />
<br />
2) Создайте или используйте существуюшую точку монтирования и примонтируйте /dev/hda12 (не используйте опцию -tiso9660. Это не нужно.):<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
3) Отредактируйте lilo.conf:<br />
image=/mnt/archCD/isolinux/vmlinuz<br />
label=archCD<br />
initrd=/mnt/archCD/isolinux/initrd.img<br />
append="root=/dev/hda12 BOOTMEDIA=cd"<br />
<br />
Не забудте запустить:<br />
lilo<br />
<br />
==Grub==<br />
<br />
Я не смог загрузиться с раздела жесткого диска, содержащего ISO с GRUB, ISO должет быть сначала распакован на обычный раздел. Это еще быстрее, чем запись CD:<br />
<br />
1) Отформатируйте раздел (making or using a suitable mount point) mount it:<br />
<br />
mkreiserfs /dev/hda12<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
<br />
2) Mount the Arch iso file (making or using a suitable mount point):<br />
mkdir /mnt/tmp<br />
mount -o loop arch-0.7.iso /mnt/tmp<br />
<br />
3) Copy from the iso to the spare partition:<br />
cd /mnt/tmp<br />
cp -a * /mnt/archCD<br />
<br />
4) then modify <code>/boot/grub/menu.lst</code><br />
title ArchCD<br />
kernel (hd0,11)/isolinux/vmlinuz root=/dev/hda12 BOOTMEDIA=cd<br />
initrd (hd0,11)/isolinux/initrd.img<br />
<br />
==Reboot and Install Arch==<br />
<br />
Reboot and select '''archCD''', when the installer asks if you're using CD or SRC, you can hop out to another shell and if you are using lilo:<br />
mount -t iso9660 /dev/hda12 /src<br />
if you are using grub:<br />
mount /dev/hda12 /src<br />
<br />
* replace <code>/dev/hda12</code> with the spare partition you allocated<br />
* remember you can use "tab completion" to find that partition, rather than type the whole thing in<br />
* then hop back and install from hard drive by selecting SRC rather than CD.<br />
<br />
==And to reclaim the spare partition when Arch is up and running...==<br />
<br />
1) The spare partition can be reclaimed by making a file system with "mkreiserfs", "mke2fs" etc. Using hda12 as an example:<br />
mkreiserfs /dev/hda12<br />
<br />
2) Then edit /etc/fstab to check the partition has the correct file system and options listed against it:<br />
/dev/hda12 /mnt/spare reiserfs defaults,noatime,notail,noauto 0 0<br />
<br />
3) Lastly check that the mount point exists, if not:<br />
mkdir /mnt/spare</div>K E S Thttps://wiki.archlinux.org/index.php?title=Fast_Arch_Install_from_existing_Linux_System_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97776Fast Arch Install from existing Linux System (Русский)2010-02-21T14:42:04Z<p>K E S T: </p>
<hr />
<div>This guide has been supplanted by: [[Install From Existing Linux]]<br />
<br />
See [http://bbs.archlinux.org/viewtopic.php?id=51315 this thread].<br />
<br />
[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Deutsch|Schnellinstallation von einem bestehenden Linuxsystem (Deutsch)}}<br />
{{i18n_entry|English|Fast Arch Install from existing Linux System}}<br />
{{i18n_entry|繁體中文|F.在安裝了 Linux 的電腦上快速安裝 Arch}}<br />
{{i18n_entry|简体中文|在安装了 Linux 的电脑上快速安装 Arch}}<br />
{{i18n_entry|Русский|Быстрая установка Arch с жесткого диска}}<br />
{{i18n_links_end}}<br />
<br />
If you are running Linux already and don't have a CD writer or simply want a faster install process, here is how to install from hard drive.<br />
<br />
Read the [[Official Arch Linux Install Guide]] first so that you know what to expect.<br />
<br />
You need one '''more''' spare partition, bigger than the Arch CD iso. Here I'm logged in as '''root''' and am using "/dev/hda12" which happens to be 6GB.<br />
<br />
Depending on your boot loader, follow the "LILO" or "GRUB" section. Then the "REBOOT AND INSTALL" section<br />
<br />
==Lilo==<br />
<br />
1) Copy the iso to the spare partition (you can use a plain recursive copy, cp -R instead of dd, dd may sometimes screw the partition):<br />
dd if=arch-0.7.iso of=/dev/hda12<br />
<br />
2) Making or using a suitable mount point, mount the partition somewhere (you can use option -tiso9660 but mount should work it out):<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
3) Edit lilo.conf and add:<br />
image=/mnt/archCD/isolinux/vmlinuz<br />
label=archCD<br />
initrd=/mnt/archCD/isolinux/initrd.img<br />
append="root=/dev/hda12 BOOTMEDIA=cd"<br />
<br />
then don't forget to run:<br />
lilo<br />
<br />
==Grub==<br />
<br />
I've not been able to boot a hard disk partition containing the Arch iso with grub, instead the iso must first be unpacked to an ordinary partition. This is still quicker than burning a CD:<br />
<br />
1) Format the spare partition and (making or using a suitable mount point) mount it:<br />
<br />
mkreiserfs /dev/hda12<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
<br />
2) Mount the Arch iso file (making or using a suitable mount point):<br />
mkdir /mnt/tmp<br />
mount -o loop arch-0.7.iso /mnt/tmp<br />
<br />
3) Copy from the iso to the spare partition:<br />
cd /mnt/tmp<br />
cp -a * /mnt/archCD<br />
<br />
4) then modify <code>/boot/grub/menu.lst</code><br />
title ArchCD<br />
kernel (hd0,11)/isolinux/vmlinuz root=/dev/hda12 BOOTMEDIA=cd<br />
initrd (hd0,11)/isolinux/initrd.img<br />
<br />
==Reboot and Install Arch==<br />
<br />
Reboot and select '''archCD''', when the installer asks if you're using CD or SRC, you can hop out to another shell and if you are using lilo:<br />
mount -t iso9660 /dev/hda12 /src<br />
if you are using grub:<br />
mount /dev/hda12 /src<br />
<br />
* replace <code>/dev/hda12</code> with the spare partition you allocated<br />
* remember you can use "tab completion" to find that partition, rather than type the whole thing in<br />
* then hop back and install from hard drive by selecting SRC rather than CD.<br />
<br />
==And to reclaim the spare partition when Arch is up and running...==<br />
<br />
1) The spare partition can be reclaimed by making a file system with "mkreiserfs", "mke2fs" etc. Using hda12 as an example:<br />
mkreiserfs /dev/hda12<br />
<br />
2) Then edit /etc/fstab to check the partition has the correct file system and options listed against it:<br />
/dev/hda12 /mnt/spare reiserfs defaults,noatime,notail,noauto 0 0<br />
<br />
3) Lastly check that the mount point exists, if not:<br />
mkdir /mnt/spare</div>K E S Thttps://wiki.archlinux.org/index.php?title=Fast_Arch_Install_from_existing_Linux_System_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97775Fast Arch Install from existing Linux System (Русский)2010-02-21T14:41:30Z<p>K E S T: Created page with 'This guide has been supplanted by: Install From Existing Linux See [http://bbs.archlinux.org/viewtopic.php?id=51315 this thread]. [[Category:Getting and installing Arch (En…'</p>
<hr />
<div>This guide has been supplanted by: [[Install From Existing Linux]]<br />
<br />
See [http://bbs.archlinux.org/viewtopic.php?id=51315 this thread].<br />
<br />
[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Deutsch|Schnellinstallation von einem bestehenden Linuxsystem (Deutsch)}}<br />
{{i18n_entry|English|Fast Arch Install from existing Linux System}}<br />
{{i18n_entry|繁體中文|F.在安裝了 Linux 的電腦上快速安裝 Arch}}<br />
{{i18n_entry|简体中文|在安装了 Linux 的电脑上快速安装 Arch}}<br />
{{i18n_links_end}}<br />
<br />
If you are running Linux already and don't have a CD writer or simply want a faster install process, here is how to install from hard drive.<br />
<br />
Read the [[Official Arch Linux Install Guide]] first so that you know what to expect.<br />
<br />
You need one '''more''' spare partition, bigger than the Arch CD iso. Here I'm logged in as '''root''' and am using "/dev/hda12" which happens to be 6GB.<br />
<br />
Depending on your boot loader, follow the "LILO" or "GRUB" section. Then the "REBOOT AND INSTALL" section<br />
<br />
==Lilo==<br />
<br />
1) Copy the iso to the spare partition (you can use a plain recursive copy, cp -R instead of dd, dd may sometimes screw the partition):<br />
dd if=arch-0.7.iso of=/dev/hda12<br />
<br />
2) Making or using a suitable mount point, mount the partition somewhere (you can use option -tiso9660 but mount should work it out):<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
3) Edit lilo.conf and add:<br />
image=/mnt/archCD/isolinux/vmlinuz<br />
label=archCD<br />
initrd=/mnt/archCD/isolinux/initrd.img<br />
append="root=/dev/hda12 BOOTMEDIA=cd"<br />
<br />
then don't forget to run:<br />
lilo<br />
<br />
==Grub==<br />
<br />
I've not been able to boot a hard disk partition containing the Arch iso with grub, instead the iso must first be unpacked to an ordinary partition. This is still quicker than burning a CD:<br />
<br />
1) Format the spare partition and (making or using a suitable mount point) mount it:<br />
<br />
mkreiserfs /dev/hda12<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
<br />
2) Mount the Arch iso file (making or using a suitable mount point):<br />
mkdir /mnt/tmp<br />
mount -o loop arch-0.7.iso /mnt/tmp<br />
<br />
3) Copy from the iso to the spare partition:<br />
cd /mnt/tmp<br />
cp -a * /mnt/archCD<br />
<br />
4) then modify <code>/boot/grub/menu.lst</code><br />
title ArchCD<br />
kernel (hd0,11)/isolinux/vmlinuz root=/dev/hda12 BOOTMEDIA=cd<br />
initrd (hd0,11)/isolinux/initrd.img<br />
<br />
==Reboot and Install Arch==<br />
<br />
Reboot and select '''archCD''', when the installer asks if you're using CD or SRC, you can hop out to another shell and if you are using lilo:<br />
mount -t iso9660 /dev/hda12 /src<br />
if you are using grub:<br />
mount /dev/hda12 /src<br />
<br />
* replace <code>/dev/hda12</code> with the spare partition you allocated<br />
* remember you can use "tab completion" to find that partition, rather than type the whole thing in<br />
* then hop back and install from hard drive by selecting SRC rather than CD.<br />
<br />
==And to reclaim the spare partition when Arch is up and running...==<br />
<br />
1) The spare partition can be reclaimed by making a file system with "mkreiserfs", "mke2fs" etc. Using hda12 as an example:<br />
mkreiserfs /dev/hda12<br />
<br />
2) Then edit /etc/fstab to check the partition has the correct file system and options listed against it:<br />
/dev/hda12 /mnt/spare reiserfs defaults,noatime,notail,noauto 0 0<br />
<br />
3) Lastly check that the mount point exists, if not:<br />
mkdir /mnt/spare</div>K E S Thttps://wiki.archlinux.org/index.php?title=Fast_Arch_Install_from_existing_Linux_System&diff=97774Fast Arch Install from existing Linux System2010-02-21T14:41:15Z<p>K E S T: </p>
<hr />
<div>This guide has been supplanted by: [[Install From Existing Linux]]<br />
<br />
See [http://bbs.archlinux.org/viewtopic.php?id=51315 this thread].<br />
<br />
[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Deutsch|Schnellinstallation von einem bestehenden Linuxsystem (Deutsch)}}<br />
{{i18n_entry|English|Fast Arch Install from existing Linux System}}<br />
{{i18n_entry|繁體中文|F.在安裝了 Linux 的電腦上快速安裝 Arch}}<br />
{{i18n_entry|简体中文|在安装了 Linux 的电脑上快速安装 Arch}}<br />
{{i18n_entry|Русский|Быстрая установка Arch с жесткого диска}}<br />
{{i18n_links_end}}<br />
<br />
If you are running Linux already and don't have a CD writer or simply want a faster install process, here is how to install from hard drive.<br />
<br />
Read the [[Official Arch Linux Install Guide]] first so that you know what to expect.<br />
<br />
You need one '''more''' spare partition, bigger than the Arch CD iso. Here I'm logged in as '''root''' and am using "/dev/hda12" which happens to be 6GB.<br />
<br />
Depending on your boot loader, follow the "LILO" or "GRUB" section. Then the "REBOOT AND INSTALL" section<br />
<br />
==Lilo==<br />
<br />
1) Copy the iso to the spare partition (you can use a plain recursive copy, cp -R instead of dd, dd may sometimes screw the partition):<br />
dd if=arch-0.7.iso of=/dev/hda12<br />
<br />
2) Making or using a suitable mount point, mount the partition somewhere (you can use option -tiso9660 but mount should work it out):<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
3) Edit lilo.conf and add:<br />
image=/mnt/archCD/isolinux/vmlinuz<br />
label=archCD<br />
initrd=/mnt/archCD/isolinux/initrd.img<br />
append="root=/dev/hda12 BOOTMEDIA=cd"<br />
<br />
then don't forget to run:<br />
lilo<br />
<br />
==Grub==<br />
<br />
I've not been able to boot a hard disk partition containing the Arch iso with grub, instead the iso must first be unpacked to an ordinary partition. This is still quicker than burning a CD:<br />
<br />
1) Format the spare partition and (making or using a suitable mount point) mount it:<br />
<br />
mkreiserfs /dev/hda12<br />
mkdir /mnt/archCD<br />
mount /dev/hda12 /mnt/archCD<br />
<br />
<br />
2) Mount the Arch iso file (making or using a suitable mount point):<br />
mkdir /mnt/tmp<br />
mount -o loop arch-0.7.iso /mnt/tmp<br />
<br />
3) Copy from the iso to the spare partition:<br />
cd /mnt/tmp<br />
cp -a * /mnt/archCD<br />
<br />
4) then modify <code>/boot/grub/menu.lst</code><br />
title ArchCD<br />
kernel (hd0,11)/isolinux/vmlinuz root=/dev/hda12 BOOTMEDIA=cd<br />
initrd (hd0,11)/isolinux/initrd.img<br />
<br />
==Reboot and Install Arch==<br />
<br />
Reboot and select '''archCD''', when the installer asks if you're using CD or SRC, you can hop out to another shell and if you are using lilo:<br />
mount -t iso9660 /dev/hda12 /src<br />
if you are using grub:<br />
mount /dev/hda12 /src<br />
<br />
* replace <code>/dev/hda12</code> with the spare partition you allocated<br />
* remember you can use "tab completion" to find that partition, rather than type the whole thing in<br />
* then hop back and install from hard drive by selecting SRC rather than CD.<br />
<br />
==And to reclaim the spare partition when Arch is up and running...==<br />
<br />
1) The spare partition can be reclaimed by making a file system with "mkreiserfs", "mke2fs" etc. Using hda12 as an example:<br />
mkreiserfs /dev/hda12<br />
<br />
2) Then edit /etc/fstab to check the partition has the correct file system and options listed against it:<br />
/dev/hda12 /mnt/spare reiserfs defaults,noatime,notail,noauto 0 0<br />
<br />
3) Lastly check that the mount point exists, if not:<br />
mkdir /mnt/spare</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97771USB flash installation medium (Русский)2010-02-21T13:01:23Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{Warning|Это уничтожит все данные на вашем USB-диске}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== Установка навым способом в Windows ==<br />
<br />
Для записи образа на USB под Windows вам понадобится [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en Английская версия страницы]) или [http://www.cygwin.com/ Cygwin].<br />
<br />
<br />
=== Использование flashnul ===<br />
<br />
Запустите flashnul в командной строке с параметром -p, и найдите свой USB диск в появившемся списке. Пример вывода команды :<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
Наш диск имеет объём 4Гб и находится под номером 3.<br />
<br />
Далее запишем имеющийся образ на диск при помощи вызова команды:<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
После параметра -L указыватеся путь к образу.<br />
<br />
Если появится сообщение "Доступ запрещён" ("Acsess delined") попробуйте отсоединить и заново подсоединить устройство или перезагрузить ОС.<br />
<br />
Если вы используете Vista или Win7, то необходимо открыть командную строку с правами администратора, иначе flashnul не сможет получит доступ к USB-диску на запись. <br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== Использование Cygwin ===<br />
<br />
Скомпилируйте и установите в cygwin пакет dd.<br />
Если у вас не установлен Cygwin, вы можете просто скачать пакет dd для Windows с сайта http://www.chrysocome.net/dd.<br />
<br />
Расположите образ в домашней дирректории, у меня это выглядит так:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Запустите cygwin с правами администратора (необходимо, чтобы cygwin имел доступ к оборудованию). Что бы записать образ на USB-диск выполните команду:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
здесь image.img это путь с образу в домашней дирректории cygwin и \\.\[x]: это ваш USB-диск, x - это буква устройства в Windows, у меня это "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Загрузите win32 disk imager с http://launchpad.net/win32-image-writer. Запустите программу. Выберите .img и USB-диск. Нажмите на кнопку записи. По окончании записи, можете перезагружаться и устанавливать Arch Linux.<br />
<br />
===UNetBootin===<br />
<br />
Скачайте для Windows UNetBootin с [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение одинаково выглядит в Linux и Windows, способ записи образа аналогичен.<br />
<br />
==Старый метод установки ISO-образа ==<br />
*Подготовка USB-диска:<br />
Образ arch-ftp.img имеет размер 150 MB, для него вам понадобится USB-диск объемом более 256 MB. Образ arch-core.img занимает ~300 MB для него понадобится диск на 512 MB.<br />
<br />
1. Создание разделов:<br />
Создайте раздел для FAT16 и сделайте его загрузочным. Его имя должно быть /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Создайте FAT16 файловую систему (понадобится dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Загрузить ISO образ диска с www.archlinux.org<br />
<br />
4. Примонтируйте ISO образ:<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. И USB-диск<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Скопируйте всё содежщимое .ISO на USB-диск:<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Скопируйте загрузочные данные<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Установите MBR и syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===После загрузки с USB-диска===<br />
<br />
Запустите войдите под пользователем root и установщик командой "/arch/setup".<br />
<br />
Установщик примонтирует всё самостоятельно. Если же произойдёт ошибка, вам придётся вручную примонтировать содержимое USB-диска в /src. сделать это можно при помощи команды:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97768USB flash installation medium (Русский)2010-02-21T12:40:55Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{Warning|Это уничтожит все данные на вашем USB-диске}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== Установка навым способом в Windows ==<br />
<br />
Для записи образа на USB под Windows вам понадобится [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en Английская версия страницы]) или [http://www.cygwin.com/ Cygwin].<br />
<br />
<br />
=== Использование flashnul ===<br />
<br />
Запустите flashnul в командной строке с параметром -p, и найдите свой USB диск в появившемся списке. Пример вывода команды :<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
Наш диск имеет объём 4Гб и находится под номером 3.<br />
<br />
Далее запишем имеющийся образ на диск при помощи вызова команды:<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
После параметра -L указыватеся путь к образу.<br />
<br />
Если появится сообщение "Доступ запрещён" ("Acsess delined") попробуйте отсоединить и заново подсоединить устройство или перезагрузить ОС.<br />
<br />
Если вы используете Vista или Win7, то необходимо открыть командную строку с правами администратора, иначе flashnul не сможет получит доступ к USB-диску на запись. <br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97767USB flash installation medium (Русский)2010-02-21T12:40:02Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{Warning|Это уничтожит все данные на вашем USB-диске}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== Установка навым способом в Windows ==<br />
<br />
Для записи образа на USB под Windows вам понадобится [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en Английская версия страницы]) или [http://www.cygwin.com/ Cygwin].<br />
<br />
Изменить [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== Использование flashnul ===<br />
<br />
Запустите flashnul в командной строке с параметром -p, и найдите свой USB диск в появившемся списке. Пример вывода команды :<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
Наш диск имеет объём 4Гб и находится под номером 3.<br />
<br />
Далее запишем имеющийся образ на диск при помощи вызова команды:<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
После параметра -L указыватеся путь к образу.<br />
<br />
Если появится сообщение "Доступ запрещён" ("Acsess delined") попробуйте отсоединить и заново подсоединить устройство или перезагрузить ОС.<br />
<br />
Если вы используете Vista или Win7, то необходимо открыть командную строку с правами администратора, иначе flashnul не сможет получит доступ к USB-диску на запись. <br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97764USB flash installation medium (Русский)2010-02-21T12:30:04Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{Warning|Это уничтожит все данные на вашем USB-диске}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97763USB flash installation medium (Русский)2010-02-21T12:29:43Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{Внимание|Это уничтожит все данные на вашем USB-диске}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97762USB flash installation medium (Русский)2010-02-21T12:29:21Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{Warning|Это уничтожит все данный на вашем USB-диске}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97760USB flash installation medium (Русский)2010-02-21T12:28:38Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{ Внимание: | Это уничтожит все данны с вашего USB-диска.}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97759USB flash installation medium (Русский)2010-02-21T12:28:27Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{ Внимание | Это уничтожит все данны с вашего USB-диска.}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97758USB flash installation medium (Русский)2010-02-21T12:27:42Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. '''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{ Внимание | Это уничтожит все данны с вашего USB-диска}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97757USB flash installation medium (Русский)2010-02-21T12:26:32Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. *'''''Используйте именно /dev/sdx, а не /dev/sdx1'''''<br />
<br />
{{ Внимание | Это уничтожит все данны с вашего USB-диска}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97756USB flash installation medium (Русский)2010-02-21T12:25:19Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. *'''''Используйте именно /dev/sdx, а не /dev/sdx1.''''' '''Иначе будет ошибка!'''*<br />
<br />
{{ Внимание | Это уничтожит все данны с вашего USB-диска}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97755USB flash installation medium (Русский)2010-02-21T12:23:27Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Install from a USB flash drive}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. *'''''Используйте именно /dev/sdx, а не /dev/sdx1.''''' '''Иначе будет ошибка!'''<br />
<br />
{{Внимание | Это уничтожит все данны с вашего USB-диска}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97754USB flash installation medium (Русский)2010-02-21T12:22:12Z<p>K E S T: </p>
<hr />
<div>[[Category:Getting and installing Arch (Русский)]]<br />
[[Category:HOWTOs (Русский)]]<br />
{{i18n|Устанока с USB-диска}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. *'''''Используйте именно /dev/sdx, а не /dev/sdx1.''''' '''Иначе будет ошибка!'''<br />
<br />
{{Внимание | Это уничтожит все данны с вашего USB-диска}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97752USB flash installation medium (Русский)2010-02-21T12:19:35Z<p>K E S T: </p>
<hr />
<div>[[Category:Установка Arch (Русский)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n|Установка с USB-flash диска}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. *'''''Используйте именно /dev/sdx, а не /dev/sdx1.''''' '''Иначе будет ошибка!'''<br />
<br />
{{Внимание | Это уничтожит все данны с вашего USB-диска}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия у меня Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97751USB flash installation medium (Русский)2010-02-21T12:17:34Z<p>K E S T: </p>
<hr />
<div>[[Category:Установка Arch (Русский)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n|Установка с USB-flash диска}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. *'''''Используйте именно /dev/sdx, а не /dev/sdx1.''''' '''Иначе будет ошибка!'''<br />
<br />
{{Внимание|Это уничтожит все данны с вашего USB-диска}}<br />
<br />
===UNetBootin===<br />
<br />
Другой путь для создания загрузочного USB диска, это использование [http://unetbootin.sourceforge.net/ UNetBootin]. Это приложение создаст на основе имеющегося у вас образа диска загрузочный USB-диск. Если у вас нет образа диска, можно выбрать дистрибутив из списка в приложении и будет загружен специальный мини-образ.<br />
<br />
Если возникнут проблемы с загрузкой, добавте в параметры загрузки syslinux.cfg :<br />
<br />
pmedia=usb <br />
<br />
Это образец, как может выглядеть загрузочная запись в syslinux.cfg : <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
<br />
== Устанока новым способом в Mac OS X ==<br />
<br />
Для использования dd на вашем USB-диске в Mac нужно подготовить диск. Подключите ваш USB-диск к компьютеру, после того как он автоматически приментируется, выполните:<br />
<br />
diskutil list<br />
<br />
В Terminal.app. Найдите ваш USB-диск в списке устройств - В нашем случае это /dev/disk1. Теперь выполните:<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
Чтобы размонтировать выбраное устройство (/dev/disk1 в нашем случае). Далее следуйте по инструкции для GNU/Linux.<br />
<br />
'''Возможно имеется неточность или ошибка, так как нет возможности проверить из-за отсутствия Mac OS [прим. переводчика]'''<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S Thttps://wiki.archlinux.org/index.php?title=USB_flash_installation_medium_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=97748USB flash installation medium (Русский)2010-02-21T12:00:12Z<p>K E S T: Created page with 'Category:Установка Arch (Русский) Category:HOWTOs (English) {{i18n|Установка с USB-flash диска}} == Новый путь установки…'</p>
<hr />
<div>[[Category:Установка Arch (Русский)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n|Установка с USB-flash диска}}<br />
<br />
== Новый путь установки, для GNU/Linux ==<br />
<br />
Начиная с релиза 2008.06, публикуются USB-образы. Скачать их можно по адресу [http://archlinux.org/download/ local mirror] (файлы с рашширением .img). Для установки подключите USB накомитель, отмонтируйте его, если он смоттировался автоматически, и выполните команду:<br />
<br />
$ dd if=image.img of=/dev/sd[x]<br />
<br />
Здесь ''image.img'' это путь к загруженному образу и ''/dev/sd[x]'' Ваше USB устройство. *'''''Используйте именно /dev/sdx а не /dev/sdx1.''''' '''Иначе будет ошибка!'''<br />
<br />
{{Warning|This will irrevocably destroy all data on your USB stick.}}<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
If you have trouble with booting try adding this boot parameter to your syslinux.cfg file on your usb stick:<br />
<br />
pmedia=usb <br />
<br />
it should end up looking SIMILAR (not exactly the same as) this: <br />
label unetbootindefault<br />
menu label Default<br />
kernel /ubnkern<br />
append initrd=/ubninit pmedia=usb<br />
<br />
===Using the Archlinux ISOLINUX image and Gujin boot loader===<br />
<br />
You can follow the instructions about [http://psychoticspoon.blogspot.com/2009/01/booting-multiple-livecds-from-single.html Booting multiple LiveCD's from a single USB stick]. In a nutshell, you create 2 partitions on your USB drive, copy the [http://gujin.sourceforge.net/ Gujin] boot loader image to the first partition, and copy Arch's ISOLINUX image to the second.<br />
<br />
== The New and Improved Way, on Mac OS X ==<br />
<br />
To be able to use dd on your usb device on a Mac you have to do some special maneuvers. First of all insert your usb device, OS X will automount it, and run<br />
<br />
diskutil list<br />
<br />
in Terminal.app. Figure out what your usb device is called - mine was called /dev/disk1. (Just use the 'mount' command.) Now you run<br />
<br />
diskutil unmountDisk /dev/disk1<br />
<br />
to unmount the partitions on the device (i.e., /dev/disk1s1) while keeping the device proper (i.e., /dev/disk1). Now we can continue in accordance with the Linux instructions above (but use bs=8192 if you're using the OS X dd, the number comes from 1024*8).<br />
<br />
== The New and Improved Way, on Windows ==<br />
<br />
To write the USB image on Windows, you will need [http://shounen.ru/soft/flashnul/ flashnul] ([http://translate.google.com/translate?u=http%3A%2F%2Fshounen.ru%2Fsoft%2Fflashnul%2F&hl=en&ie=UTF8&sl=ru&tl=en English version of the page]) or [http://www.cygwin.com/ Cygwin].<br />
<br />
Edit [http://www.4shared.com/file/70261292/1d43b6a9/flashnul-09.html/ Working Link] --[[User:Anonymo|Anonymo]] 10:03, 4 April 2009 (EDT)<br />
<br />
=== The Flashnul Way ===<br />
<br />
From a command prompt, invoke flashnul with -p, and determine which device index is your USB drive. For example, my output looks like this:<br />
<br />
C:\>flashnul -p<br />
<br />
Avaible [sic] physical drives:<br />
0 size = 200048565760 (186 Gb)<br />
1 size = 400088457216 (372 Gb)<br />
2 size = 400088457216 (372 Gb)<br />
3 size = 4060086272 (3872 Mb)<br />
<br />
In my case, with a 4 GB USB drive, it is device index 3.<br />
<br />
When you have determined which device is the correct one, you can write the image to your drive, by invoking flashnul with the device index, -L, and the path to your image. In my case, it would be<br />
<br />
C:\>flashnul 3 -L path/to/arch/usb.img<br />
<br />
As long as you are really sure you want to write the data, type yes, then wait a bit for it to write. If you get an access denied error, unplugging and re-attaching the drive worked for me.<br />
<br />
If under Vista or Win7, you should open the console as administrator, or else flashnul will fail to open the stick as a block device and will only be able to write via the drive handle windows provides<br />
<br />
<b>Note:</b><br />
<i>I had to do "C:\flashnul\flashnul.exe <b>H:</b> -L c:\archlinux-2008.06-core-i686.img" for it to work. I kept getting access denied if i just used the number. -gejr </i><br />
<br />
=== The Cygwin Way ===<br />
<br />
Make sure your cygwin installation contains the dd package.<br />
Or if you don't want to install Cygwin, you can simply download dd for windows from http://www.chrysocome.net/dd.<br />
<br />
Place your image file in your home directory, in my case it is:<br />
<br />
C:\cygwin\home\John\<br />
<br />
Run cygwin as administrator (required for cygwin to access hardware). To write to your USB drive use the following command:<br />
<br />
dd if=image.img of=\\.\[x]:<br />
<br />
where image.img is the path to the img file within the cygwin directory and \\.\[x]: is your USB device where x is the windows designated letter, in my case "\\.\d:".<br />
<br />
'''Note:''' This will irrevocably delete all files on your USB stick, so make sure you don't have any important files on the stick before doing this.<br />
<br />
=== win32 disk imager ===<br />
Download win32 disk imager from http://launchpad.net/win32-image-writer. Run the program. Select the .img file and usb stick. Click on the write button. Now you should be able to boot from the usb stick and install Arch Linux from it.<br />
<br />
===UNetBootin===<br />
<br />
Another way to make a USB drive bootable, is by using [http://unetbootin.sourceforge.net/ UNetBootin]. This application can download most linux distributions for you and write it to your drive. Or you can provide your own images, which does not have to be a special USB image.<br />
<br />
==Old Method from ISO, deprecated==<br />
*Prepare USB stick:<br />
The arch-ftp.img is about 150 MB, so it should fit on a 256 MB USB stick. The arch-core.img is ~300 MB and should fit on a 512 MB stick.<br />
<br />
1. Partition the USB stick.<br />
Create one partition with FAT16 type, make it bootable. Remember its name, such as /dev/sd[x]1.<br />
<br />
cfdisk /dev/sd[x]<br />
<br />
2. Make a FAT16 filesystem (you need dosfstools)<br />
<br />
mkdosfs /dev/sd[x]1<br />
<br />
3. Get the arch-base install ISO from www.archlinux.org<br />
<br />
4. Mount the iso to an temporary directory<br />
<br />
mkdir -p /mnt/archcd<br />
mount -o loop /Path/to/iso /mnt/archcd<br />
<br />
5. Mount the USB Stick<br />
<br />
mkdir -p /mnt/usb/<br />
mount /dev/sd[x]1 /mnt/usb/<br />
<br />
6. Copy the .iso to the USB Stick<br />
<br />
cp -ra /mnt/archcd/* /mnt/usb/<br />
<br />
<br />
7. Copy the boot data<br />
<br />
cd /mnt/usb/isolinux/<br />
cp vmlinuz /mnt/usb/<br />
cp initrd.img /mnt/usb/<br />
cp boot.* /mnt/usb/<br />
cp isolinux.cfg /mnt/usb/syslinux.cfg<br />
<br />
8. Install MBR and syslinux<sup>(1)</sup><br />
<br />
lilo -M /dev/sd[x] mbr<br />
syslinux -s /dev/sd[x]1<br />
<br />
===After booting from the USB stick:===<br />
<br />
Start the installation by logging in as root and invoke the command "/arch/setup".<br />
<br />
The installer should mount the source media automatically. If it fails you can manually mount the source media on the stick to the /src directory with the following command:<br />
<br />
mount /dev/sd[x] /src<br />
<br />
===Notes and Troubleshooting:===<br />
<br />
<sup>(1)</sup> Using lilo is not really needed because syslinux does the "floppy" loading stuff. But if you get some error like "Can't load operating system" you have to perform the lilo command.<br />
<br />
<sup>(2)</sup> If you get "Cluster sizes larger than 16K not supported" error when booting this means you need to install more recent version of syslinux.<br />
<br />
<sup>(3)</sup> Space not used on the USB stick can still be used for storing files... Use a utility like gparted and add a partition to the unused space.</div>K E S T