LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2007, 10:52 AM   #1
PhilipMac
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Rep: Reputation: 0
partition failing on reboot...


This is weird...

sudo parted /dev/sdb mklabel gpt
sudo parted /dev/sdb print

Disk /dev/sdb: 6978GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 6978GB 6978GB ext3 primary

sudo parted /dev/sdb mkpart primary 0 6978GB

sudo mkfs.ext3 /dev/sdb1

cat /proc/partitions
8 0 20971519 sda
8 1 248976 sda1
8 2 1951897 sda2
8 3 18763920 sda3
8 16 6814820352 sdb
8 17 6814820319 sdb1

sudo fsck /dev/sdb1
fsck 1.40-WIP (14-Nov-2006)
e2fsck 1.40-WIP (14-Nov-2006)
/dev/sdb1: clean, 11/851853312 files, 26779760/1703705079 blocks

sudo vol_id /dev/sdb1

>/etc/fstab : UUID=blah /test ext3 defaults 0 0

reboot.

sudo fsck /dev/sdb1
fsck 1.40-WIP (14-Nov-2006)
e2fsck 1.40-WIP (14-Nov-2006)
The filesystem size (according to the superblock) is 1703705079 blocks
The physical size of the device is 93092343 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes

cat /proc/partitions
major minor #blocks name

8 0 20971519 sda
8 1 248976 sda1
8 2 1951897 sda2
8 3 18763920 sda3
8 16 6814820352 sdb
8 17 372369375 sdb1


What has changed? I dont get it. I just reboot, and everything goes to hell.

Just FYI, GPT is enabled in the kernel...

The thing is... if I run mkfs.ext3 on /dev/sdb (create the whole thing as a partition) then there is no problem. Everything seems to work perfectly.

BUT, I am worried this is in some way a "bad thing".

And me losing 6 Tb of data might be a "bad thing" for me too. Ahem.
 
Old 05-02-2007, 04:19 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by PhilipMac
This is weird...
was this big partition initially attempted to be created with fdisk (especially during an OS install?) If so, you may want to use fdisk to delete the partition, write to the partition table, then use parted. The error message you're getting looks like one that comes from fdisk trying to make a partition larger than 2TB.

I don't think it matters, but you know that parted has its own "shell". You can just run "sudo parted" and then run commands from there. Otherwise, the commands you're giving look correct.

FWIW - For some reason, I always give a little bit of a buffer when making my really large partitions - never exactly the entire disk, but a few gigs short.
 
  


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
WinXP, FC-5 Dual Boot, Grub failing to load FC-5 (can't mount selected partition) rcmpsc Fedora 4 09-21-2006 09:53 AM
internet connection failing after every reboot prasadlinuxguy Linux - Networking 1 05-13-2006 06:45 AM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
Bootup failing at partition check -help! MarkieC Linux - Newbie 4 09-21-2004 04:08 PM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:43 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