Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Hello! I have a question that might be not so newbish.
So, windows will only recognize the first physical partition on a flash drive. What I wish to accomplish is to have a bootable distro(live with persistence) not be recognized by windows, and instead have another partition (8192mb) to be recognized by windows and the rest only visible in Linux. How does one go about doing this?
(To the mods - Sorry for the double post, I just want to add a little more info if people are unsure of what I said)
I have a 32gb flash drive, partitioned into a 24gb and an 8gb partition respectively. I want to install a Linux OS to the 24gb partition (with unetbootin) and have it be invisible to the average joe on Windows. However, the 8gb partition will still be visible inside Windows. On the 24gb partition, I wish for it to boot as a normal Live OS with persistence.
I have no trouble creating the Live USB, I have troubles making it invisible to Windows and maintaining its booting properties. What do I do in order to make this possible?
Ive googled it and the only info Ive found on it would be to create a logical partition so Windows does not see it. Unfortunately, this method does not seem to work for me, or perhaps I am doing something wrong.
So, windows will only recognize the first physical partition on a flash drive.
Are you sure about that? Do you have multiple Windows-formatted partitions on the flash drive?
Quote:
What I wish to accomplish is to have a bootable distro(live with persistence) not be recognized by windows, and instead have another partition (8192mb) to be recognized by windows and the rest only visible in Linux. How does one go about doing this?
That should be relatively easy: partition your flash drive with the first partition (sda1) as Linux (Type 83 in Linux), and install your Linux OS to it. It will use ext3 or whatever and will not be recognizable to Windows as a valid disk partition (w/o special software/drivers). Leave 8GB or however much you want free for Windows. Then create the 2nd partition as Windows (you can use Type "b" in fdisk) and format it w/FAT32.
You can create both of these partitions during the install phase of your Linux installation, just make sure to use any Advanced mode offered by the installer. FWIW, I do this w/Fedora/CentOS/RHEL quite a bit.
You can also try out UNetbootin for installing Linux to a USB disk, although I have no idea how friendly it is to advanced disk partition (i bet it would let you, though, it is very popular).
I have no trouble creating the Live USB, I have troubles making it invisible to Windows and maintaining its booting properties. What do I do in order to make this possible?
okay, you must mean something special by invisible to Windows - i thought you just meant that the partition would not be auto-mounted, but do you mean that the Windows Disk Management tool itself would not even "see" the partition?
Are you sure about that? Do you have multiple Windows-formatted partitions on the flash drive?
That should be relatively easy: partition your flash drive with the first partition (sda1) as Linux (Type 83 in Linux), and install your Linux OS to it. It will use ext3 or whatever and will not be recognizable to Windows as a valid disk partition (w/o special software/drivers). Leave 8GB or however much you want free for Windows. Then create the 2nd partition as Windows (you can use Type "b" in fdisk) and format it w/FAT32.
You can create both of these partitions during the install phase of your Linux installation, just make sure to use any Advanced mode offered by the installer. FWIW, I do this w/Fedora/CentOS/RHEL quite a bit.
You can also try out UNetbootin for installing Linux to a USB disk, although I have no idea how friendly it is to advanced disk partition (i bet it would let you, though, it is very popular).
Sadly I have tried that, and it doesnt seem to work, Windows says it needs to be formatted.
okay, you must mean something special by invisible to Windows - i thought you just meant that the partition would not be auto-mounted, but do you mean that the Windows Disk Management tool itself would not even "see" the partition?
Yes, I want that 24gb partition completely invisible to windows, only recognizing the 8gb on the other partition.
Sadly I have tried that, and it doesnt seem to work, Windows says it needs to be formatted.
Not sure why you're having trouble. I have a usb disk that has a 200MB /boot partition (with syslinux), followed by a 2GB FAT32 partition, a 2GB Linux partition, and another 2GB FAT32 partition. I am able to see both FAT partitions in Windows.
Not sure why you're having trouble. I have a usb disk that has a 200MB /boot partition (with syslinux), followed by a 2GB FAT32 partition, a 2GB Linux partition, and another 2GB FAT32 partition. I am able to see both FAT partitions in Windows.
Perhaps I am missing a step or something, Ive tried all day reinstalling the OS over and over with different filesystems, different MBRs, everything I could possibly think of. The closest Ive gotten is it saying its not a proper boot device and to insert a floppy disk.
Perhaps I am missing a step or something, Ive tried all day reinstalling the OS over and over with different filesystems, different MBRs, everything I could possibly think of. The closest Ive gotten is it saying its not a proper boot device and to insert a floppy disk.
try making the first partition your /boot partition, 200MB should be enough.
then make the 2nd one FAT32 (primary, not logical), and the 3rd one Linux (your root filesystem, etc.).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.