fsck entire hard drive?


 
Thread Tools Search this Thread
Operating Systems Solaris fsck entire hard drive?
# 1  
Old 04-14-2011
fsck entire hard drive?

ho do you check filesystem on entire hard disk?
# 2  
Old 04-14-2011
how is your layout? what kind of filesystem? what is "df -k" output?
# 3  
Old 04-14-2011
well the whole story is long and offtopic. but here goes; we have this SPARC computer running Solaris10. it has been running for several years 24/7 with no RAID or backup.
so we made dd image of whole 72Gb hdd. now we wish to test the image, check filesystem integrity.
first try is loopback mount in linux. but that showed only first partition and some errors.
next, converted it to .vdi and tried FreeBSD and Solaris(x86) in virtualbox.
.vdi file is a lot smaller (about 20Gb, probably due to being dynamic and hdd mostly empty)
Solaris needed devfsadm to register the image as second hdd, but after that it could not see partition table at all.

how to test it?
# 4  
Old 04-14-2011
How did you create the dd image ?
UFS isn't compatible between SPARC and x86 because of big vs little endian hardcoded drivers as far as Solaris is concerned.
Moreover, a SPARC is laying out its slices directly on the whole disk while on x86, a dedicated primary partition is used instead.
# 5  
Old 04-14-2011
we took the hdd out and connected it to SCSI card on Linux PC.
there must be a way to check it on PC. If I split the file into slices, perhaps Linux can loopmount other SPARC partitions?
but still need some way to fsck it.
are you implying that no OS in virtualbox could handle SPARC partitiontable?
# 6  
Old 04-14-2011
Quote:
Originally Posted by orange47
If I split the file into slices, perhaps Linux can loopmount other SPARC partitions?
You would have to extract the vtoc fields and compute the slice offset, that's indeed doable but not straightforward.
Quote:
but still need some way to fsck it.
Why do you want to fsck it ?
Quote:
are you implying that no OS in virtualbox could handle SPARC partitiontable?
Solaris won't but Linux might be able to access the partition table (precisely vtoc) and then the file systems but your experience shows it doesn't works well. I strongly doubt FreeBSD, which uses a different UFS format, has any Solaris UFS support.
# 7  
Old 04-14-2011
The easiest way to check out the contents of the disk is simply to put it into another SPARC box as a non-boot disk.

Anything else is pretty much impossible. Solaris x86 won't read the VTOC, nor do I think there's any Linux support for reading SPARC VTOCs.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

How to move the entire system to a new larger drive?

Hi, I have a problem again and I hope that someone on this forum will help me in solving it. My English is weak, but I'll try to describe it clearly. I have an old computer ( HP B180) with HP-UX 10.20. I've done the hard disk image using G4L and replaced the drive. Old drive has 4.3 GB and 9.1... (7 Replies)
Discussion started by: ftwojtek
7 Replies

2. Red Hat

Kernel panic after hard reboot and fsck

Could you please help with problem with megaraid controller and Dell PowerEdge 2850, all that I can see on thi screenshot: All drives successfuly passed verifing from LSI controllers (Ctrl+A at startup), also I tried to boot from rescue llive cd and mount all the morrored drives and check... (22 Replies)
Discussion started by: nikkadim
22 Replies

3. SCO

Make a Copy Entire Hard Disk

Dear All, I have a standalone desktop with SCO Openserver V 5, this is used to control a machine with custom written software. The problem is that the machine manufacturer has closed shop (bankruptcy) and there is no support on software. As a precaution I would want to make a complete backup of... (3 Replies)
Discussion started by: iqbal_siddiqui
3 Replies

4. Filesystems, Disks and Memory

Hard Drive Temperature?

Hi, I just set up a raid Z array in solaris xpress and I notice that the drives feel pretty damn hot. I use speedfan to monitor the temperatures of the hard drives in XP. Is there a similar program for solrais? I assume there would be since the drives all have temp sensors in them, but I... (2 Replies)
Discussion started by: ciscocbee
2 Replies

5. Solaris

wiping hard drive

I'm looking for a utility that will wipe data clean from a Solaris hard drive and make the data unreadable and unrecoverable. Any suggestions? Does SUN have something? (3 Replies)
Discussion started by: dangral
3 Replies

6. Filesystems, Disks and Memory

The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive

Hi I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies

7. UNIX for Dummies Questions & Answers

Trying to copy old hard drive to new hard drive.

:confused: ........I have a new hard drive and I need to copy ALL info from the old to the new. I would like to use the dd command. I know the command is as follows...... dd if=/dev/rdsk/c1t1d0s0 of=/dev/rdsk/???????? Where I have the question marks is the problem. How do I find out what the... (4 Replies)
Discussion started by: shorty
4 Replies

8. UNIX for Advanced & Expert Users

reading the hard drive

I have suns machine that holds two hard drives. I only used one. I tryed to make a lan network with my windows xp. When I tryed to restart the machine it wanted to a password. when before I just typed root to log in. So i edited the etc dir. big mistake. So now the machine will not read the hard... (2 Replies)
Discussion started by: victbla
2 Replies

9. UNIX for Dummies Questions & Answers

I Want To Automount My Hard Drive!!!

:confused: Im as newbie as they come....... I just loaded Red Hat 8.0 on my computer. I have a second hard drive that i reformatted with a Fat32 so I could share it with my XP and Linux partions....... I have like 4000 mp3's on it and i would like to get it to auto mount when Linux boots....? Or... (5 Replies)
Discussion started by: mynameiskyle
5 Replies
Login or Register to Ask a Question

Featured Tech Videos