sub mesa :
pschlief: that's a nice method, thanks for sharing.
It appeared to me that jbeigh was very close to recovering his data (would be a shame if he didn't - after all trouble). The only thing that didn't work in the end was mounting the XFS volume from a separate physical disk. This is likely because the disk is part of a RAID-array, and the /dev/md0 device is created.
I am curious however, it should have just worked:
1. install xfsprogs as it uses the XFS filesystem
2. check with Partition Editor (System->Administration->GParted)
3. try to mount, click Places->Home; then click ".. GB Filesystem" on the left.
Anyone who still needs help with this; if the tips in this thread do not help; please post all your data and i'll have a look.
Hi sub mesa
Thanks for all your work here! I too am having trouble with a lacie 2 big drive specifically accessing the data on the hard drive. I have removed the hard drive from the lacie box and pluged it directly into my motherboard via sata cable. I have downloaded the latest ubuntu OS and I am booting that from a USB memory key.
I have followed your post with alberto but have not had any luck accessing my drive. It is present in the system and as you can see below it is the sdc drive with?10 partitions. None are accessible to me. Not sure if the install error with mdadm is relevant or the fact that I could not create a md0 file (actually I really dont have any idea what that means either! lol).
I don't have any experience with ubuntu except for with my recent problem with data access to this drive. Looks like all the info points to umbutu and the mdadm program but I am really not sure where to go from here.
Any help would be greatly aprreciated!
I bought the drive to have a central space where if one drive went down I had a back up with the raid 1 configuration. little did I know that box failure leads to much sleepless research!
Thanks
Shane
😱
ubuntu@ubuntu:~$ sudo apt-get install mdadm
Reading package lists... Done
Building dependency tree
Reading state information... Done
mdadm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 159 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up initramfs-tools (0.98.1ubuntu6) ...
update-initramfs: deferring update (trigger activated)
cp: cannot stat `/vmlinuz': No such file or directory
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mdadm:
mdadm depends on initramfs-tools (>= 0.85eubuntu24); however:
Package initramfs-tools is not configured yet.
dpkg: error processing mdadm (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
initramfs-tools
mdadm
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@ubuntu:~$ # fdisk -l
ubuntu@ubuntu:~$ fdisk -l
ubuntu@ubuntu:~$ fdisk-l
fdisk-l: command not found
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 2002 MB, 2002780160 bytes
62 heads, 62 sectors/track, 1017 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbb0eb409
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sda1 ? 896832 1382432 933323145+ 66 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(1010, 16, 43) logical=(896831, 25, 13)
Partition 1 has different physical/logical endings:
phys=(906, 97, 3) logical=(265114, 11, 23)
Partition 1 does not end on cylinder boundary.
/dev/sda2 ? 1 1 0 72 Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(101, 116, 32) logical=(0, 41, 32)
Partition 2 has different physical/logical endings:
phys=(370, 114, 47) logical=(0, 41, 31)
Partition 2 does not end on cylinder boundary.
Partition table entries are not in disk order
Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbb14e257
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2 13 25497 204697600 7 HPFS/NTFS
/dev/sdb3 25497 57368 256000000 7 HPFS/NTFS
/dev/sdb4 57368 91202 271771648 7 HPFS/NTFS
Disk /dev/sdc: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0b5289df
Device Boot Start End Blocks Id System
/dev/sdc1 1 125 1004031 5 Extended
/dev/sdc2 126 91201 731567970 83 Linux
/dev/sdc5 1 16 128457 82 Linux swap / Solaris
/dev/sdc6 17 17 8001 83 Linux
/dev/sdc7 18 18 8001 83 Linux
/dev/sdc8 19 40 176683+ 83 Linux
/dev/sdc9 41 124 674698+ 83 Linux
/dev/sdc10 125 125 8001 83 Linux
ubuntu@ubuntu:~$ examine /dev/sdc
examine: command not found
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc
mdadm: cannot open /dev/sdc: Permission denied
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc1
mdadm: cannot open /dev/sdc1: Permission denied
ubuntu@ubuntu:~$ ^C
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc2
mdadm: cannot open /dev/sdc2: Permission denied
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc3
mdadm: cannot open /dev/sdc3: No such file or directory
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc4
mdadm: cannot open /dev/sdc4: No such file or directory
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc5
mdadm: cannot open /dev/sdc5: Permission denied
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc6
mdadm: cannot open /dev/sdc6: Permission denied
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc7
mdadm: cannot open /dev/sdc7: Permission denied
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc8
mdadm: cannot open /dev/sdc8: Permission denied
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc9
mdadm: cannot open /dev/sdc9: Permission denied
ubuntu@ubuntu:~$ mdadm --examine /dev/sdc10
mdadm: cannot open /dev/sdc10: Permission denied
ubuntu@ubuntu:~$ mdadm -examine/dev/sdc9
mdadm: -e does not set the mode, and so cannot be the first option.
ubuntu@ubuntu:~$ mdadm --assemble --run /dev/md0 /dev/sdc9
mdadm: failed to create /dev/md0
ubuntu@ubuntu:~$ sudo mdadm --assemble --run /dev/md0 /dev/sdb2
mdadm: cannot open device /dev/sdb2: Device or resource busy
mdadm: /dev/sdb2 has no superblock - assembly aborted
ubuntu@ubuntu:~$ sudo mdadm --assemble --run /dev/md0 /dev/sdb2
mdadm: cannot open device /dev/sdb2: Device or resource busy
mdadm: /dev/sdb2 has no superblock - assembly aborted
ubuntu@ubuntu:~$ sudo mdadm --assemble --run /dev/md0 /dev/sdb2
mdadm: cannot open device /dev/sdb2: Device or resource busy
mdadm: /dev/sdb2 has no superblock - assembly aborted
ubuntu@ubuntu:~$ fdisk -l/dev/sdc
fdisk: invalid option -- '/'
Usage:
fdisk [options] <disk> change partition table
fdisk [options] -l <disk> list partition table(s)
fdisk -s <partition> give partition size(s) in blocks
Options:
-b <size> sector size (512, 1024, 2048 or 4096)
-c switch off DOS-compatible mode
-h print help
-u <size> give sizes in sectors instead of cylinders
-v print version
-C <number> specify the number of cylinders
-H <number> specify the number of heads
-S <number> specify the number of sectors per track
ubuntu@ubuntu:~$ fdisk -l /dev/sdc
Cannot open /dev/sdc
ubuntu@ubuntu:~$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0b5289df
Device Boot Start End Blocks Id System
/dev/sdc1 1 125 1004031 5 Extended
/dev/sdc2 126 91201 731567970 83 Linux
/dev/sdc5 1 16 128457 82 Linux swap / Solaris
/dev/sdc6 17 17 8001 83 Linux
/dev/sdc7 18 18 8001 83 Linux
/dev/sdc8 19 40 176683+ 83 Linux
/dev/sdc9 41 124 674698+ 83 Linux
/dev/sdc10 125 125 8001 83 Linux
ubuntu@ubuntu:~$ sudo mdadm --stop/dev/md0
mdadm: unrecognized option '--stop/dev/md0'
Usage: mdadm --help
for help
ubuntu@ubuntu:~$ mount
aufs on / type aufs (rw)
none on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
/dev/sda on /cdrom type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sdb2 on /media/6880C42680C3F898 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdb3 on /media/9CBED170BED14384 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdb4 on /media/7A8029378028FB71 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
ubuntu@ubuntu:~$ sudo mdadm --detail/dev/md0
mdadm: unrecognized option '--detail/dev/md0'
Usage: mdadm --help
for help
ubuntu@ubuntu:~$ sudo mount -t xfs -r /dev/sdc2mnt/xfs
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
ubuntu@ubuntu:~$ sudo mdadm --assemble --run /dev/md0 dev/sdc2
mdadm: cannot open device dev/sdc2: No such file or directory
mdadm: dev/sdc2 has no superblock - assembly aborted
ubuntu@ubuntu:~$