Ubuntu :: Simulate Bad Block Or Sector On Drive?

Feb 15, 2010

I want to simulate a bad block or sector on a drive or even a virtual drive image to test my data recovery distro. I wish I would have bookmarked when I read about it before. It was some type of low level command, I remember something about scsi subsystem or kernel thingabob.

View 3 Replies


ADVERTISEMENT

General :: After Writing Successfully A NAND Block Is This Reliable Ar Reading As A NOR Sector?

Apr 7, 2011

Am interested in using MT29F2G08AABWP NAND Flash memory for a new embedded design and I couldn�t find a clear specification regarding how reliable is the NAND flash vs. NOR for reading operation.If I program successfully a NAND block, read back and verify successfully the information and never erase or program that particular block again, can I assume that block will remain a good block and the information written there is safe for READING, roughly as safe as a NOR sector?

View 1 Replies View Related

Ubuntu :: Simulate A Floppy Drive With User Read Write

Sep 17, 2010

I have a computer with no floppy drive (x64 ubuntu lucid installed) I have a program (wine windows xp) that will only save data and export data from/to a floppy drive. I found information on setting up an emulated floppy drive. i.e.

sudo dd bs=512 count=2880 if=/dev/zero of=imagefile.img
sudo mkfs.msdos imagefile.img
sudo mount imagefile.img /media/floppy -o loop

I modified the winecfg to include under the drive section A: /media/floppy. Problem is I cannot write to the drive as a normal user. I have tried everything I know but only root can read write to the drive. Is there someway to set up this emulated floppy to allow me as a user to write and read contents.

View 1 Replies View Related

Hardware :: Advanced Format 4k Sector Drive With LVM

Nov 24, 2010

So I finally bought an advanced format drive, the 2 TB Samsung f4. I will be using it on my slackware box, running slackware 12.2 with kernel 2.6.27-7. I intend to format the drive by hand with fdisk and start the first partition on sector 2048, or perhaps boot a livecd and format it with a newer version of fdisk or parted that will natively partition this drive correctly. My real question is, do I have to do anything special to add this drive to an existing LVM volume group? I'm thinking no, since LVM basically just breaks all your data into 4 MB chunks and spreads them across the pool of partitions you've defined, but I've found many conflicting opinions from searching google. To simplify things, I'm not using RAID of any sort, neither hardware nor mdraid.

View 2 Replies View Related

Hardware :: Change USB Flash Drive Sector Size?

Mar 5, 2011

It's many years since introducing of installation of Linux live CDs like Ubuntu from USB flash drives. I never been able to use such services on my 2GB KingStone flash drive, because it's sector size is 2048 and the famous linux error: "Not all ... support more than 512B sector size". Although I formatted my flash drive many times and even erased the whole partition table and cleared all flash contents with 0xFF values but it still has sector size of 2048.I want to know where the hell those softwares like "USB Startup Disk Creator" in ubuntu and kubuntu and fdisk in almost all linux distro's get to know that the sector size is 2048?

View 2 Replies View Related

Software :: Corrupted Font After Reading The 1st Sector From An USB Drive Using Dd?

Mar 18, 2010

I wanted to check the first sector of my USB stick, and so I issued:dd -if=/dev/sda -bs=1024 -count=1It showed me all the weird characters from the data, then after it executed my bash prompt became corrupted with the same kind of characters! Also, everything I typed was like that. (see the picture)Luckly, it was just that tty that became like that.How can I fix the fonts after something like that happens, and how to prevent it from happening whenever I use dd again?

View 4 Replies View Related

Fedora :: Hard Drive Reallocated Sector Count Errors?

Jul 10, 2009

I just upgraded to Fedora 11. (I decided to give 64bit a try and I am extremely impressed.Not one problem at all! Kudos to the devs.) Whenever I log in I get the Palimpsest Disk Utility telling me two of my hard drives have a reallocated sector count.I have two 1.5Tb Seagate drives (model #: ST31500341AS). One is a backup of the other. On the first disk the disk utility tells me I have 22 reallocated sectors and 53 on the second. I've been on Google on discovered that there is no easy way to fix this and that a few bad sectors are okay but too many is a sign of imminent drive failure. This obviously concerns me because both my main drive and its backup are showing errors.

I went to Seagate's website and downloaded their diagnostic software (Seatools for DOS) and it passed both of these drives.So, questions: is it possible that Fedora is giving me a false positive? If not, is 22 and 53 sectors something to be concerned about? If so, should I contact Seagate and see if I can pull warranty on these drives? Is there a way to repair this damage?

View 5 Replies View Related

Debian Hardware :: Unusual System Failure - Hard Drive Bad Sector

Sep 11, 2015

It all started about a week after upgrading to Jessie and I had an unusual system failure, in that the CPU went to 100% usage and the hard drive light was on constantly. The keyboard and mouse were were non-responsive. Not having REISUB enabled I did the "stupid" thing and pushed the reset button on the computer. BAD BOY! As a result the computer would not boot and I had to use a live CD to format the drive and install Wheezy (I had the CD).

After installing Wheezy, everything worked well for about 3 days and then it did the same thing. Fortunately I had REISUB enabled and was able to reboot. I looked at the syslog and found a segfault with colord-sane and, after some research that suggested colord-sane might be a problem, I set UseSane=1 in colord.conf . Things seemed to be okay for about 4 days.

Well, after all that I had another problem today with booting. During boot I got an error message saying that there was some hard drive problem and that I needed to log in and run fsck, which I did . There were I believe 4 INODE errors that I was asked if I wanted to repair, to which I responded yes. After that the system booted correctly. After booting and entering the Gnome Classic desktop I looked at the Disk Utility and checked the SMART data. There is now 1 bad sector where before there were none. The drive is a one year old WD 500GB Velociraptor.

Don't know if this is relevant, but in the days before this latest "crash" I had downloaded about 8 movies using bittorrent. Could this have overtaxed the HDD?

I guess my questions are: When fsck "repaired" the disk would it have moved any data from the bad sector to a new location? What may have caused the sector to go bad ? Should I be buying a new hard drive?

The system seems to boot okay,at this time, so I assume that no critical system files were affected. Just curious as to how I should proceed. First is BACK UP my data. Got that !

One more thing I just thought of is that every time it "crashed", I was using LXDE.

View 5 Replies View Related

CentOS 5 Hardware :: HDD Drive Support With Sector Size Of 4096 Bytes?

Apr 30, 2010

I'm going to replace damaged HDDs in my server with new drives, which have sector size of 4096 bytes instead of 512. Does CentOS natively support such drives? If yes, since which version? If no, what actions should I take to correctly prepare such a drive to work. How to check that such a drive is correctly recognized by OS?

View 3 Replies View Related

Ubuntu :: Ccd2iso " Unrecognized Sector Mode (c9) At Sector 0 "?

Jul 27, 2010

Title says it all, I get that "un..." when trying to convert an .img file to .iso, am I doing anything wrong here?.

View 3 Replies View Related

Ubuntu Installation :: Bootloader To Usb Hard Drive - Error "no Boot Sector On Usb Device"

Apr 8, 2011

I am trying to install Ubuntu to an external usb hard drive (WD Elements SE). I am also choosing to install the grub bootloader to this disk (/dev/sdb) because I do not want anything modified on the internal drive. The installation appears to go okay, but when I try to boot to the usb drive, I get the error, "no boot sector on usb device" and it immediately falls back to my interal drive. I have tried this installation with both 10.10 (amd64) and 11.04 (amd64). How can I fix this?

View 7 Replies View Related

Fedora :: Overheating And Bad Hard Drive - Warning "reallocated Sector Count"

Aug 3, 2009

Upon installing Fedora on my Samsung NC10, I loved it. It feels stable and isn't cluttered with pointless apps. However I was immediately greeted by Palimsest Disk Utility warning me that the 'reallocated sector count' on my hard drive is going bad. I'm not too sure what any of it means but here's the statistics;

ID: 5
Attribute: Reallocated Sector Count
Current: 100
Worst: 100
Threshold: 10
Value: 1 sector
Status: failing
type: pre-fail
status: updates

It also says the temperature is 46 degrees yet the netbook's taken to being very, very hot around the touchpad and under the hard drive.

View 6 Replies View Related

Ubuntu Security :: Block Users From USB Drive/Devices And CD-Rom

Sep 20, 2010

Block Users from USB Drive/Devices and CD-Rom I am using Ubuntu 9.10- the Karmic Koala(64 bit) in my company. I would like to block the users(except Super user) from using USB Drive/Devices and CD-Rom for security resons and to prevent my employees from copying data.

In Users Settings, I tried unchecking some items in User Privileges tab but it didn't work.

View 6 Replies View Related

Red Hat / Fedora :: Finding Windows Drive Block Letter?

Nov 24, 2008

I am new to linux, I am using Redhat Linux running through Virtual PC software running under Windows XP. Can please tell me how to find out the block device code for C ,D drive, as I need to add them into fstab file to mount . let me know the command to access the Windows Shared folders.

View 2 Replies View Related

General :: Mount An NTFS Drive Which Has A Different Block Size?

Mar 31, 2010

I have reformatted my hard drive with allocation size 64K(formatted on windows with 64k setting) for a better performance on my WDTV HD media player(dealing with large files).When I mount this drive on Linux, the properties tells me that"blksize=4096".If I keep writing files using this default setting(blksize=4096) to my NTFS formatted hard drive, will my WDTV be able to benefit from the performance improvement of 64k allocation size ?I am confused, Does it have anything to do with "blksize=4096". ?Should I try and mount my hard drive with a larger blksize ?I did some research on google but couldn't find an option to increase the blksize when mounting an NTFS pre-formatted drive

View 1 Replies View Related

General :: Hard Drive - Get Block Number / Position Of File On HDD?

Feb 28, 2010

How can I retrieve the block number(s) of a certain file in a file system (the blocks the file is using on the harddisc)?

I'm using the gentoo linux based SystemRescueCD, so I got plenty of tools installed which might get that information for me.

View 1 Replies View Related

Hardware :: Change The ECC Code For A Block Of A File Stored On A Flash Drive By Any Means?

Jun 22, 2010

can I change the ECC code for a block of a file stored on a flash drive by any means ? of a file stored on a HDD (though I don't think there would be a difference between the two)Maybe , through some hardware interrupts or anything like that?Also if possible I need the solution to be in C/C++.

View 4 Replies View Related

Hardware :: External Hard Drive / Cannot Format / Warning: Block Count Mismatch: Found 78xxxxx But Assuming 0'?

Oct 21, 2010

I have WD external hdd (80GB) formatted with fat32. I was using this hdd to transfer the data from computer A (LINUX, RH9) to computer B (Win7).

I was keep copying and deleting the data in the WD hdd during the data transfer because the amount to transfer is more than 300GB.

After doing this several times (and the WD drive was emptied), comp. A said the disk is full. I checked using 'df' and it was really full but 'ls -la' shows that there is no data in it.

I checked it in comp. B, and it showed empty. I tried to format in comp. A using 'mkdosfs -F 32 /dev/xxx# (block#)', but showed an error message like below.

'Warning: block count mismatch: found 78xxxxx but assuming 0'.

I found a similar situation in this forum metioning 'possible damaged linux kernel (not exactly same expression though)', so I re-installed linux in comp. A, but the problem was not solved.

1. why the disk info. is showed differently in linux and win7
2. why I cannot format it

View 3 Replies View Related

General :: External Hard Drive Is No Longer Recognized - Buffer I/O Error On Device Sdb1, Logical Block 6160408

Feb 28, 2010

The external hard drive which contains all my photos and where I backed-up all my important documents is no longer recognized. It is a three month old 500GB Iomage Prestige Desktop Hard Drive.When I plug it in, it is recognised as a USB device, because it shows up when I type lsusb, but dmesg gives this error message.

[19712.013250] usb 2-2: new high speed USB device using ehci_hcd and address 21
[19712.145347] usb 2-2: configuration #1 chosen from 1 choice
[19712.147214] scsi25 : SCSI emulation for USB Mass Storage devices

[code]....

I popped the disk out of the casing put it on a SATA connect internally and then tried the file recovery programs testdisk/photorec and SpinRite, but both failed because they couldn't recognize the external hard disk.

View 4 Replies View Related

Ubuntu :: Simulate Keypress Via Keyboard Shortcut?

Feb 21, 2011

I have a G15v1. After going through hoops and loops to get it working only to discover that you only needed to install g15daemon through the Ubuntu Software Center, I found myself with one big problem. I migrated from windows just now, and there, I had my macro keys(the extra ones) bound to CTRL+W, CTRL+T and to a simulated mouse-wheel scroll so I could navigate the web more easily. How would I go about doing that? I figured, if I used the System->Preferences->Keyboard Shortcuts thingy and bound my key, in my case XF86Launch5, to a command similar to "simulate keypress CTRL+W"(I know it's totally wrong, just to give you an idea), I might be able to get it working again. Only problem is, I can't find anything like that. Any of you has any clue about it? I googled but I only find C++/Java/coding related results, which are not exactly what I need to do.

View 4 Replies View Related

Fedora :: How To Simulate A Webcam

Mar 27, 2010

I do not have a webcam yet, but would like to set certain video files I have to be played as my 'streaming video content' from a 'virtual' webcam.

View 6 Replies View Related

Fedora :: New Update - Could Not Do Simulate

Jun 26, 2010

Could not do simulate: nautilus-sendto-2.28.4-1.fc13.i686 requires libedataserver-1.2.so.11
gnome-panel-2.30.0-1.fc13.i686 requires libedataserver-1.2.so.11
empathy-2.30.1.1-1.fc13.i686 requires libedataserver-1.2.so.11 : Success - empty transaction

View 14 Replies View Related

Fedora :: Add / Remove Software - Could Not Do Simulate

Sep 2, 2010

How to get rid of the following error I've been receiving from Yum. I'm fairly new to Fedora. The following message appears when Add/Remove Software is launched. It also pops up periodically in the notification window.

could not do simulate: Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 3270, in __init__
self.repos.confirm_func = self._repo_gpg_confirm
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 823, in <lambda>
repos = property(fget=lambda self: self._getRepos(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 551, in _getRepos
prerepoconf = self.prerepoconf
AttributeError: 'PackageKitYumBase' object has no attribute 'prerepoconf'

View 1 Replies View Related

Networking :: Simulate Mobile Agents With NS2?

Jan 7, 2011

how to simulate mobile agents with NS2 (docs , code ......)

View 2 Replies View Related

Software :: Simulate Serial Device With Pty's ?

Sep 21, 2009

I wrote software which access and reads a serial device. I would like to test this software on my computer without loop-wiring or without a second computer.

How could I use pty's to simulate a serial device?

Actually I would like to temporary replace the /dev/ttyS1 file by one end of the pty. How could I do this? Is there a command to create a pty pair?

View 4 Replies View Related

Programming :: Simulate Unix Kernel In C++ ?

Jun 2, 2010

How simulate unix kernel in c++..or give me a link....

View 2 Replies View Related

Ubuntu :: Simulate Analogue And Digital(DVB) Cards During Development With MythTV?

Feb 13, 2011

Is there any way to simulate analogue and digital(DVB) cards during development with MythTV so I am able to do some basic testing on a separate computer without disturbing my real MythTV server ?

View 3 Replies View Related

Debian Multimedia :: How To Simulate The Enter Key In X Windows

Dec 16, 2014

When I drink tea, the water splashed on my keyboard. It didn't cause any problems until a few mins ago. Now my Enter and right hand side shift key don't function any more (The new line in this text is copied from other thread).

So I would like to know how can I simulate an enter key press so that e.g. a command can be executed in terminal. Because I have some source code uncommitted, I want them at least get committed first.

View 2 Replies View Related

Debian Programming :: How To Simulate Script Execution

Aug 7, 2015

I'm trying to save the output of the script I wanna run but for some reason I cant manage to do it with "script.sh > Output_4.txt"

The thing is that the script was already run and it extracted some directories so when I try to run it again (to save the log to a Output_4.txt) bash says (see screen-capture) and of course the log's empty!!!!

View 2 Replies View Related

Fedora Servers :: Simulate A VH Through A Localhost With A Dynamic IP?

Nov 16, 2010

For backup and pre-functionality purposes, I need to simulate a VirtualHost in my Fedora (14) machine. I found some interesting links to carry out that process but with an IP fix.So, how can I simulate a VH through a localhost with a dynamic IP?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved