LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-03-2014, 05:05 PM   #1
mobjr
Member
 
Registered: Apr 2009
Location: Brazil
Distribution: Slackware
Posts: 52

Rep: Reputation: 0
Unhappy Slackware 14.0x32 - xfs error = Bad Magic Number


Hi. I'm here with my beautiful English.

I always use fdisk but these days I noticed something wrong.
I have 2 HD's and I did my partitions with fdisk.

When I tried to mount, I found that message:
Code:
cat /etc/fstab|grep -i 3thd

        /dev/sdb1                               /3thd                   xfs                     defaults    1 1

mount /3thd/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

dmesg |tail -n15
[   33.010011] eth1: no IPv6 routers present
[   35.918225] ip_tables: (C) 2000-2006 Netfilter Core Team
[   36.015982] nf_conntrack version 0.5.0 (15773 buckets, 63092 max)
[  201.180041] XFS (sdb1): bad magic number
[  201.180047] XFS (sdb1): SB validate failed
[  238.774318] XFS (sdc1): Mounting Filesystem
[  238.942703] XFS (sdc1): Ending clean mount
[  245.974309] XFS (sdb1): bad magic number
[  245.974315] XFS (sdb1): SB validate failed
[  259.191041] XFS (sdb1): bad magic number
[  259.191047] XFS (sdb1): SB validate failed
[  822.539575] XFS (sdb1): bad magic number
[  822.539581] XFS (sdb1): SB validate failed
[ 6701.506681] XFS (sdb1): bad magic number
[ 6701.506687] XFS (sdb1): SB validate failed
OK. I'm stupid, I have no idea about GPT and parted.
It's a server and there are a lot of data. I tried to understand about GPT.
I found that links about GPT:
Understand GPT: http://www.rodsbooks.com/gdisk/
Conversions from MBR to GPT: http://www.rodsbooks.com/gdisk/mbr2gpt.html

Can I fix this?
Code:
fdisk /dev/sdb
Welcome to fdisk (util-linux 2.21.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


WARNING: The size of this disk is 3.0 TB (3000592982016 bytes).
DOS partition table format can not be used on drives for volumes
larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID
partition table format (GPT).


The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

Command (m for help): p

Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
42 heads, 62 sectors/track, 2250588 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x45a0c1c0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1             256   732566644   366283194+  83  Linux

Command (m for help):
Code:
fdisk /dev/sdc
Welcome to fdisk (util-linux 2.21.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

Command (m for help): p

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
1 heads, 62 sectors/track, 63016599 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xa4b57300

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  3907029166  1953513559+  83  Linux

Command (m for help):
Is possible to change this?
 
Old 01-03-2014, 06:23 PM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You should probably move to the GPT partition scheme, because those disk are very large and not supported as the warning states. Use 'gdisk' or 'cgdisk' for partitioning using GPT partition scheme.
 
1 members found this post helpful.
Old 01-07-2014, 06:34 PM   #3
mobjr
Member
 
Registered: Apr 2009
Location: Brazil
Distribution: Slackware
Posts: 52

Original Poster
Rep: Reputation: 0
Unhappy HD 3TBytes - xfs with MBR

OK.

I have little problem. there are a lot of data on /dev/sdb
I cannot change now. My OS(Slack) is /dev/sda and my second
Hard disk is /dev/sdb without OS.

http://www.rodsbooks.com/gdisk/walkthrough.html

my /dev/sdb:
Code:
gdisk
GPT fdisk (gdisk) version 0.8.5

Type device filename, or press <Enter> to exit: q
Problem opening q for reading! Error is 2.
The specified file does not exist!
root@mcbcasa:~# gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if
you don't want to convert your MBR partitions to GPT format!
***************************************************************


Command (? for help): q
Is possible to use dd on /dev/sdb?

Last edited by mobjr; 01-07-2014 at 07:19 PM.
 
Old 01-19-2014, 02:33 PM   #4
mobjr
Member
 
Registered: Apr 2009
Location: Brazil
Distribution: Slackware
Posts: 52

Original Poster
Rep: Reputation: 0
OK, Backup done.

Can I have GPT without boot partitions?
I mean I have HD with 3TiB without OS and
I don't need OS or boot with EFI.
My PC boot from BIOS(MBR).

Last edited by mobjr; 01-19-2014 at 02:37 PM.
 
Old 01-19-2014, 03:35 PM   #5
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There is no specification that states that you must have a boot partition on a HDD. If you don't have one, you can't boot from that disk, but you can still use it and partition it as you like.
 
1 members found this post helpful.
Old 01-30-2014, 10:44 AM   #6
mobjr
Member
 
Registered: Apr 2009
Location: Brazil
Distribution: Slackware
Posts: 52

Original Poster
Rep: Reputation: 0
OK
Done...
Thanks.
 
  


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
[SOLVED] Bad Magic Number Error!!....URGENT gunjan_besu Linux - Newbie 1 09-03-2010 02:28 AM
Bad Magic Number I Use Dial Linux - Newbie 1 07-28-2009 07:02 AM
Problem in recovering deleted files (error : bad magic number) anamika123 Linux - Software 11 09-20-2004 04:55 AM
Bad Magic Number joseph Linux - Software 1 01-05-2004 03:22 AM
Bad Magic Number? Thewyzewun Linux - General 17 10-19-2003 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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