LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Custom Bootable USB Flash Drive: Boot Mounting Problem (https://www.linuxquestions.org/questions/linux-newbie-8/custom-bootable-usb-flash-drive-boot-mounting-problem-906469/)

TKH 10-04-2011 09:52 PM

Custom Bootable USB Flash Drive: Boot Mounting Problem
 
I'm making a custom build Linux From Scratch, and I'm putting it in a USB Flash Drive. I'm planning to have my Linux build to be minimal.
I got all the programs I need in order for it to run properly. However, the configuration doesn't seem to be working. The kernel works just fine, but when it comes to the mounting, it screws up. What I see is that the kernel mounts my root file system as read only, causing error.

FYI, This is what I have:
  • A USB 2.0 Flash Drive (obviously)
  • ext2 partitioned boot
  • ext3 root partition
  • Linux Kernel 2.6.37 with no initrd or swap support
  • Grub 0.97
  • GCC 4.2.4
  • Binutils 2.18
  • GlibC 2.7
  • other standard toolchain programs

Don't worry about the 'no initrd or swap' thing, if you are thinking about those, this is none of my concern for the time being because those are not the problem. The problem seems to be around the mounting process.

I'd like to see what you think. Any, even the tiny bits of, help or opinion will be appreciated!

RockDoctor 10-05-2011 08:27 AM

Looking at my grub.conf file, I see that the kernel is explicitly mounted ro:
Code:

title Fedora (3.1.0-0.rc8.git0.0.fc16.x86_64)
        root (hd0,7)
        kernel /boot/vmlinuz-3.1.0-0.rc8.git0.0.fc16.x86_64 ro root=LABEL=F16 rootfstype=ext4 plymouth.disable=0 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us selinux=0
        initrd /boot/initramfs-3.1.0-0.rc8.git0.0.fc16.x86_64.img

Perhaps mounting it rw at this point will do what you need. There must be a reason why it's mounted ro at this stage, I just don't know what it is.


All times are GMT -5. The time now is 03:42 AM.