public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] recovery of fstab
@ 2012-12-11 22:48 James
  2012-12-11 23:39 ` Kevin Brandstatter
  2012-12-11 23:49 ` Bruce Hill
  0 siblings, 2 replies; 5+ messages in thread
From: James @ 2012-12-11 22:48 UTC (permalink / raw
  To: gentoo-user

Well I have a gentoo system I'm trying to recover.
I've got it booted up via systemrescue.

I do not have a copy of the fstab, so what is the best
way to discover which partitions are /boot / and so on?

(brain dead tonight)....


I guesses but the / is blank?

df <snip>
/dev/sda2             61438696  51276944  10161752  84% /mnt/gentoo/boot
/dev/sda3             61438696  51276944  10161752  84% /mnt/gentoo


/mnt/gentoo/boot is populated (mounted correctly) but the /dev/sda3
which I'm guessing is / is empty ?

Been a while since I had to recover a system so referals to good 
docs are most welcome....

No to mention an automount capability with systemrescue?

James






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] recovery of fstab
  2012-12-11 22:48 [gentoo-user] recovery of fstab James
@ 2012-12-11 23:39 ` Kevin Brandstatter
  2012-12-11 23:52   ` Adam Carter
  2012-12-11 23:49 ` Bruce Hill
  1 sibling, 1 reply; 5+ messages in thread
From: Kevin Brandstatter @ 2012-12-11 23:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

mount them and see whats there?
also, what order did you mount them in? it may make a difference


On Tue, Dec 11, 2012 at 2:48 PM, James <wireless@tampabay.rr.com> wrote:

> Well I have a gentoo system I'm trying to recover.
> I've got it booted up via systemrescue.
>
> I do not have a copy of the fstab, so what is the best
> way to discover which partitions are /boot / and so on?
>
> (brain dead tonight)....
>
>
> I guesses but the / is blank?
>
> df <snip>
> /dev/sda2             61438696  51276944  10161752  84% /mnt/gentoo/boot
> /dev/sda3             61438696  51276944  10161752  84% /mnt/gentoo
>
>
> /mnt/gentoo/boot is populated (mounted correctly) but the /dev/sda3
> which I'm guessing is / is empty ?
>
> Been a while since I had to recover a system so referals to good
> docs are most welcome....
>
> No to mention an automount capability with systemrescue?
>
> James
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 1371 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] recovery of fstab
  2012-12-11 22:48 [gentoo-user] recovery of fstab James
  2012-12-11 23:39 ` Kevin Brandstatter
@ 2012-12-11 23:49 ` Bruce Hill
  2012-12-12  2:30   ` [gentoo-user] " James
  1 sibling, 1 reply; 5+ messages in thread
From: Bruce Hill @ 2012-12-11 23:49 UTC (permalink / raw
  To: gentoo-user

On Tue, Dec 11, 2012 at 10:48:03PM +0000, James wrote:
> 
> I guesses but the / is blank?
> 
> df <snip>
> /dev/sda2             61438696  51276944  10161752  84% /mnt/gentoo/boot
> /dev/sda3             61438696  51276944  10161752  84% /mnt/gentoo
> 
> 
> /mnt/gentoo/boot is populated (mounted correctly) but the /dev/sda3
> which I'm guessing is / is empty ?
> 
> Been a while since I had to recover a system so referals to good 
> docs are most welcome....
> 
> No to mention an automount capability with systemrescue?

Start by issuing "blkid" to determine what partitions are there. If you use -L
with mkfs.<whatever> then you should have a label, such as this:

peter ~ # blkid
/dev/sda1: LABEL="root" UUID="73362905-79dc-4512-9518-4c040963f80e" TYPE="xfs" 
/dev/sda2: LABEL="boot" UUID="2559cf58-63fa-44d3-ac82-94514d4d3769" TYPE="xfs" 
/dev/sda3: LABEL="home" UUID="8d5d17c1-7f99-4a49-b256-4d075306e42e" TYPE="xfs" 
/dev/sda5: LABEL="swap" UUID="636e7622-4a10-43d2-b976-d37cc15da7fc" TYPE="swap"

Then "mkdir /tmp/help" or whatever, and "mount /dev/<partition> /tmp/help/ and
when you get the old / located, mount it first later.

mount /dev/<old /> /mnt/gentoo
mount /dev/sda2    /mnt/gentoo/boot

It looks like sda2 and sda3 are identical, so you got something mounted wrong.

Bruce
-- 
Happy Penguin Computers               >')
126 Fenco Drive                       ( \
Tupelo, MS 38801                       ^^
support@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] recovery of fstab
  2012-12-11 23:39 ` Kevin Brandstatter
@ 2012-12-11 23:52   ` Adam Carter
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Carter @ 2012-12-11 23:52 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 128 bytes --]

> mount them and see whats there?
>

Also, check the partition table to see which one is swap, and what other
partitions exist.

[-- Attachment #2: Type: text/html, Size: 318 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: recovery of fstab
  2012-12-11 23:49 ` Bruce Hill
@ 2012-12-12  2:30   ` James
  0 siblings, 0 replies; 5+ messages in thread
From: James @ 2012-12-12  2:30 UTC (permalink / raw
  To: gentoo-user

Bruce Hill <daddy <at> happypenguincomputers.com> writes:


> Start by issuing "blkid" to determine what partitions are there. If you use -L
> with mkfs.<whatever> then you should have a label, such as this:

> peter ~ # blkid
> /dev/sda1: LABEL="root" UUID="73362905-79dc-4512-9518-4c040963f80e" TYPE="xfs" 

I used parted -l


> mount /dev/≤old /> /mnt/gentoo
> mount /dev/sda2    /mnt/gentoo/boot

I got it mounted now:

/dev/sda2  208820     80584    128236  39% /mnt/gentoo/boot
/dev/sda3  61438696  51276944  10161752  84% /mnt/gentoo/new

thx
James





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-12  2:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-11 22:48 [gentoo-user] recovery of fstab James
2012-12-11 23:39 ` Kevin Brandstatter
2012-12-11 23:52   ` Adam Carter
2012-12-11 23:49 ` Bruce Hill
2012-12-12  2:30   ` [gentoo-user] " James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox