LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
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


Closed Thread
  Search this Thread
Old 04-12-2014, 08:25 AM   #1
lillewille123
LQ Newbie
 
Registered: Apr 2014
Location: Sweden
Distribution: Kali Linux
Posts: 3

Rep: Reputation: Disabled
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!
 
Old 04-12-2014, 05:43 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,809

Rep: Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334
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.
 
Old 04-12-2014, 07:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
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?
 
Old 04-13-2014, 03:08 AM   #4
lillewille123
LQ Newbie
 
Registered: Apr 2014
Location: Sweden
Distribution: Kali Linux
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-13-2014, 09:58 AM   #5
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Plan on forgetting your Windows password often?
 
Old 04-13-2014, 10:54 AM   #6
lillewille123
LQ Newbie
 
Registered: Apr 2014
Location: Sweden
Distribution: Kali Linux
Posts: 3

Original Poster
Rep: Reputation: Disabled
Wink

Well...
 
Old 04-13-2014, 11:05 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,809

Rep: Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334
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.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to: Bootable USB drive with one installed distro, and two bootable installations ? Okruglica Linux - Newbie 1 04-21-2013 08:09 PM
USB Bootable Online Banking Distro scucci Linux - Security 9 11-08-2010 10:41 AM
USB Bootable Distro hamster Linux - Distributions 6 07-18-2006 04:53 AM
Text Based Distro DJCuervo Linux - Newbie 10 01-12-2005 03:39 PM
Is there a customizable CD Live linux distro? helloyo Linux - Distributions 5 10-22-2003 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration