![](https://seccdn.libravatar.org/avatar/4bfbbf7d8881ddc5e1d9dccdc2945c36.jpg?s=120&d=mm&r=g)
Hi all, Got a local user here that trashed her fstab and now has a blank file, which of course pretty much renders her system useless for many things. I am pretty sure she does not have a backup, so she will have to rebuild it from scratch in an editor, unless you guys know of some other way to do it. If she has to rewrite it, how does she go about finding all the info that she needs to do that? Things like partitions, file system used, drives, etc. I was able to give her at least the info for her cdrom, floppy, usb & cdrw, but those are the only things that relate from her system to mine. She has this type of setup: 36gb SCSI drive 4gb SCSI drive 40gb IDE drive USB card reader cdrw drive I think that is all. Anyway, what command does she run to see everything for the hard drives, etc. Thanks, oh this is SuSE 8.0 Patrick-- --- KMail v1.4.3 --- SuSE Linux Pro v8.1 --- Registered Linux User #225206 On any other day, that might seem strange...
![](https://seccdn.libravatar.org/avatar/fd74ba9928b5d6d9e5392e0f53341f62.jpg?s=120&d=mm&r=g)
I think that is all. Anyway, what command does she run to see everything for the hard drives, etc. Thanks, oh this is SuSE 8.0
Is the system still running in a sane fashion? Is so, try: mount with no parameters. That will list which file systems are currently mounted where and what types they are. You can use that info to rebuild the fstab file, although I don't know if it's possible to do it automatically. Never heard of such a thing. Alternatively, try: fdisk -l (that's an "el") which will list the disk devices attached to the box and their system types. After that you're on your own really. The swap partition will be easy to spot, and anything with a type of "Linux" will be a data partition. Get the box started as best you can, then mount each one onto /mnt and have a look at it. The root fs should be pretty obvious, as should /boot, /tmp and /home. Depends how you've got the box set up. -- Microsoft Palladium: "Where the hell do you think YOU'RE going today?"
![](https://seccdn.libravatar.org/avatar/5a94d2f8a5845d5f1c1ea1556fc0cb72.jpg?s=120&d=mm&r=g)
On 01/27/2003 12:41 PM, PL O'Smith wrote:
She has this type of setup: 36gb SCSI drive 4gb SCSI drive 40gb IDE drive USB card reader cdrw drive
I think that is all. Anyway, what command does she run to see everything for the hard drives, etc. Thanks, oh this is SuSE 8.0
Try fdisk -l to get a listing of her hard disks, partition, and file system type IIRC. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
participants (3)
-
Derek Fountain
-
Joe Morris (NTM)
-
PL O'Smith