LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   fat32 or fat16 in live usb-hdd? (https://www.linuxquestions.org/questions/debian-26/fat32-or-fat16-in-live-usb-hdd-864638/)

cccc 02-23-2011 07:03 PM

create live usb-hdd with ext2
 
hi

I will create a live usb-hdd image with ext2.

fat16 should be a default file system in config/binary:
Code:

LH_BINARY_FILESYSTEM="fat16"
and I can change only to fat32.

Knows someone why I cannot use ext2?
Code:

LH_BINARY_FILESYSTEM="ext2"
..............................................................................................
# lh_build
W: You have selected values of LH_BOOTLOADER and LH_BINARY_FILESYSTEM which are incompatible -
syslinux only supports FAT filesystems.
P: Setting up cleanup function


k3lt01 02-23-2011 08:19 PM

You can use ext2 if you want (although if you were going to use ext2 why wouldn't you go further and use ext3/4?) but your obviously using LiveBuild to construct your LiveUSB image and if you follow LiveBuild's suggestions you will use syslinux which doesn't support anything other than FAT16/32.

If you want to use ext2/3/4 it is possible to use Grub2 to boot iso images (for Ubuntu it is) although I am yet to have any success in getting a Debian iso to boot this way.

frankbell 02-23-2011 08:21 PM

A guess about why not ext2. If someone wants to use it with Windows, I believe that Windows understands only FAT or, since NT and XP, NTFS.

j1alu 02-24-2011 01:12 AM

a) You could try:
lh config --bootloader grub
I did never did that. Just an idea.

b) a fellow is working on a how-to including grub. Have a short look here:
http://paste.debian.net/108686/
i set it to vanish (72 hours) and hope i won't forget to add the link once it is online.
As far i can tell he is quite good with it, and you might follow the link in my sig, go to how-to-discussion and ask there.

c) If it was me i would install Debian to the stick, pick ext2 and be done with it
(he was in IRC when he did the grub-stuff, and for me it sure does not sound like much fun. Your choice, sure)

k3lt01 02-24-2011 01:53 AM

Quote:

Originally Posted by j1alu (Post 4269347)
b) a fellow is working on a how-to including grub. Have a short look here:
http://paste.debian.net/108686/
i set it to vanish (72 hours) and hope i won't forget to add the link once it is online.
As far i can tell he is quite good with it, and you might follow the link in my sig, go to how-to-discussion and ask there.

Thanks for this, I have copied this as a txt document and will give it a go in the next week or so.

j1alu 02-24-2011 03:31 AM

Quote:

Originally Posted by k3lt01 (Post 4269377)
Thanks for this, I have copied this as a txt document and will give it a go in the next week or so.

You would also find it at forums debian net, how-to section, searching for fsmithred.
I would prefer to link to the new how-to, but in case it helps someone, i don't want to skip the info.
Good luck.

cccc 03-20-2011 09:36 PM

Quote:

Originally Posted by j1alu (Post 4269347)
a) You could try:
lh config --bootloader grub
I did never did that. Just an idea.

b) a fellow is working on a how-to including grub. Have a short look here:
http://paste.debian.net/108686/
i set it to vanish (72 hours) and hope i won't forget to add the link once it is online.
As far i can tell he is quite good with it, and you might follow the link in my sig, go to how-to-discussion and ask there.

c) If it was me i would install Debian to the stick, pick ext2 and be done with it
(he was in IRC when he did the grub-stuff, and for me it sure does not sound like much fun. Your choice, sure)

Thx, I've tried to create an image with a grub2 bootloader on squeeze, but I get these errors:
Code:

Creating config file /etc/default/grub with new version
grub-probe: error: cannot find a device for / (is /dev mounted?).
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
W: Bootloader in this image type not yet supported by live-build.
W: This would produce a not bootable image, aborting (FIXME).

P: Begin unmounting filesystems...


k3lt01 03-20-2011 10:27 PM

It is hard to give good help if we don;t know the exact command you gave. Try this command, suitably adjusted to your system.

Code:

sudo grub-install --root-directory=/media/USBFolderName /dev/sdx
USBFolderName is the name of your USB disk

sdx is your usb location e.g. my USB is usually sda

cccc 03-21-2011 07:44 PM

Quote:

Originally Posted by k3lt01 (Post 4297615)
It is hard to give good help if we don;t know the exact command you gave.

I've tried to create a live using these entries in config/binary:
Code:

# $LB_BINARY_FILESYSTEM: set image filesystem
# (Default: fat32)
LB_BINARY_FILESYSTEM="ext2"

# $LB_BOOTLOADER: set bootloader
# (Default: syslinux)
LB_BOOTLOADER="grub2"

and this won't work.

I'll try to install grub2 into usb stick directly, but what happens with syslinux installed by default?


All times are GMT -5. The time now is 10:52 AM.