LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2008, 03:54 AM   #46
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97

What does /etc/fstab look like?

Dave
 
Old 10-07-2008, 02:16 PM   #47
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam View Post
What does /etc/fstab look like?

Dave
Im not in front of the machine now. But I did what you said and its the same as the other server.

From memory...

/dev/sdb ext3 /backup default 11
/dev/sdc ext3 /backup2 default 11

Not sure if thats it but thats what I remember.
 
Old 10-07-2008, 02:30 PM   #48
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
You'll have to check 'fdisk' for sdb and sdc to see what'd going on.
As said above, using the full LUN for a filesystem (without partitioning) is perhaps a bit unusual, but if you've formated the whole LUN, you should get the full LUN capacity.

The plot thickens.

Dave

[Related, but unconnected] I've recently had the pleasure of dealing with a driver floppy where the vendor chose to dump a tar file directly onto the disk device, rendering it unreadable on the only machines around with floppy drives (Windows desktops). To add insult to injury, the tar file consisted of a single .c file. Swines.
 
Old 10-09-2008, 01:49 PM   #49
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam View Post
You'll have to check 'fdisk' for sdb and sdc to see what'd going on.
As said above, using the full LUN for a filesystem (without partitioning) is perhaps a bit unusual, but if you've formated the whole LUN, you should get the full LUN capacity.

The plot thickens.

Dave

[Related, but unconnected] I've recently had the pleasure of dealing with a driver floppy where the vendor chose to dump a tar file directly onto the disk device, rendering it unreadable on the only machines around with floppy drives (Windows desktops). To add insult to injury, the tar file consisted of a single .c file. Swines.
Im trying something different. After reaading up on this I DL'ed gparted live cd and booted to that. I see the two missing partitions. They have a yellow triangle next to them. It looks like they never got formatted. I am re creating them with gparted to ext3.

Wish me luck......

I will post back what the results are.

On edit.......
Yellow triangle means= Could not find valid filesystem superblock.

on edit......

Well on reboot all hell broke loose. Now it stops on disk repair and says fschk failed on sdb/c. Complains about not being valid ext2 partition. So Im running gpart again and re-formatting to ext2 from ext3 to see if it will boot.

On edit......
It keeps stopping the boot and tells me bad magic number bad superblock /sdb/sdc so I used gparted to delete the 2 partitons.

on edit.....

Well im stuck again in this repair mode. Not a valid ext2/3 and bad superblock. I cant get past this black screen and I have no idea what to do.

Last edited by problemchild200; 10-09-2008 at 02:55 PM.
 
Old 10-10-2008, 03:57 AM   #50
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hmmm.

If you can, edit fstab and take out the hdb and hdc lines - that should let you boot at least.

Dave
 
Old 10-10-2008, 11:25 AM   #51
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam View Post
Hmmm.

If you can, edit fstab and take out the hdb and hdc lines - that should let you boot at least.

Dave
How do I get there from the [repair disk] command line?
 
Old 10-10-2008, 11:41 AM   #52
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Should just be 'vi /etc/fstab'.
You might need to remount the root filesystem read-write first, with 'mount -o remount,rw /'

vi cheatsheet here, if you've never used it before:
http://www.lagmonster.org/docs/vi.html

Dave

Last edited by ilikejam; 10-10-2008 at 11:42 AM.
 
Old 10-10-2008, 11:57 AM   #53
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam View Post
Should just be 'vi /etc/fstab'.
You might need to remount the root filesystem read-write first, with 'mount -o remount,rw /'

vi cheatsheet here, if you've never used it before:
http://www.lagmonster.org/docs/vi.html

Dave
Ugghh

I'll try........

What will booting do for me now? Why did this happen? Once im in the GUI what can I do to fix the issue? Do I blow away these 2 partitions completely and start fresh?

Last edited by problemchild200; 10-10-2008 at 11:58 AM.
 
Old 10-14-2008, 02:53 PM   #54
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
WOW

I did it. Its finally done. I removed those 2 lines from fstab and got booted. Then I used yast and partitioner to fix the two bad partitons. I mkdir and mounted and all is good. Thanks......
 
Old 10-15-2008, 05:45 AM   #55
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Odd, didn't get an email from your previous post. Anyway...

Glad it's all working for you, man. That was a funky adventure.

Dave
 
Old 10-20-2008, 02:30 PM   #56
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam View Post
Odd, didn't get an email from your previous post. Anyway...

Glad it's all working for you, man. That was a funky adventure.

Dave
Maybe I spoke too soon. I came in today to setup the backups and looked at the two folders backup backup2 and both show 64 gigs from the main boot drive not the 2 large partitions. I think I rebooted so what went wrong during the reboot?

On edit....

Fstab looks OK and expert partitioner shows the correct sizes for both folders. I do see an * next to each folder. Example /backup* /backup2*. I dont know what that * means?

On edit again.......
It looks like the * means its not mounted. Why would it dis-mount during reboot? What do I check to make sure it stays/remounts during boot?

On edit 3rd time....

I mounted them and all looks OK. I see the * went away. I looked at fstab again (saw your info earlier that said thats where it mounts on boot) and I see two fstabs fstab and fstab~. Do I need to delete the fstab~ ? Is that what caused my non-mount of the 2 large partitions?

Last edited by problemchild200; 10-20-2008 at 02:54 PM.
 
Old 10-20-2008, 03:56 PM   #57
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Well I have verified that on reboot it lost those two large partitons mounts. Not sure why this is happening?
Can you help with that?

Second thing is.........

What is the simplest way to backup both those partitions to the other server---> /backup-Linux1 to /backup Linux2 server and /backup2 linux1 server to /backup2 linux2 server?

Can I just use syncback from a windows server to copy from one folder to the other or??? I really dont want to spend another 2 weeks learning and fighting linux through yet another issue.
 
Old 10-20-2008, 04:22 PM   #58
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Righty-hoo.

Let's see some hard data, shall we.
Can you post the output from the following:
Code:
df -kl | grep backup
mount | grep backup
grep backup /etc/fstab
ls /dev/sd*
Can you also post the output from doing 'fdisk /dev/dsX', then 'p' while you're still in fdisk for each of the devices for the backup disk devices?

The backup's probably easiest done with rsync over ssh, something like:
# rsync -av --delete -e ssh /backup linux2:/backup

Or maybe tar (more traditional) over ssh:
# cd /
# tar cvf - /backup | ssh "cd /; cat - | tar xvf -"

rsync's far, far more efficient once the first backup's done, but tar works everywhere (even on Solaris and various other unix, but I'm guessing that's not a big deal for you right now).

Dave

Last edited by ilikejam; 10-20-2008 at 04:31 PM.
 
Old 10-23-2008, 02:31 PM   #59
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
I could not make fdisk run with what you gave me. The backup info you gave me is that somethig that can run every night automatically at 1am?

Again........thanks for the help and sticking with me. If not for your help I would have dumped linux and installed win server and been up and running 2 months ago.

................
before reboot and while still mounted
........................................

linux2:~ # df -kl | grep backup
/dev/sdb1 2113784984 202912 2006208032 1% /backup
/dev/sdc1 666679968 202008 632612540 1% /backup2
linux2:~ # mount | grep backup
/dev/sdb1 on /backup type ext3 (rw)
/dev/sdc1 on /backup2 type ext3 (rw)
linux2:~ # grep backup /etc/fstab
/dev/sdb1 /backup ext3 default 1 1
/dev/sdc1 /backup2 ext3 default 1 1
linux2:~ # ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1 /dev/sdc /dev/sdc1
linux2:~ # fdisk /dev/dsx

Unable to open /dev/dsx
linux2:~ # fdisk /dev/dsp

Unable to open /dev/dsp
linux2:~ #

..............
after reboot but before mounting
..............................
linux2:~ # df -kl | grep backup
linux2:~ # mount | grep backup
linux2:~ # grep backup /etcfstab
grep: /etcfstab: No such file or directory
linux2:~ # grep backup /etc/fstab
/dev/sdb1 /backup ext3 default 1 1
/dev/sdc1 /backup2 ext3 default 1 1
linux2:~ # ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1 /dev/sdc /dev/sdc1
linux2:~ # fdisk

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...
linux2:~ # fdisk /dev/dsX

Unable to open /dev/dsX
linux2:~ # fdisk /dev/dsp

Unable to open /dev/dsp
linux2:~ #
 
Old 10-28-2008, 01:01 AM   #60
problemchild200
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam View Post
Righty-hoo.

Let's see some hard data, shall we.
Can you post the output from the following:
Code:
df -kl | grep backup
mount | grep backup
grep backup /etc/fstab
ls /dev/sd*
Can you also post the output from doing 'fdisk /dev/dsX', then 'p' while you're still in fdisk for each of the devices for the backup disk devices?

The backup's probably easiest done with rsync over ssh, something like:
# rsync -av --delete -e ssh /backup linux2:/backup

Or maybe tar (more traditional) over ssh:
# cd /
# tar cvf - /backup | ssh "cd /; cat - | tar xvf -"

rsync's far, far more efficient once the first backup's done, but tar works everywhere (even on Solaris and various other unix, but I'm guessing that's not a big deal for you right now).

Dave

Did you see the last post. Just wondering if it emailed you?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging freespace and an EXT3 partition matteom Linux - General 1 06-03-2007 10:50 PM
Making another partition from freespace DIRdiver Linux - Newbie 7 01-21-2007 03:36 PM
Resolution, stuck at 800 x 600!? Lintux Debian 6 03-30-2005 08:27 AM
Stuck in 800 x 600 resolution SuSe 9.1 dchoward1977 Linux - Newbie 15 09-02-2004 08:41 PM
Partition too small, and now stuck..HELP blakehampton Linux - Newbie 1 01-19-2004 04:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration