Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 10-27-2009, 11:50 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Exclamation Almost Finished -- Partition Does Not Exist?!


I need some help.

This is a huge "oops". I am almost finished building LFS-6.4 (at stage 8.4. Making the LFS System Bootable) and I suddenly realize that the partition where (I thought) I was installing does not exist.

So, two questions...

1) What is going on?
On the host (Debian) system, I have been building LFS at /mnt/lfs. When I check /etc/mtab, it shows the target partition mounted at this mount point ("/dev/hda2 /mnt/lfs ext3 rw 0 0"). But when I try to configure 'grub' or run 'gparted', the target partition is unallocated and does not exist. So, what is going on? Where, after all, have I been building all this?

2) What do I do?
Is there any way to salvage the work that I have done so far?

Old 10-28-2009, 02:37 AM   #2
LQ Newbie
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Okay, after the bit of panic... everything is fine.

- I copied everything in '/mnt/lfs' just to be safe.
- Although afraid of losing everything, I tried to unmount '/mnt/lfs'
- I couldn't, because "device is busy".
- I rebooted (although, if I had read ahead in the book, section 9.3. describes the proper way to unmount the LFS partition (more than one mount point))
- Now the missing partition showed up and everything was there.

- An internet search lead me to believe that 'grub' was not finding the partition (actually the whole hard drive), because '/dev' was not populated.
- Following a hint, I went back to the beginning of chapter 6.
- As root on host system, I bind-mounted '/dev' to '$LFS/dev' and mounted the virtual kernel file systems.
- Reentering the 'chroot' environment, I found '/dev' fully populated.

- I retried the 'grub' shell 'root' command and it worked.
- 'Grub' successfully found the partition.


So, this whole thing was not really a big problem after all.

Continuing on, I was able to boot into my shiny new custom system.

Actually, I still have some problems to work out, but as for the missing target partition... I will mark this thread "solved".



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
encrypted partition does not exist goswamiyashwant Linux - Newbie 4 03-01-2009 01:06 AM
Encrypted partition won't mount "device ... does not exist" CRC123 Linux - Security 4 01-02-2009 09:31 AM
How do you change partition order from say hda2 to hda1, where hda1 does not exist r00tb33r Linux - Software 6 04-10-2007 12:33 AM
Can create logical volume after ext3 partition setup finished? lewkh Linux - Newbie 0 11-17-2004 02:00 AM
Linux partition doesn't exist under BSD! acid_kewpie *BSD 16 02-12-2004 01:13 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

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