LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-20-2014, 11:26 AM   #1
rwebb616
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Rep: Reputation: Disabled
CentOS 6.5 3TB external USB drive


Hi,

Not entirely new to Linux but this is likely a newbie question for most of you other gurus out there. I have a 3TB USB drive for which I had used gparted and changed it to GPT and then had formated it ext4. I had gone through the work of finding out how to properly align it however the command that I used slips my mind right now. I know that I did properly align it when I used gparted. That being said, I used blkid to find the UUID of the volume and added a line to /etc/fstab to mount it on startup. Everything was working great. I had an issue that I had to reboot the machine for and I got a failure with fsck trying to check that volume (I had put a 2 in the 6th field of the fstab which I probably should have put a 0) so I got the system booted by appending fastboot to the grub line so it wouldn't try to check the volume. I edited /etc/fstab and changed the 2 to a 0 and now the system boots.

All that to say that when the system boots it will not mount the volume. /dev/sda1 does not exist in the /dev directory and looking at dmesg I'm seeing sda: unknown partition table.

Not sure where to go from here. Help!

Rich
 
Old 10-20-2014, 12:08 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,225

Rep: Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349
More details on your boot and other pertinent information can be obtained by running the bootinfoscript downloaded from the site below and posting the results.txt file.
http://sourceforge.net/projects/bootinfoscript/
 
Old 10-20-2014, 12:24 PM   #3
rwebb616
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Bootinfo Script Results:


Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

vg_backup-lv_root': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''

vg_backup-lv_home': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

vg_backup-lv_swap': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________
Note: sector size is 4096 (not 512)

Disk /dev/sda: 3000.6 GB, 3000592977920 bytes
255 heads, 63 sectors/track, 45600 cylinders, total 732566645 sectors
Units = sectors of 1 * 4096 = 4096 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 4,294,967,295 4,294,967,295 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 2,639,306,751 2,639,304,704 Data partition (Windows/Linux)

"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/cciss/c1d0p1 46827432-53c2-4041-a57b-dfb57110db00 ext4
/dev/cciss/c1d0p2 0qb1IG-oodK-12oB-Qxf9-STr7-SD9s-qm7d49 LVM2_member
/dev/mapper/vg_backup-lv_home 901d0985-388d-4172-a2f5-4df5fa5bd223 ext4
/dev/mapper/vg_backup-lv_root cb4aa8de-2555-4b9b-bc43-12ebc698d0a8 ext4
/dev/mapper/vg_backup-lv_swap 3abbd3bf-f327-4ac9-9931-14599f83c4f8 swap

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
vg_backup-lv_home
vg_backup-lv_root
vg_backup-lv_swap

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/cciss/c1d0p1 /boot ext4 (rw)
/dev/mapper/vg_backup-lv_home /home ext4 (rw)
/dev/mapper/vg_backup-lv_root / ext4 (rw)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda1


Unknown BootLoader on vg_backup-lv_root'


Unknown BootLoader on vg_backup-lv_home'


Unknown BootLoader on vg_backup-lv_swap'



=============================== StdErr Messages: ===============================

hexdump: /dev/sda1: No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/sda1: No such file or directory
hexdump: /dev/sda1: Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_backup-lv_root': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_backup-lv_root': No such file or directory
hexdump: /dev/mapper/vg_backup-lv_root': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_backup-lv_home': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_backup-lv_home': No such file or directory
hexdump: /dev/mapper/vg_backup-lv_home': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_backup-lv_swap': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_backup-lv_swap': No such file or directory
hexdump: /dev/mapper/vg_backup-lv_swap': Bad file descriptor
mdadm: No arrays found in config file or automatically

---------- Post added 10-20-14 at 01:25 PM ----------

Bootinfo Script Results:


Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

vg_backup-lv_root': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''

vg_backup-lv_home': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

vg_backup-lv_swap': ____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________
Note: sector size is 4096 (not 512)

Disk /dev/sda: 3000.6 GB, 3000592977920 bytes
255 heads, 63 sectors/track, 45600 cylinders, total 732566645 sectors
Units = sectors of 1 * 4096 = 4096 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 4,294,967,295 4,294,967,295 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 2,639,306,751 2,639,304,704 Data partition (Windows/Linux)

"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/cciss/c1d0p1 46827432-53c2-4041-a57b-dfb57110db00 ext4
/dev/cciss/c1d0p2 0qb1IG-oodK-12oB-Qxf9-STr7-SD9s-qm7d49 LVM2_member
/dev/mapper/vg_backup-lv_home 901d0985-388d-4172-a2f5-4df5fa5bd223 ext4
/dev/mapper/vg_backup-lv_root cb4aa8de-2555-4b9b-bc43-12ebc698d0a8 ext4
/dev/mapper/vg_backup-lv_swap 3abbd3bf-f327-4ac9-9931-14599f83c4f8 swap

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
vg_backup-lv_home
vg_backup-lv_root
vg_backup-lv_swap

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/cciss/c1d0p1 /boot ext4 (rw)
/dev/mapper/vg_backup-lv_home /home ext4 (rw)
/dev/mapper/vg_backup-lv_root / ext4 (rw)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda1


Unknown BootLoader on vg_backup-lv_root'


Unknown BootLoader on vg_backup-lv_home'


Unknown BootLoader on vg_backup-lv_swap'



=============================== StdErr Messages: ===============================

hexdump: /dev/sda1: No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/sda1: No such file or directory
hexdump: /dev/sda1: Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_backup-lv_root': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_backup-lv_root': No such file or directory
hexdump: /dev/mapper/vg_backup-lv_root': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_backup-lv_home': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_backup-lv_home': No such file or directory
hexdump: /dev/mapper/vg_backup-lv_home': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_backup-lv_swap': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/vg_backup-lv_swap': No such file or directory
hexdump: /dev/mapper/vg_backup-lv_swap': Bad file descriptor
mdadm: No arrays found in config file or automatically
 
Old 10-20-2014, 02:53 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,225

Rep: Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349
I'm surprised that sda1 id "unknown filesystem" as that should be a separate boot partition. My understanding is that if you are using GPT with a UEFI system, you need a separate EFI partition and if you are using it without EFI, you need Grub in the MBR and a separate BIOS boot partition. I don't use UEFI boot and am not familiar with LVM so hopefully someone else will come along.
 
Old 10-20-2014, 02:57 PM   #5
rwebb616
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Not booting from it. This is a HP proliant server with a smart array (cciss) with an internal array. The sda1 is the removable USB drive which is gpt partition table and formated with ext4 fs. Problem is I can't access it now for whatever reason and I'm not sure why.

EDIT: Also this system is not UEFI.

Rich

Last edited by rwebb616; 10-20-2014 at 03:02 PM.
 
Old 10-20-2014, 03:59 PM   #6
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 614
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Quote:
Originally Posted by rwebb616 View Post
Hi,

Not entirely new to Linux but this is likely a newbie question for most of you other gurus out there. I have a 3TB USB drive for which I had used gparted and changed it to GPT and then had formated it ext4. I had gone through the work of finding out how to properly align it however the command that I used slips my mind right now. I know that I did properly align it when I used gparted. That being said, I used blkid to find the UUID of the volume and added a line to /etc/fstab to mount it on startup. Everything was working great. I had an issue that I had to reboot the machine for and I got a failure with fsck trying to check that volume (I had put a 2 in the 6th field of the fstab which I probably should have put a 0) so I got the system booted by appending fastboot to the grub line so it wouldn't try to check the volume. I edited /etc/fstab and changed the 2 to a 0 and now the system boots.

All that to say that when the system boots it will not mount the volume. /dev/sda1 does not exist in the /dev directory and looking at dmesg I'm seeing sda: unknown partition table.

Not sure where to go from here. Help!

Rich
When you type
Code:
cat /etc/fstab
what does it say?

Might want to give this one a look:
http://www.linuxquestions.org/questi...ab-4175463357/

EDIT: If you can boot it from a live USB/CD and upload your fstab file, that'd be great. It may have gotten borked while saving.

Last edited by Ihatewindows522; 10-20-2014 at 04:01 PM.
 
Old 10-20-2014, 04:29 PM   #7
rwebb616
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Here is fstab:


#
# /etc/fstab
# Created by anaconda on Tue Jul 29 15:48:08 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_backup-lv_root / ext4 defaults 1 1
UUID=46827432-53c2-4041-a57b-dfb57110db00 /boot ext4 defaults 1 2
/dev/mapper/vg_backup-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_backup-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=cbfd6352-07e5-4987-b062-1411d55e2799 /backup/alwayson ext4 defaults 0 0


The last line was the line I had used to mount that drive. Right now I can't get any UUID for that drive when using blkid.

Rich
 
Old 10-20-2014, 05:15 PM   #8
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 614

Rep: Reputation: 142Reputation: 142
closes stables door after horse has bolted...but, I don't suppose you kept a copy of your old fstab which you could revert to?

How about commenting out the last line of fstab to see whether that is the cause of your problems? I normally try a
Quote:
sudo mount -a
to ensure I can mount before rebooting.

Just a few random thoughts.
 
Old 10-20-2014, 06:02 PM   #9
rwebb616
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
The only thing that I changed was the last 0 in the 6th field position on the last line... it was 2 instead of 0 in which it makes fsck check the filesystem upon boot. The error that it gave is it couldn't locate the filesystem with that UUID so fsck failed and hence halted the boot process.

Since that UUID doesn't exist that line will do nothing.

I think this problem is more circling around the issue that the drive is GPT and the partition is > 2TB.

Anyone have any clues about this?

Rich
 
Old 10-20-2014, 08:56 PM   #10
rwebb616
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Could this be part of my problem? :

[root@backup ~]# parted /dev/sda
Warning: Device /dev/sda has a logical sector size of 4096. Not all parts of GNU Parted support this at the moment, and the working code is HIGHLY EXPERIMENTAL.

I get this message when going into Parted. When trying to print the partition table I get:

(parted) p
Error: /dev/sda: unrecognised disk label

I read something somewhere about 4k sectors...

Rich
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
3TB external drive inaccessible (recognized as only 2TB) MacSvensson Linux - Hardware 3 09-11-2014 03:07 PM
Trying to recover data from Hitachi 3TB external drive HELP ME! tcpdumper Linux - Software 12 12-19-2012 06:54 PM
3TB External USB drive LOLobo Slackware 3 09-08-2012 03:27 PM
[SOLVED] Tried to Ext3 a 3TB drive, now grub can't find the kernel Centos 5.6 Raid 1 wagonlips Red Hat 4 06-25-2011 01:07 AM
3tb filesystem i have to create in wd usb external hdd and to be mount in Rhel5 mazhar07 Linux - Newbie 3 04-01-2011 01:46 AM


All times are GMT -5. The time now is 12:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration