On Tue, Dec 25, 2012 at 04:10:51PM -0800, JIA Pei wrote:
> Hi, Merry Christmas everybody:
> 
> 
> 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*
> 
> because of the following error message:
> *bash: hdparm: command not found*
> 
> Should I run the above command after I booted from SD card??
> 
 Only if you need to.  If you do require it, look in BLFS.  But you
say this is a card (generally a bad idea - they are cheap and tend
to get trashed by the usage patterns of sane filesystems - but
ignore that for now) - so, where is / on the host system ?  I would
expect _that_ to be on sda, with your card somewhere else such as
sdb.  [ reads rest of mail ] : why, when the card is at /dev/sdd in
your host, do you think it will be at /dev/sda after you boot ?

 The order of disks _can_ change across kernel versions, but if your
host has real drives at sda, sdb, sdc then it seems very likely that
your card will be sdd when you boot the new system (unless you
remove the real drives).  You also might need to add a delay (like
with an external usb drive) so that the card shows up.
> 
> 2) By the way, under *root:/*
> 
> *root:/# ls /dev*
> *console  initctl  null  tty*
> 
> which is telling: there is no partition on the SD Card yet (probably
> because I didn't boot from the SD card yet)
> 

 No idea.  On the face of it, the card isn't connected.
/dev/ ought (in chroot) to be a bind mount of /dev/ on the host, so
whatever is at sda in the host will be at sda in chroot.
> 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*
> 
> 
> Cheers

 Probably not [ see above ].  Building LFS, or (in your case)
something close to LFS, is hard enough on a real disk.  Building it
on a card adds all sorts of other problems.  You apparently have
*three* real drives - don't you have any spare space on those ?

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
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