رفتن به مطلب
انجمن تیم امنیتی گارد ایران

INSTALING LINUX ON A FLASH DRIVE


ارسال های توصیه شده

INSTALING LINUX ON A FLASH DRIVE

In this tutorial, I'll explain how to install Linux on to a USB flash drive and boot from it on any computer (that supports booting from USB). I will be teaching you how to do this on Linux, though it is possible to do on other operating systems.

First things first, here's a list of ingredients you'll need:
USB stick with 2GB+ capacity
Computer with Linux available
Internet connection

Once you have everything ready you need to download the 'Unetbootin' from either the Software Centre or download it from the Sourceforge page (if you do this, you need to make it executable by right clicking on it and choosing Properties, then Permissions and checking the box which asks if the file is allowed to be executed). It can also be installed via the Terminal with the below commands (new line indicates a new command):
sudo apt-add-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin
Command #1 tells the system to add the PPA to your system's repository.
Command #2 tells the system to contact the repositories that you have in your sources list and tells you if there's any updates.
Command #3 tells the system to look through your sources list for the package 'unetbootin'.


After Unetbootin has been installed you need to then download the ISO image which you would like to put on the Flash Drive. In the example, I'm using BackTrack 5.

Thereafter, once you have everything else ready, you need to format your USB drive to FAT32 format. For this, I will be using the Gparted tool. Like with downloading the Unetbootin application, there are 3 methods:
From the http://gparted.sourceforge.net/download.php (enable it to be executed using the same method as for the Unbetbootin download)
From the Software Centre (search "Gparted")
Via the Terminal (instructions below)

Since Gparted is already present in the repository you can install it by running the one command:
sudo apt-get install gparted
Plug in your USB flash drive and once the system detects it, run Gparted. Once you load GParted, make sure that you select /dev/sdb/ from the dropdown menu. SDB means second hard drive, so if you have two hard drives then /sdb may not be the drive you want to select -- instead, to ensure you select the right drive, choose the drive with the capacity which makes the USB flash drive which you plugged in.

Once you're in the selected drive, select all partitions and delete them, then click the apply button. Thereafter, select the unallocated space and choose to create a new partition by clicking on the Partition menu and choosing 'New'. The settings should be as followed:

Free space preceeding (MiB): 1
•New size: maximum possible size
•Free space following (MiB): 0
•Align to: MiB
•Create as: Primary Partition

And click apply once you have done that and it will complete in a few minutes depending on your computer and USB flash drive. After it has completed, you're now ready to move on to the Unetbootin part.

When you load up Unetbootin it will ask you if you would like to use a predefined distribution, a diskimage (which is what we will use), or a customised setup. Choose to use a diskimage, then ISO, and then locate the ISO file that you downloaded. Make sure that USB drive is selected and not hard drive because that could cause serious problems, including data loss! Press okay. If it then asks you to mount the USB drive, open http://en.wikipedia.org/wiki/Nautilus_(file_manager) (the file explorer) and along the left pane click on the USB drive -- or instead, unplug the USB and plug it back in.

post-7422-0-28139300-1445954323_thumb.png


After that has completed, you now have a USB flash drive which can boot in to Linux on any computer which supports booting to USB! Most modern computers allow that -- and even some Intel-based Macs will allow it.

To boot from disk, you need to turn the computer off and plug in the USB. Then when you turn on the computer, check the boot-up text and it should tell you to press a key to access the BIOS or boot menu. If it only offers the option to go in to the BIOS then choose that and look for "Boot Priority" or anything mentioning boot, and move the USB option to the top. Leave me a reply here and I can help with USB booting issues.

If you do get a boot menu option when you start up the computer then choose that and then the USB listing. Most computers use F2, F12 or Del as the keys to press to access the BIOS / boot menu. If you are not given a prompt then either check your manual/online or try out those 3 keys.

Here's what it might look like if you're successful:


Credits to Viral.
•File system: FAT32 
لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

برای ارسال دیدگاه یک حساب کاربری ایجاد کنید یا وارد حساب خود شوید

برای اینکه بتوانید دیدگاهی ارسال کنید نیاز دارید که کاربر سایت شوید

ایجاد یک حساب کاربری

برای حساب کاربری جدید در سایت ما ثبت نام کنید. عضویت خیلی ساده است !

ثبت نام یک حساب کاربری جدید

ورود به حساب کاربری

دارای حساب کاربری هستید؟ از اینجا وارد شوید

ورود به حساب کاربری

انجمن تیم امنیتی گارد ایران

تیم امنیتی گارد ایران یک گروه مستقل است که قوانین آن با خط مشی جمهوری اسلامی ایران مغایرت ندارد. تیم امنیتی گارد ایران از سال 1393 فعالیت خود را آغاز کرد و هدف این تیم تامین امنیت سایت ها و سرورهای ایرانی است. تیم ما همیشه برای دفاع از مرزهای سایبری سرزمین عزیزمان ایران آماده است.

شبکه های اجتماعی

×
×
  • اضافه کردن...