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 10-27-2006, 11:11 AM   #16
padeco
Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Ubuntu 6.06
Posts: 34

Original Poster
Rep: Reputation: 15

well, i am not sure since it was about 2 years ago that i added this HD.
i came accross an example on the net, as follows (what is the risk of changing ID? do i lose any data?). the concept is as follows: nothing from my system
[root]# fdisk /dev/hdb
Command (m for help): m (Enter the letter "m" to get list of commands)
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Partition number (1-4): 1
First cylinder (1-2654, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-2654, default 2654):
Using default value 2654

Command (m for help): p

Disk /dev/hdb: 240 heads, 63 sectors, 2654 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 2654 20064208+ 5 Extended

Command (m for help): w (Write and save partition table)

[root]# mkfs -t ext3 /dev/hdb1
 
Old 10-27-2006, 12:21 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I messed you up again... The partition ID is independent of filesystem and so you will not lose data. However, you should change it back to 83. An extended partition is a container for logical partitions and you might be confused if want to add additional partitions in the future.
 
Old 10-27-2006, 05:25 PM   #18
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Try
Code:
sudo file -sL /dev/hdb1
 
Old 10-27-2006, 07:04 PM   #19
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Install gparted and have it guess the partition boundaries and type. The utility gparted should guess the partition boundaries and type with out any problems if it is primary partition. If the partitions are extended/logical, it is going to have a hard time guessings those partitions.

I suggest using cfdisk instead of fdisk. Sometimes fdisk does things incorrectly. Also the manual for fdisk recommends that you first use cfdisk to create or delete partitions.

After you have created the partition, use hdparm -z to re-scan the partition geometry.

Hopefully, when Fedora mounts NTFS, it mounted as read-only which should always be default even though some people have not experience any corruption with the new NTFS support code.

If you do not mind using VMware Workstation or VMware Server, you can create a LIVE Windows CD/DVD to access files within Linux.
 
Old 10-27-2006, 07:55 PM   #20
padeco
Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Ubuntu 6.06
Posts: 34

Original Poster
Rep: Reputation: 15
thanks for all the info. here is what i gos when i attempted what syg00 suggested.

:~$ sudo file -sL /dev/hdb1
Password:
/dev/hdb1: Linux rev 1.0 ext3 filesystem data (needs journal recovery) (errors) (large files)

when i saw the ext3, then i attempted to mount that as

~$ sudo mount -t ext3 /dev/hdb1 /mnt/disk2
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
 
Old 10-27-2006, 08:35 PM   #21
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You said you have given up on FC - do you actually want the data on this partition ???.
If not, just mkfs on it - needs to be unmounted for that anyway. Pick a fs that suits - personally I use ext3 for most.
 
Old 10-27-2006, 08:56 PM   #22
padeco
Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Ubuntu 6.06
Posts: 34

Original Poster
Rep: Reputation: 15
hy sig00,
yes indeed, i have given up fc. however, the files i have on the back hd are badly needed. i cannot give it up at all. so, do you have any idea as to how i can access it. it is a linux partition (one only) and as far as i can see, from the post above, it is an ext3.

mounting the windows partition, ntfs, was no worries. this back up file which is difficuult. i installed gparted (as electro suggested), it identified the back up hd as /dev/hdb1 ext3, however it could not access it either.

thanks
 
Old 10-27-2006, 09:20 PM   #23
padeco
Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Ubuntu 6.06
Posts: 34

Original Poster
Rep: Reputation: 15
hy sgi00,
i forgot to mention, the files contained in the bkup hd are such as pdf, doc, mp3 etc.

do you think there might be a problem, since it was used with fc? i hope not!
thanks
padeco
 
Old 10-27-2006, 10:12 PM   #24
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Mmmm - normally I would just suggest fsck with an alternate superblock(s). Although I have found (physically) damaged disks that I couldn't do anything with.

I wonder if FC had this disk as part of an LVM group. I hesitate to suggest any recovery options as I've always stayed away from LVM - because of the way I work, not any intrinsic problem with LVM. Hopefully someone like haertig will pass by and offer some insight.

Other than that you might be in need of some forensic software - foremost maybe; it seems to be avalable for download under Ubuntu.
Will take (a *lot*) of time, and probably disk space. I always allow twice as much for working (disk) storage when doing recovery.
 
Old 10-27-2006, 11:06 PM   #25
padeco
Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Ubuntu 6.06
Posts: 34

Original Poster
Rep: Reputation: 15
hy syg00

does this make any sense to you?
/$ dmesg | tail
[17252498.096000] hdb: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
[17252498.096000] hdb: task_in_intr: error=0x40 { UncorrectableError }, LBAsect=79, high=0, low=79, sector=79
[17252498.096000] ide: failed opcode was: unknown
[17252498.096000] end_request: I/O error, dev hdb, sector 79
[17252498.096000] EXT3-fs: can't read group descriptor 1
[17254351.832000] hdb: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
[17254351.832000] hdb: task_in_intr: error=0x40 { UncorrectableError }, LBAsect=79, high=0, low=79, sector=79
[17254351.832000] ide: failed opcode was: unknown
[17254351.832000] end_request: I/O error, dev hdb, sector 79
[17254351.832000] EXT3-fs: can't read group descriptor 1
:/$

many thanks. i hope i have not lost the info.

padeco
 
Old 10-28-2006, 12:26 AM   #26
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Sounds like a dead drive to me.
You could try the forensics, but I wouldn't hold out much hope.
 
Old 10-30-2006, 07:32 PM   #27
padeco
Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Ubuntu 6.06
Posts: 34

Original Poster
Rep: Reputation: 15
hi there,
this is just an update to let you guys know that the problem was fixed. it was an error related to damaged superblock on the hdb1. so, i had to follow the steps from http://www.brunolinux.com/04-The_Fil...uperblock.html (very nice site for beginners on linux).

after a long and tortuous many long hours and late nights the issue is solved. now ubuntu loads in no time, access to hdb1 is done in a flash. once again, thank you all for the time and information given, every one was of assistance and helped in some way.

thanks,
padeco
 
  


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
mounting second partition on Linspire drive abrand888 Linspire/Freespire 2 05-06-2005 11:40 AM
Mounting partition on Linux drive with XP. moistTowelette Linux - Hardware 6 04-24-2005 11:30 PM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 06:23 PM
Mounting a NTFS Drive or Partition! ubern00b Linux - Software 3 04-22-2004 04:37 AM
help mounting 2nd partition on WinXP drive harnadem Linux - Newbie 2 03-21-2004 09:38 AM

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

All times are GMT -5. The time now is 11:24 PM.

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