由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 求助, XFS盘出问题了。
相关主题
Virtual host的问题git真是耗内存啊。。。
[solved] virtualbox的问题,请教高手大虾不是说好了debian8今天发布么
ubuntu sudo PATH issue紧急求助lvm分区毁坏的问题
升到VBox4.0.4后升级不了 guest additionCentOS5.3 下xfs raid的问题
Google Chrome汉字乱码看来Oracle要搞死open source
rpm怎么用?谁能给科普一下linux下的文件格式?
Ununtu 下什么虚拟软件最好用??为什么我的XFS分区blocksize总是4K
我平时用linux发现麻烦的几件事针对XFS的zerofree?
相关话题的讨论汇总
话题: dev话题: lbblmm话题: bytes话题: 512话题: sdb
进入Linux版参与讨论
1 (共1页)
D**a
发帖数: 757
1
我的NAS突然之间就当机了, 好像是ROM或者FIRMWARE出了问题,HDD读不出了。 NAS是
个LINUX BASED的盒子,我把硬盘去了出来, 接到了我的VM上,现在是如下情况, 请
问该如何处理? HDD上是所有的照片和文档, 不能格式化。是下面那个1T的盘。
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.
lbblmm@lbblmm-VirtualBox:~$ xfs_repair
Usage: xfs_repair [options] device
Options:
-f The device is a file
-L Force log zeroing. Do this as a last resort.
-l logdev Specifies the device where the external log resides.
-m maxmem Maximum amount of memory to be used in megabytes.
-n No modify mode, just checks the filesystem for damage.
-P Disables prefetching.
-r rtdev Specifies the device where the realtime section resides.
-v Verbose output.
-c subopts Change filesystem parameters - use xfs_admin.
-o subopts Override default behaviour, refer to man page.
-t interval Reporting interval in minutes.
-d Repair dangerously.
-V Reports version and exits.
lbblmm@lbblmm-VirtualBox:~$ parted /dev/sdb
WARNING: You are not superuser. Watch out for permissions.
Error: Error opening /dev/sdb: Permission denied
Retry/Cancel? R
Error: Error opening /dev/sdb: Permission denied
Retry/Cancel? C
lbblmm@lbblmm-VirtualBox:~$ sudo parted /dev/sdb
[sudo] password for lbblmm:
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: Invalid partition table on /dev/sdb -- wrong signature 0.
Ignore/Cancel? I
Model: SAMSUNG HD103UJ (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 304MB 304MB primary ext3
2 304MB 814MB 510MB primary xfs
4 814MB 1000GB 999GB extended 《《《===
5 814MB 954MB 140MB logical linux-swap(v1)
(parted) quit
lbblmm@lbblmm-VirtualBox:~$ sudo xfs_repair /dev/sdb4
Phase 1 - find and verify superblock...
superblock read failed, offset 0, size 524288, ag 0, rval 1024
fatal error -- Invalid argument
lbblmm@lbblmm-VirtualBox:~$ sudo fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00008db7
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 12500991 6249472 83 Linux
/dev/sda2 12503038 16775167 2136065 5 Extended
/dev/sda5 12503040 16775167 2136064 82 Linux swap / Solaris
omitting empty partition (6)
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3da03419
Device Boot Start End Blocks Id System
/dev/sdb1 63 594404 297171 83 Linux
/dev/sdb2 594405 1590434 498015 83 Linux
/dev/sdb4 1590435 1953520064 975964815 5 Extended
《《《===
/dev/sdb5 1590498 1863539 136521 82 Linux swap / Solaris
x****s
发帖数: 921
2
sdb4 is an extension which contains sdb5,sdb6..etc
looks like your data partition is missing? it should have a sdb6..
for example, one of my disk:
Device Boot Start End Blocks Id System
/dev/sda1 63 58605119 29302528+ b W95 FAT32
/dev/sda2 58605120 839878199 390636540 83 Linux
/dev/sda3 * 839878200 1621151279 390636540 83 Linux
/dev/sda4 1621151341 2930272064 654560362 5 Extended
/dev/sda5 1621151343 2011787819 195318238+ 83 Linux
/dev/sda6 2011787883 2930272064 459242091 83 Linux
如果NAS用了RAID,那我就不知道了
D**a
发帖数: 757
3
any idea how to recover the sdb6? it is not a raid.

【在 x****s 的大作中提到】
: sdb4 is an extension which contains sdb5,sdb6..etc
: looks like your data partition is missing? it should have a sdb6..
: for example, one of my disk:
: Device Boot Start End Blocks Id System
: /dev/sda1 63 58605119 29302528+ b W95 FAT32
: /dev/sda2 58605120 839878199 390636540 83 Linux
: /dev/sda3 * 839878200 1621151279 390636540 83 Linux
: /dev/sda4 1621151341 2930272064 654560362 5 Extended
: /dev/sda5 1621151343 2011787819 195318238+ 83 Linux
: /dev/sda6 2011787883 2930272064 459242091 83 Linux

x****s
发帖数: 921
4
没什么经验,先把整个sdb dd 到新硬盘备份,然后google linux partition recovery/
scanner之类的吧试试

【在 D**a 的大作中提到】
: any idea how to recover the sdb6? it is not a raid.
1 (共1页)
进入Linux版参与讨论
相关主题
针对XFS的zerofree?Google Chrome汉字乱码
desktop 用XFS还是ext4?rpm怎么用?
Ubuntu下如何提高文件拷贝速度?Ununtu 下什么虚拟软件最好用??
Btrfs considered stable我平时用linux发现麻烦的几件事
Virtual host的问题git真是耗内存啊。。。
[solved] virtualbox的问题,请教高手大虾不是说好了debian8今天发布么
ubuntu sudo PATH issue紧急求助lvm分区毁坏的问题
升到VBox4.0.4后升级不了 guest additionCentOS5.3 下xfs raid的问题
相关话题的讨论汇总
话题: dev话题: lbblmm话题: bytes话题: 512话题: sdb