Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-12-2014, 08:25 AM
|
#1
|
LQ Newbie
Registered: Apr 2014
Location: Sweden
Distribution: Kali Linux
Posts: 3
Rep: 
|
Looking for a customizable, text based and USB bootable Linux distro
Basically, I want to create a USB that runs a code/executable I've specified in a text based environment from a flash drive. I have no idea if there's any distro I could tweak a bit, or if I have to create one on my own. I have some requirement for the distro/OS.
I need the OS to: - Recognize Windows hard drives by the same device name (ex. ":F")
- Boot quickly
- Be USB bootable
- Have a configurable autoexec file
Thanks in advance!
|
|
|
04-12-2014, 05:43 PM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,809
|
Welcome to LinuxQuestions.
As you probably discovered linux does not know anything about drives nor drive letters.
Typically c: drive is the first partition on the boot drive where windows lives, d: most likely an optical drive, e and on would be other drive / partitions in the order they were created. It is also possible for one to change the drive assignments (excluding c:). So you may not be able to map the drives exactly unless you examine the registry.
You can mount the drives to any mount point desired but will still be accessed as e.x. /mnt/windows_drive_mount point. You can create an alias where by executing c: will change to the mount point.
What exactly do you want to configure in this "autoexec.bat" file. Depending on what you want to accomplish the equivalent might bash_profile or rc.local.
In general installing linux to a USB drive is no different then an internal drive.
Last edited by michaelk; 04-12-2014 at 05:44 PM.
|
|
|
04-12-2014, 07:35 PM
|
#3
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
In reality almost all modern linux could easily be made to boot from a usb and into a command line shell. It would be faster.
Since you say code, it may or may not be easy. Just what exactly do you want to perform?
|
|
|
04-13-2014, 03:08 AM
|
#4
|
LQ Newbie
Registered: Apr 2014
Location: Sweden
Distribution: Kali Linux
Posts: 3
Original Poster
Rep: 
|
To be precise, I want a bootable USB that directly renames sethc.exe in C:\Windows\System32\ on the the Windows hard drive that the USB is plugged in to. Therefore, the Linux OS needs to recognize the Windows hard drive and its name for it to be able to preform this act automatically during boot.
From my experience, Linux always had different names for different computers' hard drives. The drive was called something like:
"B0743G123U918L6K". I could therefore not create a script for this purpose.
Last edited by lillewille123; 04-13-2014 at 03:13 AM.
|
|
|
04-13-2014, 09:58 AM
|
#5
|
Senior Member
Registered: Feb 2009
Posts: 4,667
|
Plan on forgetting your Windows password often? 
|
|
|
04-13-2014, 10:54 AM
|
#6
|
LQ Newbie
Registered: Apr 2014
Location: Sweden
Distribution: Kali Linux
Posts: 3
Original Poster
Rep: 
|
Well... 
|
|
|
04-13-2014, 11:05 AM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,809
|
Per the rules:
Quote:
Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed.
|
You can find lots of information by searching the internet. Considering the posted rule above and your last comment this thread is now closed. If you feel like you have been misjudged please send me a private message.
|
|
|
All times are GMT -5. The time now is 06:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|