LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2012, 11:30 PM   #1
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Rep: Reputation: Disabled
filesystem_corruppt_pls_help


Hi all,

I am running using Ubuntu 10.04 LTS-the Lucid Lynx (Server Edition).
I have connected 2 hard disks. One is 500gb and another 250gb one.
We are using this system as server and have got lot of data on that which we cant afford to lose.
The problem is that /dev/sda on which the operating system relays
root@FileServer:~# fdisk -l /dev/sda
Disk /dev/sda: 1000 GB, 1000202273280 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 60789 488287611 83 Linux
Warning: Partition 1 does not end on cylinder boundary.
/dev/sda2 60789 121602 488480422 5 Extended
Warning: Partition 2 does not end on cylinder boundary.
/dev/sda5 60789 120135 476696745 83 Linux
Warning: Partition 5 does not end on cylinder boundary.
/dev/sda6 120135 121602 11783677 82 Linux swap
Warning: Partition 6 does not end on cylinder boundary.
root@FileServer:~# fdisk -l /dev/sdb
Disk /dev/sdb: 250 GB, 250056737280 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 32 257008 83 Linux
Warning: Partition 1 does not end on cylinder boundary.
/dev/sdb2 32 30402 243947025 5 Extended
Warning: Partition 2 does not end on cylinder boundary.
/dev/sdb5 32 30402 243947025 8e Linux LVM
Warning: Partition 5 does not end on cylinder boundary.

I dont know why it is showing 500gb disk as 1000gb in fdisk -l and 500gb in the GUI. And one more disk of 250gb is shown as 250mb filesystem i GUI. Upon opening the 250mb filesystem only the files of /boot directory is found.

What can be done?? How will i get back my data on 250gb disk (/dev/sdb)
Please help.

Last edited by GNakul; 01-22-2012 at 11:34 PM.
 
Old 01-22-2012, 11:33 PM   #2
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Original Poster
Rep: Reputation: Disabled
I would also like to mention the output of df -h
root@FileServer:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 448G 76G 349G 18% /
none 2.0G 280K 2.0G 1% /dev
none 2.0G 24K 2.0G 1% /dev/shm
none 2.0G 320K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
none 2.0G 0 2.0G 0% /lib/init/rw
/dev/sdb1 228M 44M 173M 21% /media/1d1bd737-a56f-475f-b3d4-eb465024e8af

I am wondering where is /root /home and /boot...
 
Old 01-23-2012, 12:08 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
what is the output of

Code:
#sfdisk -uS -l /dev/sda
 
Old 01-23-2012, 01:07 AM   #4
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Original Poster
Rep: Reputation: Disabled
@deep27ak: root@ubuntu:~# sfdisk -uS -l /dev/sda

Disk /dev/sda: 30401 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = sectors of 512 bytes, counting from 0

Device Boot Start End #sectors Id System
/dev/sda1 * 2048 499711 497664 83 Linux
/dev/sda2 501758 488396799 487895042 5 Extended
/dev/sda3 0 - 0 0 Empty
/dev/sda4 0 - 0 0 Empty
/dev/sda5 501760 488396799 487895040 8e Linux LVM
 
Old 01-23-2012, 01:19 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
It certainly means that your partition are well and good as it shows with respect to sectors

are you not able to locate your files in / or /home partition?

you can try this one and the links which are provided here

http://ubuntuforums.org/showthread.php?t=1854524

http://tldp.org/FAQ/Linux-FAQ/error-messages.html
 
Old 01-23-2012, 01:53 AM   #6
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Original Poster
Rep: Reputation: Disabled
@deep27ak : Yes, But this is after removing my 500gb disk and booting into 250gb disk.
I think in this 250mb is /boot and remaining is LVM partition.
/dev/ubuntu:
root swap_1

df -h says 175gb is used and 35gb available. But i dont find any data in that /root (If i chck for properties it is showing 128TB )

I am confused
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:46 AM.

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