LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-17-2012, 06:42 AM   #16
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled

yes i mount $LFS

raza@raza-Inspiron-1564:~$ export LFS=/mnt/lfs
raza@raza-Inspiron-1564:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done

lfs mount on /dev/sda4
 
Old 12-17-2012, 06:48 AM   #17
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
yes i mounted lfs

raza@raza-Inspiron-1564:~$ export LFS=/mnt/lfs
raza@raza-Inspiron-1564:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done


lfs mounted on sda5
 
Old 12-17-2012, 06:59 AM   #18
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,662
Blog Entries: 1

Rep: Reputation: 242Reputation: 242Reputation: 242
You dont need to export lfs but mount it
[code]sudo mount -v /dev/sda5 /mnt/code]
 
1 members found this post helpful.
Old 12-17-2012, 07:04 AM   #19
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
raza@raza-Inspiron-1564:~$ sudo mount -v /dev/sda4 /mnt/
mount: you didn't specify a filesystem type for /dev/sda4
I will try all types mentioned in /etc/filesystems or /proc/filesystems
Trying ext3
Trying ext4
Trying vfat
Trying fuseblk
Trying ext2
Trying reiserfs
Trying xfs
Trying jfs
Trying msdos
Trying ntfs
NTFS signature is missing.
Failed to mount '/dev/sda4': Invalid argument
The device '/dev/sda4' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
 
Old 12-17-2012, 07:06 AM   #20
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,662
Blog Entries: 1

Rep: Reputation: 242Reputation: 242Reputation: 242
Why sda4 ????????
 
Old 12-17-2012, 07:08 AM   #21
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
sda5 i wrote this by mistake
actualy it is sda4
 
Old 12-17-2012, 07:11 AM   #22
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,662
Blog Entries: 1

Rep: Reputation: 242Reputation: 242Reputation: 242
Well it's not sda4
Quote:
/dev/sda4 313346046 488396799 87525377 5 Extended
Post the output of
Code:
sudo blkid
 
Old 12-17-2012, 07:13 AM   #23
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by raza.ajmi View Post
sda5 i wrote this by mistake
actualy it is sda4
You should stop what you are doing before you completely mess up your system!

Quote:
Originally Posted by raza.ajmi View Post
raza@raza-Inspiron-1564:~$ sudo fdisk -l
.
.
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 102399999 51096576 7 HPFS/NTFS/exFAT
/dev/sda3 102400000 313343999 105472000 7 HPFS/NTFS/exFAT
/dev/sda4 313346046 488396799 87525377 5 Extended
/dev/sda5 313346048 459829247 73241600 83 Linux
/dev/sda6 459831296 481312767 10740736 83 Linux
/dev/sda7 481314816 487172095 2928640 82 Linux swap / Solaris
/dev/sda8 487174144 488396799 611328 83 Linux
sda4 is an extended partition and cannot be your lfs partition.

As mentioned by another member in one of your other threads: Learn to walk before trying to run.
 
Old 12-17-2012, 10:28 AM   #24
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 467

Rep: Reputation: 133Reputation: 133
Hello raza.ajmi and everybody,

The grub.cfg in post #9 designates NTFS partitions in the fdisk reported in post #14. It never had a prayer of working, but it does serve to prove that raza.ajmi truly is mixed up about the partitions. I agree with that being a bad thing right about now.

I don't know why update-grub in Ubuntu is not working to generate a menu entry for LFS in the Ubuntu menu. Sorry. Another idea just for the time being is to emergency boot the LFS system from the Ubuntu GRUB menu grub prompt. I do this all the time for test systems not listed in any boot menu. It's quite easy and could at least let you move ahead for now. You can fix the main boot loader later when you understand the partitions (and GRUB) better.

If you want to try that, then press the "c" key when the Ubuntu GRUB menu appears. That will stop the boot countdown and present a grub> prompt. See the screenshot for the easy steps.
emer_boot.JPG
I don't use separate boot partitions. If you do, then don't use "/boot" in any of the paths in that example. The search command may find multiple grub.cfg files (e.g., Ubuntu's and maybe others). You have to know or figure out which is which (or try them all). You have to get the "root=" kernel parameter right or it will not boot. It's the device name (or LABEL, or UUID) of your root partition, and it has to be right.

Another idea is the Super GRUB 2 Disk (easy to find with Google). It's a CD that can boot your system (provided it is capable of booting). Besides, it a good thing for anybody to have around anyway.
 
1 members found this post helpful.
Old 12-17-2012, 10:49 AM   #25
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,662
Blog Entries: 1

Rep: Reputation: 242Reputation: 242Reputation: 242
Hi stoat

I do it that way as well but do you think it,s a good idea in the circumstances
 
Old 12-17-2012, 11:18 AM   #26
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 467

Rep: Reputation: 133Reputation: 133
I yield back to you on that. You were working hard on this. Your last request was for blkid. raza.ajmi should post it.

I just thought the brakes had been put on this. The idea I had was just something that I thought I could visually explain in a few steps to move it forward. Anyway, it's there for anybody to try at any time.
 
Old 12-17-2012, 11:21 AM   #27
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,662
Blog Entries: 1

Rep: Reputation: 242Reputation: 242Reputation: 242
I like to use that but it dose take a bit of understanding but tks for the input. I,ll put your name forward to run through it
 
  


Reply


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
System or Software rebooting? fusion1275 Linux - Newbie 15 09-08-2009 11:31 PM
problems after rebooting the system!! sharmashikha Linux From Scratch 2 07-09-2005 02:29 AM
System automatically rebooting! defa0009 Linux - General 13 03-23-2004 11:01 AM
Help, system is rebooting nightly.. BxBoy Linux - General 3 12-18-2003 03:21 PM
Self Rebooting System hubergeek Linux - General 2 06-11-2003 08:36 PM


All times are GMT -5. The time now is 02:45 AM.

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