Go Back   Science Forums > Physical Sciences Forums > Computer Science and Technology
Reply
 
LinkBack Thread Tools
Old 06-04-2009   #1 (permalink)
Southtown's Avatar
Bury, then water


 



Not Ranked  0 score     
LFS on vfat usb

#mkdir /mnt/lfs/tools ...OK
#chown lfs /mnt/lfs/tools ...Operation not permitted

K what am I doing wrong? I thought that the LFS book said vfat was supported ...but I can't find that page right now. All I can find is this page saying only e2, e3, reiser, and xfs. But I don't think I can get grub to work on my stick so I want vfat so I can use syslinux.

mount -l says the usb is mounted rw, so wtf? I got as far as glibc 2nd pass on reiserfs usb.

P.S. I boot into an LFS livecd image located on my Arch partition, then mount both Arch and the usb then link to them from root.


----------------
Reply With Quote
Old 07-17-2009   #2 (permalink)
Southtown's Avatar
Bury, then water


 



Not Ranked  0 score     
Re: LFS on vfat usb

Permission problem on fvat merely required mounting with umask/fmask. But symlinks are not possible on vfat so oh well.
Reply With Quote
Old 07-17-2009   #3 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Re: LFS on vfat usb

Why are you putting all that straight down on the usb drive? wouldn't it make more sense to use squashfs or something and only manage the vfat boot partition with a boot loader, kernel and system config on there? Just curious, it just seems like you are doing this a bit backwards, to me...


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 07-17-2009   #4 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Re: LFS on vfat usb

as far as syslinux goes, you only need two files on there ldlinux.sys and syslinux.cfg and your kernel for a successful boot. then run through the syslinux cfg

ex:
default Linux
label Linux
kernel bzImage
append root=/dev/hdc

and that should boot your kernel.

So then you just need a kernel with squashfs, and perhaps compression built in to pull up the rest of your data...? I dunno i haven't built a live distro in a while, but as far as i recall, that is basically how the boot process went?


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 07-17-2009   #5 (permalink)
Southtown's Avatar
Bury, then water


 



Not Ranked  0 score     
Re: LFS on vfat usb

Quote:
Originally Posted by alexander View Post
Why are you putting all that straight down on the usb drive? wouldn't it make more sense to use squashfs or something and only manage the vfat boot partition with a boot loader, kernel and system config on there? Just curious, it just seems like you are doing this a bit backwards, to me...
Well it was just a learning exercise. Are you saying I put linux on one partition and the /boot on vfat, or am I not understanding you?

Quote:
Originally Posted by alexander View Post
as far as syslinux goes, you only need two files on there ldlinux.sys and syslinux.cfg and your kernel for a successful boot. then run through the syslinux cfg

ex:
default Linux
label Linux
kernel bzImage
append root=/dev/hdc

and that should boot your kernel.

So then you just need a kernel with squashfs, and perhaps compression built in to pull up the rest of your data...? I dunno i haven't built a live distro in a while, but as far as i recall, that is basically how the boot process went?
Thanks for the tips. I don't know anything about squashfs, is it just like a different partition type? I never got far enough to setup a bootloader, or kernel for that matter. After trying/retrying different versions of 64-bit LFS, I finally got x86 to build all the way through (on ext2,) but I had to use my USB for an Arch reinstall (after an update that weeded out a lot of us noobs.) I did save my 32-bit LFS tookit, tho. I think I'm gonna wait for 64-bit to mature a little, then retry.
Reply With Quote
Old 07-17-2009   #6 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Re: LFS on vfat usb

Squashfs is a compressed read-only file system in linux SquashFS - Wikipedia, the free encyclopedia

Its great for these distributions to put all your system stuff in there and whatnot

Let me see if i can dig up some docu for you for building live distributions, and creating bootable sectors and using squashfs and making ram disks and whatnot


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 07-17-2009   #7 (permalink)
Southtown's Avatar
Bury, then water


 



Not Ranked  0 score     
Re: LFS on vfat usb

Many thanks. From what I've read flash drives need an offset in their partitions to compensate for boot sectors. And of course squash would obviously be beneficial. I don't know why i didn't think of the seperate /boot partition, duh.
Reply With Quote
Old 07-21-2009   #8 (permalink)
alexander's Avatar
Dedicated Smart-ass

Senior Moderator
Gallery Curator
Dev Team Member

Location:
Just before 0xAA55
 
alexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond reputealexander has a reputation beyond repute
Send a message via AIM to alexander
 



Not Ranked  0 score     
Re: LFS on vfat usb

Ok, so here's what i have come up with for your delema

First of all, use grub, it wont have problems performing, on the USB drive, just make a small ext4 partition for grub and all your favorite magical boot files (like 35m would do, actually even less, that depends on your kernel), the rest you can mount as squash, and consider even making a small ram-disk partition for home directories and whatnot. You can probably make a swap-less boot, and try to maximize your kernel to be as lean as possible, but be able to support as much hardware (reasonably) as possible through the use of modules (remember anything that is not needed from the get-go, should be modularized)...

I think i would start with:
Partitioning the drive
setting up the ext4 partition for grub boot
creating a temporary working directory (ies) to be later converted to squashfs partition
creating your distro, installing kernel, drivers, what have you, making sure it all works (by booting using that kernel, and then chrooting into it) installing/testing software, etc.
Finally cleaning up all the logs, documentation (that takes up tons of space), finally squashing the system and dding it to a squash partition on your thumb drive. (remember you will need usb support built in, lzma, and squasfs as well as ext4 built inito the kenrel)

Finally, ofcourse testing all that

Hope some of this helps
here are some random references:
USB boot on Linux
Linux Convert ext3 to ext4 File system
How to make a live CD/DVD from your harddisk installation - Ubuntu Forums
SquashFS HOWTO

within those, you should get a really great idea on how you will go about building your lfs on usb system...

enjoy


----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.

Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.

Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

Reply With Quote
Old 07-22-2009   #9 (permalink)
Southtown's Avatar
Bury, then water


 



Not Ranked  0 score     
Re: LFS on vfat usb

You rock man. Will try that and let you know how it goes.


----------------
Reply With Quote
Old 08-03-2009   #10 (permalink)
Southtown's Avatar
Bury, then water


 



Not Ranked  0 score     
Re: LFS on vfat usb

Quick question. I backed up my first run toolkit on my ntfs and so now all the permissions are -r--------. I read about using find with chmod to sort through directories and files, but then it occurred to me that some of those files should be executable. Is there any way to find those also or should I just rebuild the first toolkit?

Edit: I could just make 'em all executable. Hell it's all temporary anyway.


----------------
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 27.27%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 45.45%
5 Votes
I'm too macho to think a guy is sexy - 27.27%
3 Votes
Total Votes: 11
You may not vote on this poll.


All times are GMT -8. The time now is 04:06 AM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network