When trying to mkfs -t ext3 /media/HD-CEIU2 mounted drive, I receive "is not a block special device". Then after answering yes to proceed anyway, get messages indicating the device couldn't be read. I did fdisk the drive and rebooted.
how long mkfs will take to check for bad blocks on an 500 gig SATA drive? The drive is a warranty replacement from Western Digital. It's been running about an hour now. I had run mkfs ext3 on it before I realized I should check for bad blocks so I am running the check now.
I just ruined my /ntfs partition. I used the mkfs command and stopped it by ^C immidiately, but it was too late. mkfs.ext4 /dev/sdb1
Is there a way to recover NTFS partition now ? The partition </dev/sdb1> was 'ntfs' and mkfs.ext4 did not check if it was a ext4 or give any pre-check warning, just went ahead with making the ext4 fs on a ntfs partition.
I've a new external usb drive that was shipped formatted fat32. I wanted to convert this to ext3; so I performed a mkfs.ext3. I then noticed that fdisk was still reporting the usb drive as fat32 (even after reboot), but mount was reporting ext3: so I fdisk'ed the drive and change the partition's system id to 83 (Linux)
openSuse 11.2 KDE 4 desktop User = newbie I was having some trouble with a Hard drive that I store my photo's and other personal data on. Fisrtly, it was messing my OS up, so that it would not boot to the desktop, but only to the command line where it would report that this drive was somehow corrupted and needed to be repaired. Secondly, the OS was reporting that certain files were 380,000.2 TB in size. this drive is only 200 GB.I didn't want to do the repair until I found a way to back up my data. I found another hard drive to do backup to but I had to take some data off of it. Which I did.
In the spirit of trying learn command line I decided to partition and format the hard drive using fdisk. I found some easy to use directions and proceeded to partition the drive. Unfortunately, I failed to realize the directions were only for the partitioning part [my fault for not reading further]. What I missed was that after using fdisk to partition, you must use mkfs to set filesystem type.[I thought I had done that in fdisk using the "l" , "t" commands within fdisk].
My questions are:
1] Can I do this mkfs command after I have put my data on the new hard drive or should I start fresh and redo partioning? [I have not deleted the other drive so my data is still there.]
2] What would be the cause of the incorrectly reported file sizes?
I accidentally ran mkfs.ext3 /dev/sdb on the wrong drive.It used to be 2 NTFS partitions with lots of data. is there any hope I can only change the file system to ntfs back and revert what I did?not sure if mkfs erase the data or just rewrite some partition table.
Im running ubuntu server on a c2d 3ghz server, but got stuck yesterday when i was going to install some new harddrives.I did experience some problems during installation of ubuntu as well.Tried with an SpinPoint 1TB disk, but the install hanged when ive configured partiotion setup and was writing changes to disk.However, it worked with a 400gb disk i found under the bed... Now im trying to partiotion, format and mount 2x brand new 2TB WD Caviar disks.Im creating the partition in fdisk, and everything is going well, so far.But when im trying to format the partitions ive made (sudo mkfs.ext4 /dev/sdb1), everything just hangs.It just stops right after it start writing.This is what i get: "Writing inode tables: 60/14905"And after several tries and 15 minutes waiting time, i get: ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir
I formatted with mkfs.nts a USB 500 GB external drive. Under Linux when I connect it to the USB port it's recognized and works. Under windowz 7 home is's seen in the device list but not in the computer window. I can't do anything with it apart eject it. This is what I get from fdisk:sudo fdisk /dev/sdcThe number of cylinders for this disk is set to 60801.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs(e.g., DOS FDISK, OS/2 FDISK)Command (m for help):
and this from fdisk -ls /dev/sdc: gt[~]$ sudo fdisk -ls /dev/sdc Disk /dev/sdc: 500.1 GB, 500107862016 bytes
I have a 1TB external USB drive that I'm having a lot of trouble with.
First I created a 500G partition, then formatted it with ext3. That went as expected.
Then I tried to copy a large (~50G) archive to it, and at about 13G it just stopped. I was using "watch" to view the progress, and it just stopped suddenly. I left it for quite a while, to see if it was actually doing something, just slowly, but nothing.
I tried to kill the copy command, but it wouldn't die. I killed the parent processes, and it just kept moving up the process tree until init was its parent. I tried rebooting.. I got the message "system is going down for reboot now", then the first few messages of the reboot process, and then it just stopped at "unmounting local filesystems". Again, I left it for a while, nothing. I ended up hard booting it.
After rebooting, I recreated the partition, then tried formatting it. This time it started writing inode tables, then just stopped at a certain point. I think at 133/4001. Again, I left it for a while and it didn't move.
Again, I tried killing the process and it moved up the tree until init was its parent. Rebooting hung at the same place, and again had to hard boot it.
This time I deleted the partition and tried creating a small partition - 500M. mkfs formatted it as expected, and I was able to mount and write to the partition.
I deleted the small partition, and tried creating a larger one - 100G this time. fdisk created the partition just fine (and did not complain or report any errors through this whole process), but again mkfs gets stuck.. this time at 34/801 inode tables. I haven't been timing it, but I want to say it's been at least 10 - 15 minutes.
dmesg reports some drive errors, but I'm not sure what they mean code...
But i would like to move to cpio, because with dd, if you add something new, you might need to change the count. Also cpio is used in distro's like Fedora and Ubuntu.
I am trying to format 4 GB sd memory using mkfs.vfat. I want to use the card both in linux and windows so I am formatting with Vfat filesystem. When I format the card from command line with "mkfs.vfat -F 32 /dev/mmcblk1" I am getting a warning message like "unable to get drive geometry, using default 255/63" but the data in the card is erased.
But when I mount the card and checks for the size using df -h its showing 1 GB instead of 4 GB. how to format the SD memory card or any other alternate way to format the card.
what do I have:2x 150GB drives (sda) on a raid card (raid 1)for the OS (slack 13.37)2x 2TB drives (sdb) on that same raid card (raid 1, too)2x 1.5TB drives (sdc,sdd) directly attached to MoBo2x 750GB drives (sde,sdf) attached to MoBo too.if i got about it the normal way, i'd create softRAID 1 out of the the 1.5TB and the 750GB drives and LVM all the data arrays (2TB+1.5TB+750GB) to get a unified disk.If I use btrfs will I be able to do the same? mean I have read how to create raid arrays with mkfs.btrfs and that some lvm capability is incorporated in the filesystem. but will it understand what I want it to do, if i just say
I'm trying to format a device into XFS filesystem using mkfs command. Suppose I have a /dev/sda1 device with 4096 block and I want to format the whole thing, how can I execute the command? I keep getting various errors while executing it.
I have more than a dozen servers running CentOS (mostly supermicro servers) everytime i do mkfs.ext3 or mkfs.ext4, it always hangs the server (nothing is responding, not even the terminal) can't even do Ctrl+C to kill it. but the funny thing is, if i leave it on for hours, it'll finish eventually.
this puzzles me, i've tried so many different SATA drives and different servers, different kernels, different CentOS. for example purposes, my CentOS 5.3 runs 2.6.18-92.1.13.el5 kernel. i also have 5.4 and 5.5. mkfs.ext3 works fine on SAS, but always hangs on SATA. here's where it usually hangs Writing inode tables: 2126/7453
A friend accidentally did mkfs.vfat on my 1Tb ext. hard drive..It's now showing as 400 GB free where it was 10 GB previously and the remaining data is being shown as weird symbols and empty folders and yet it occupies more than 500GB..Any way to recover the data completely?
I'm dual booting windows vista and ubuntu hardy on a multi-partitioned Dell D630. I created a partition using mkfs -t ntfs. Linux has no trouble reading/writing to it, but every time I boot into windows, chkdsk tries to "fix" the partition, fails, and tells me that the partition is corrupted. Can anybody suggest a way to convince vista that the partition is indeed ok, or else another way to create the partition so that vista can recognize it?
I am newbie in Linux, using RHEL5. I created an account for user. User cannot log on from GUI but able to log on from command line by (ctrl-alt-f1). As a root I can log on from GUI mode.
I have installed Dlink-DWL-G520 in RHEL5 - kernel 2.6.18-8.el5. Now I want to give WEP key to get IP from my wireless accesspoint. How I can give that key?
I have installed a second NIC to my Desktop on LINUX (Oracle Enterprise Linux 5). However, it does not get recognized while I'm performing the install and only eth0 card shows up.
--> Processing Dependency: libdvdread.so.3()(64bit) for package: vlc ---> Package x264.x86_64 0:0.0.0-0.4.20101111.el5.rf set to be updated --> Finished Dependency Resolution vlc-0.9.9a-7.el5.rf.x86_64 from rpmforge has depsolving problems
I had a working Ubuntu 9.10 with Windows 7 installed, and i was writing an image of IPCOP [URL] to the USB drive incorrectly, i did mkfs on my primary partation i.e. /dev/sda1 now i am trapped in situation, i was trying to write and usb-hdd image of ipcop on USB Drive, while doing so, i have given following commands
* now the stupid thing i have done, is given /sda1( My HDD ) instead of /sdb1 (USB Drive), it has successfully loaded IPCOP bootable on my primary drive, and my laptop is not working now.
now i want to get my partitions & data back, if anybody have idea about how to get rid of this situation. The good thing i have done, is that, i didn't tried to install anything on the drive after this happened, with hopes that i can get my data back i guess that it can be recovered but confusion is that, which data recovery software to use, and for linux or windows, as i had my data on NTFS filesystem and currently there is Free Space and EXT4 partition.
I have rhel5 running ok and windows7 running ok, and currently access both via grub (both os are on separate disks) I want to be able to switch between both without rebooting. xen is installed and working but I cannot configure windows to run as a guest as xen wants an iso or img file.
I installed redhat enterprise Linux 5 on an acer laptop to dual boot with windows vista the nic works perfectly with windows but does not work with the RHEL5.