On Wed, Dec 26, 2012 at 12:10 AM, JIA Pei <[email protected]> wrote:

> Now, I proceed to chapter 8.2
> http://www.linuxfromscratch.org/lfs/view/development/chapter08/fstab.html
>
> 1) However, it seems I cannot run
> hdparm -I /dev/sda | grep NCQ

No, that's not in LFS.  Do that from your host system.

> root:/# ls /dev
> console  initctl  null  tty
>
> which is telling: there is no partition on the SD Card yet (probably because

Have you umounted  $LFS/dev yet.  You really should have a complete
set of devices within chroot's /dev.

> In such a situation: what will <xxx> and <yyy> be when setting /etc/fstab ?
>
> /dev/<xxx>     /            <fff>    defaults            1     1
> /dev/<yyy>     swap         swap     pri=1               0     0
>
> I'm using sda1 and sda2 for now. Under my Ubuntu host,
> peijia@peijia-GA-870A-UD3:/etc$ ls /dev/sd*
> /dev/sda   /dev/sda2  /dev/sdb   /dev/sdb2  /dev/sdc   /dev/sdd   /dev/sdd2
> /dev/sda1  /dev/sda3  /dev/sdb1  /dev/sdb5  /dev/sdc1  /dev/sdd1
>
> in which /dev/sdd1 is corresponding to the ext4 file system for LFS on the
> SD card;
> /dev/sdd2 is corresponding to a SWAP on the SD card too.
>
>
> So, in short, is the following correct?
> /dev/sda1     /            ext4    defaults            1     1
> /dev/sda2     swap         swap     pri=1               0     0

For swap, use the same device as the host.  For the root fs use
/dev/sdd1, the same you used as $LFS.

BTW, I recommend you just edit your current /boot/grub/grub.cfg file
and add a menuentry when it gets time to reboot.  I don't think you
understand Linux well enough yet to install a new version of GRUB.

  -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to