openSUSE Forums > Install/Boot/Login » Partitioning problem

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 30-Aug-2008, 12:38
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 16
mawkernewek hasn't been rated much yet
Default Partitioning problem

I wish to resize my partitions since upgrading to OpenSUSE 11.0 my / partition is full.

I get the message that the partitioning on disk /dev/sda is not readable.

Using a GParted Live CD I find that it reads it as unallocated.

There is also two Windows Vista partitions (one with the OS and a data partition)

I also get error messages on boot that it is trying to access beyond the end of the device.

It seems like the partition table is somehow corrupted. Does anyone know how to repair it?
Reply With Quote
  #2 (permalink)  
Old 30-Aug-2008, 15:38
mingus725's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: Atlanta, Georgia, USA
Posts: 2,339
mingus725 's reputation will be famous soon enoughmingus725 's reputation will be famous soon enoughmingus725 's reputation will be famous soon enough
Send a message via MSN to mingus725 Send a message via Yahoo to mingus725
Default Re: Partitioning problem

We need some information:

Can you boot into Vista? Did this disk come with the machine or was it added? How were each of the partitions created? Do you have a Live-CD or the SuSE DVD to run in Rescue, so you can do this at the command line as root:

Code:
fdisk -l -u
That will tell us what is in the table.
Reply With Quote
  #3 (permalink)  
Old 30-Aug-2008, 16:03
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 16
mawkernewek hasn't been rated much yet
Default Re: Partitioning problem

I can boot into Vista, although since I added some RAM recently it has a habit of rebooting spontaneously.

Basically the disk came with the machine with Vista preinstalled, and I installed OpenSUSE 10.2, resizing the NTFS partitions.

I recently upgraded the system to OpenSUSE 11.

I have a NFS mini-iso CD which has a rescue mode. I'll boot using this once I have finished backing up my data to my external drive in case it all goes wrong.
Reply With Quote
  #4 (permalink)  
Old 30-Aug-2008, 17:08
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 16
mawkernewek hasn't been rated much yet
Lightbulb Re: Partitioning problem

OK, here's the output from fdisk -l -u

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1*512 = 512 bytes
Disk identifier: 0xd8b2a64c

Device Boot Start End Blocks Id System
/dev/sda1 2048 3074047 1536000 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 3074047 44050229 20488091 7 HPFS/NTFS
/dev/sda3 135329792 156312449 10491329 7 HPFS/NTFS
/dev/sda4 45019762 135329791 45155015 f W95 Ext'd (LBA)
Partition 4 does not end on cylinder boundary.
/dev/sda5 62187615 64902599 1357492+ 82 Linux swap / Solaris
/dev/sda6 64902663 81288899 8193118+ 83 Linux
/dev/sda7 81288963 135315494 27013266 83 Linux

I hope this helps.
Reply With Quote
  #5 (permalink)  
Old 30-Aug-2008, 17:30
mingus725's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: Atlanta, Georgia, USA
Posts: 2,339
mingus725 's reputation will be famous soon enoughmingus725 's reputation will be famous soon enoughmingus725 's reputation will be famous soon enough
Send a message via MSN to mingus725 Send a message via Yahoo to mingus725
Default Re: Partitioning problem

I wouldn't conclude yet that the table is damaged. It may be the file system. Things can get weird if it's 100% full - pieces may be missing.

When you boot SuSE, does the error you get prevent root from mounting? If you can mount the partition, what does the df command report? Have you tried to run e2fsck on it?

By the way, if you're getting reboots after adding RAM, advise you check the seating of the sticks and run memtest.
Reply With Quote
  #6 (permalink)  
Old 31-Aug-2008, 06:30
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 16
mawkernewek hasn't been rated much yet
Default Re: Partitioning problem

I have no problem mounting the partition and fsck reports /dev/sda6 as clean.

df reports
Filesystem 1K-blocks Used Available Mounted on
/dev/sda6 8064272 7706380 0 /
Reply With Quote
  #7 (permalink)  
Old 31-Aug-2008, 15:20
mingus725's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: Atlanta, Georgia, USA
Posts: 2,339
mingus725 's reputation will be famous soon enoughmingus725 's reputation will be famous soon enoughmingus725 's reputation will be famous soon enough
Send a message via MSN to mingus725 Send a message via Yahoo to mingus725
Default Re: Partitioning problem

First issue is repairing/preparing the root file system so it can be safely copied from, let alone physically altered.

If you have the space to create another partition, you do not need to resize the root. You can put the contents of one of the subdirectories on the new partition and mount that partition to that subdirectory mount point. So for example, you could copy everything in /usr to the new partition and then mount that partition (in fstab) to /usr.

Whether you take this approach or that of resizing the root partition itself, you need to reclaim some space and do a file system check first. When a partition gets full there can be faulty writes and consequently, reads. So it's dangerous to try resizing or even copying right now. Even a full backup now may be corrupted and hence unusable.

To reclaim some space, you can (1) delete files out of /tmp. In YaST /etc/sysconfig Editor, look at Cron under System. Note the Max Day, Tmp Dir, and Owner. Set that to 30, /tmp, and blank. After cron next runs, you may have bought several hundred MB.

Then (2) use the tune2fs -m command to reduce the amount of reserved-blocks space. The default is 5%, which typically is plenty more than needed. Set it to 3%. Frees another couple hundred MB.

Reboot. See if df shows space available. You should be able to run e2fsck with the -f option now. Then reboot again.

Now take a look again in YaST Partitioner. Still an error?

Now back to the original question again re resizing root. If there is a problem with the partition table, trying to fix it may make the system unusable. And especially trying to resize it. There are good tools like TestDisk, but there can be unforeseen issues e.g., due to what other software has done with the table (notably Vista). There are lower-level tools like disk editors that enable directly writing to the table, but this is very serious and only for experts. IMO, your best solution is a separate sub-directory partition as described above. At a later point you could copy the root to other storage, delete/re-create the partition, copy back. But again, this means changing the table; if there are still indications of problems with it, you may lose the whole disk. There's a good chance that if you just leave it alone, have reclaimed space otherwise, and the file system is in good shape again, that you'll be OK.
Reply With Quote
  #8 (permalink)  
Old 31-Aug-2008, 15:47
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 16
mawkernewek hasn't been rated much yet
Default Re: Partitioning problem

I'm doing memtest now, and when I ran the test using both 1Gb sticks, it came up with errors.

However so far each stick individually seems fine. I will test the one I am testing now using the other DIMM slot next, perhaps I have a faulty DIMM slot.
Reply With Quote
  #9 (permalink)  
Old 31-Aug-2008, 16:40
mingus725's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: Atlanta, Georgia, USA
Posts: 2,339
mingus725 's reputation will be famous soon enoughmingus725 's reputation will be famous soon enoughmingus725 's reputation will be famous soon enough
Send a message via MSN to mingus725 Send a message via Yahoo to mingus725
Default Re: Partitioning problem

Quote:
Originally Posted by mawkernewek View Post
I'm doing memtest now, and when I ran the test using both 1Gb sticks, it came up with errors.

However so far each stick individually seems fine. I will test the one I am testing now using the other DIMM slot next, perhaps I have a faulty DIMM slot.
More likely a bad stick. Run the default test set. It will toggle through 9 tests. Can take all night.
Reply With Quote
  #10 (permalink)  
Old 31-Aug-2008, 16:48
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 16
mawkernewek hasn't been rated much yet
Default Re: Partitioning problem

What I don't understand is why they pass when each is tested on their own but fail when both are in at the same time.
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks

Tags
partition table, partitioning


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2