Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Date: Tue, 26 Apr 2011 17:00:38 -0400 From: JimR User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110407 Mandriva/3.1.9-0.2mdv2010.2 (2010.2) Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 Newsgroups: comp.os.linux.misc Subject: Re: File real location References: <87pqo9apss.fsf@araminta.anjou.terraraq.org.uk> <87tydkizhe.fsf@araminta.anjou.terraraq.org.uk> In-Reply-To: <87tydkizhe.fsf@araminta.anjou.terraraq.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 26 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: 6dc64127.news.astraweb.com X-Trace: DXC=0Y\jLQOlQ5?B;RYi]PcMG9L?0kYOcDh@:oAn`Q5_PNL2h:BbU8OZ3A=U@:XQ3?T\m`:Mj_QD? Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.misc:933 On 04/26/2011 03:28 PM, Richard Kettlewell wrote: > JimR writes: >> Richard Kettlewell wrote: > >>> stat() it and look at st_dev. >> >> OK, did stat with and without -f. Got the results below. The device >> ID is different in each case. How do I relate that number back to the >> filesystem? > > You can find it in the 'ls -l' output for the physical device underlying > the filesystem. For instance, 806h corresponds to 8, 6 (probably sda6); > in the example below fe00h = fe, 00 = 254, 0. > > richard@araminta:~/src/rsbackup$ stat /etc/motd | grep Device > Device: fe00h/65024d Inode: 301455 Links: 1 > richard@araminta:~/src/rsbackup$ mount | grep 'on / ' > /dev/mapper/araminta-root on / type ext3 (rw,noatime,errors=remount-ro) > richard@araminta:~/src/rsbackup$ ls -lL /dev/mapper/araminta-root > brw-rw---- 1 root disk 254, 0 Apr 4 18:57 /dev/mapper/araminta-root > Perfect, thanks for your help. JimR