Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 20:25
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
My USB HD failed; all my puppy stuff unreachable
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
tallboy


Joined: 21 Sep 2010
Posts: 447
Location: Oslo, Norway

PostPosted: Mon 29 Apr 2013, 15:17    Post_subject:  My USB HD failed; all my puppy stuff unreachable  

HELP!
My old machinery is falling apart! Shocked I need immediate assistance.

I have a LaCie 160Gb USB harddisk, that has been acting strange lately, and I have managed to partly back up some of it. The HD has one USB connection, which is sufficient when running from a USB2 port, and one power connection which can be used with an extra USB connector or a powersupply, when running from a USB1 port. The HD is a Seagate 2.5" SATA unit. The electronics inside the box failed, and the HD would run irregular or not start at all.

I have 3 partitions formatted as ext2 or ext3, with all my puppy stuff and genealogy bases on it, and 1 as vfat.

I removed the HD and had it tested in a Windows mahcine in a PC repair shop (I had no cables myself), it found all partitions, and it was declared OK.

I bought an external 2.5"/3.5" IDE/S-ATA to USB adapter, fired up my puppy, and connected the HD. The HD's partitions are not recognized. The only symbol showing, is for the /mnt/sdc4 partition.

When running gparted, all file systems are unknown, see image below. But when hovering the mouse over the sdc4 symbol on the desktop, it says filesystem vfat, 4.7 Gb.

I have not done anything else yet, I hope someone with first hand knowledge can advice me on what to do, so I don't screw up more.
Is there help in running fschk?
Why is there 2.49 Mb unallocated diskspace?
Should I risk Gparted running a Data Rescue Attempt?
Are there better tools for the job?

tallboy
gparted-view.jpg
 Description   
 Filesize   45.17 KB
 Viewed   288 Time(s)

gparted-view.jpg

Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 29 Apr 2013, 16:50    Post_subject:  

Unallocated are the bits that did not fit into a partition at setup time .
gparted uses or is like parted commandline , which is a very rough-size partitioning tool in my experience .
fdisk is much more accurate, but dependent on fdisk version or busybox fdisk the default values cause some unallocated space
ie . partition starts at 100GB but the default puts it some 1-4KB after the appropriate cylinder, sector or head ,
which gives the opportunity to put in stage1_5 grub files after the mbr of the partition without writing into the superblock of the partition .

I am hoping that someone would correct me andor describe it better .

*

For your USB HDD : I think that USB is risky.
USB tend to be untight in my experience .
Some vibrating push against the table and the USB disconnects for a microsecond , harming the filesystem if mounted at that time .

Had such too with an USB adaptor towards IDE HDD . Was able to rescue things with teskdisk copy function i think , but was no fun to use testdisk to me . The OS keeping running is best to rescue things. Things get worse if you poweroff or reboot in my few experiences .

*

Please open /proc/partitions and /proc/diskstats to look if they are mentioned there . udevd might have deleted the partition nodes in /dev/ directory , too ! Check that also !
Back to top
View user's profile Send_private_message Visit_website 
tallboy


Joined: 21 Sep 2010
Posts: 447
Location: Oslo, Norway

PostPosted: Mon 29 Apr 2013, 17:24    Post_subject:  

Thank you Karl.
As you see from the images below, both /proc/partitions and /proc/diskstats are present, and they are present in /dev also, and fdisk show them also.

tallboy

the output of fdisk -l:
# fdisk -l

Disk /dev/sda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 122 979933+ 82 Linux swap / Solaris
/dev/sda2 123 1035 7331840 83 Linux
/dev/sda3 * 1035 4871 30809088 83 Linux

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 243 1951866 82 Linux swap / Solaris
/dev/sdb2 * 244 5354 41054107+ 83 Linux
/dev/sdb3 5355 11190 46877670 83 Linux
/dev/sdb4 11191 14593 27334597+ 83 Linux

Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 4863 39062016 83 Linux
/dev/sdc2 4864 9726 39062047+ 83 Linux
/dev/sdc3 9727 18844 73240335 83 Linux
/dev/sdc4 18845 19457 4923922+ b W95 FAT32
proc_partitions.jpg
 Description   
 Filesize   7.14 KB
 Viewed   252 Time(s)

proc_partitions.jpg

proc_diskstats.jpg
 Description   
 Filesize   21.55 KB
 Viewed   251 Time(s)

proc_diskstats.jpg


_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 29 Apr 2013, 18:21    Post_subject:  

Then I would run fsck on the ext* partitions . BUT fsck -n -f -v /dev/sdc1 : -n for not doing anything to get a first overview . Windows chkdsk and Linux fsck are pretty similar leaving lots of files renamed to numbers .
Horrible to get them renamed back to their original names Very Happy
Back to top
View user's profile Send_private_message Visit_website 
tallboy


Joined: 21 Sep 2010
Posts: 447
Location: Oslo, Norway

PostPosted: Mon 29 Apr 2013, 19:59    Post_subject:  

Not much luck with that, Karl. I never used Windoze, but I have an old HD with Win XP on it, somewhere Rolling Eyes , I'll see what happens when I run it.

# fsck -n -f -v /dev/sdc1
e2fsck 1.41.14 (22-Dec-2010)
fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc1
Could this be a zero-length partition?

# fsck -n -f -v /dev/sdc2
e2fsck 1.41.14 (22-Dec-2010)
fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc2
Could this be a zero-length partition?

# fsck -n -f -v /dev/sdc3
e2fsck 1.41.14 (22-Dec-2010)
fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc3
Could this be a zero-length partition?

I tried with fsck.ext2 and fsck.ext3 also with same result.

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send_private_message 
Monsie


Joined: 01 Dec 2011
Posts: 633
Location: Kamloops BC Canada

PostPosted: Tue 30 Apr 2013, 01:51    Post_subject: My USB HD failed; all my puppy stuff unreachable  

Hi tallboy,

Quote:
Are there better tools for the job?



Here is an old thread regarding ddrescue which might also be a workable solution for you... Note that aragon compiled the PET in Puppy 4.3.1 but also provides a link to the source code if need be.

Monsie

_________________
My username is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.
Back to top
View user's profile Send_private_message 
Sylvander

Joined: 15 Dec 2008
Posts: 3463
Location: West Lothian, Scotland, UK

PostPosted: Tue 30 Apr 2013, 03:46    Post_subject:  

Here's my thread about my successful 1st use of ddrescue.
It did a great job; was easy to use even though at the beginning I knew nothing about how to get it to do stuff.
I was impressed.
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Tue 30 Apr 2013, 04:32    Post_subject:  

Code:
e2fsck -f -n -v -b 32768 /dev/sdc1

Had googled a bit . Normally IIRC fsck tells you that you could try a backup superblock .

bash-3.00# dumpe2fs /dev/sda1 | grep -i backup | cut -f1 -d,
dumpe2fs 1.41.9 (22-Aug-2009)
Journal backup: inode blocks
Backup superblock at 32768
Backup superblock at 98304
Backup superblock at 163840
Backup superblock at 229376
Backup superblock at 294912
Backup superblock at 819200
Backup superblock at 884736
Backup superblock at 1605632
Backup superblock at 2654208
Backup superblock at 4096000
Backup superblock at 7962624
Backup superblock at 11239424

as a list of superblocks example for a 50GB partition of mine .

Dunno, since I knew it, it probably did not work that time .

Here is anotther thread : GParted has lost a partition. How to get it back?

Good Luck anyways !
Back to top
View user's profile Send_private_message Visit_website 
tallboy


Joined: 21 Sep 2010
Posts: 447
Location: Oslo, Norway

PostPosted: Tue 30 Apr 2013, 11:07    Post_subject:  

Thank you, guys.
I'll try out the suggestions, and report back.

An additional question: My PC has IDE bus, but the USB disc is SATA. The adapter is a dutch Konig 2.5"/3.5" IDE/S-ATA to USB2.0. I have a 4-port USB2.0 card with auto speed detection in the PC.
I cannot really see how, but could there be some limitations involved in reading from the SATA disk?

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0898s ][ Queries: 13 (0.0222s) ][ GZIP on ]