Software :: Sfdisk Starts Partition From Sector 1 Instead Of 63?

May 1, 2011

Slackware 13.1,using "sfdisk".I need to use this one as it can be used in a non-interactive mode,"parted"is not a solution for me.Inside my own script I make the partition like this:

Code:

# MAKING PATITION:
set `losetup -f`; dev=$1
`losetup $dev $out`
sfdisk $dev << EOF
,,$fsys
EOF

However after formatting this single partition in FAT16 I can see the drive in my emulated Windows311, but not use it. It says that the drive cannot be accessed. When I do the same thing interactively with fdisk it all works. When inspecting the partitions in both cases via "fdisk -ul" I see that whenever sfdisk is used to create the partition it is created starting from the 1 sector. Whenever fdisk is used it is created from 63 sector (which is correct of course). How can I make my sfdisk start the partition not from the 1st sector, but also from the 63 so that OS wouldn't have problem with that?

I tried like this:

Code:

sfdisk -uS $dev << EOF
63,,$fsys
EOF

But it then just says that the partition does not end on the boundary. Trying to see the content with fdisk -ul says that partition table is incorrect. So doing it this way doesn't work.

View 2 Replies


ADVERTISEMENT

Hardware :: Recovering Partition Table Using TestDisk And Sfdisk?

Jul 16, 2010

Something bad happened to my partition table,so right now I'm working from a Live CD. My partition table is completely screwed, although the data on the lost partitions hasn't been overwritten. I've been messing around with TestDisk for about an hour, but I still didn't figure out how to fix my problem. Before the crash, I had 5 partitions:

NTFS - 30GB
NTFS - 8GB
ext4 - 20GB

and here comes the extended partition:

linux swap - 8 GB
NTFS - 400GB

TestDisk can see all those five partitions. I can mark swap as Logical, but I can't do so with the 400GB NTFS partition - there is just no selection. Turning on "expert mode" didn't help. I have read about using sfdisk to fix partition table, but I don't think I'm able to do it by myself.

Here's how it looks in TestDisk:

Code:

Disk /dev/sda - 500 GB / 465 GiB - CHS 60802 255 63
Partition Start End Size in sectors
D HPFS - NTFS 0 1 1 3915 254 63 62910477
D HPFS - NTFS 3916 0 1 4959 254 63 16771860 [Windows XP]

[code]....

I've filled sizes according to TestDisk's findings. First 3 partitions were OK, the problem lies in the extended partition holding 2 logical ones. By the way, TestDisk is able to enter the 400gb partition and see the files.

View 2 Replies View Related

Fedora :: Get Kickstart To Start A Partition On A Specific Sector?

Feb 16, 2010

I need a way to get Kickstart to start on a on a specific sector. For example you can do this using parted

parted /dev/sda
(parted) mklabel gpt
(parted) unit s
(parted) mkpart primary ext2 40 -1

This will start a partition on sector 40. How can I do this with a kickstart file?

View 1 Replies View Related

Fedora Installation :: Partition Does Not Start On Physical Sector Boundary?

Aug 22, 2011

fdisk -l: Disk /dev/sda: 750.2 GB, 750156374016 bytes.

[Code]...

I've tried other installations, but I always get errors like this. /dev/sda 5, 7 and 8 are occupied by PCLinuxOs. /dev/sda 9, 10, 11 and 12 by Fedora. I made room for Linux installations by GParted (last version). Really, I made no errors. The installer of PCLOS is a bit strange: it changed the NTFS partition sda5 in sda 6! In a previous installation with Fedora and Kubuntu only the extend partition sda 4 complained about not starting on physical sector boundary. The hard disk is Western Digital with Advanced Format. Probably this is the cause of the problem. The systems are snappy and responsive. I do not encounter any problem. What to do? Ignoring the problem or reinstalling? May be it would be better to get rid of PCLOS and to dual boot Windows with Fedora?

View 5 Replies View Related

Ubuntu :: Find Start And End Sector Of Partition With Sudo-command?

Jun 18, 2010

How to find Start and end sector of partition with sudo-command?

View 2 Replies View Related

General :: Bootable Partition Start From Sector 1 On Hard Disk?

Dec 20, 2010

Should the first bootable partition start from sector 1 on a hard disk? or Can it be created anywhere on the disk? I am using fdisk to create the bootable partition.

View 2 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

General :: Differences Between Fdisk And Sfdisk?

Dec 13, 2010

I want to know the differences between fdisk and sfdisk?

View 1 Replies View Related

Ubuntu Installation :: Grow Boot Sector. Delete Swap Partition. Can't Boot Afterwards.

Mar 7, 2010

I'm running 9.10 off of a 4 GiB CF card. I keep running into space issues with updates, so I purchased an 8 GiB replacement card. I've cloned the 4 GiB card to a .IMG file using DD.I've then copied the 4 GiB image back to the 8 GiB card using the Ubuntu startup disk creator program. Once done, I'm able to properly boot off of the new 8 GiB clone.Unfortunately, the clone ends up with 3.67 GiB of unallocated space at the end *see attached). I tried deleting the "extended" partition that the swap is located at after booting from a Live CD and the system was unable to boot after this. I was thinking that I would delete the swap entirely and create a swap file after I merged the existing partitions, but I was unable to do this.

best way to do this (e.g. get one large 8 GiB partition with my old image on it)? I still have the original untouched 4 GiB card and also have an external CF drive if I need to redo the cloning. I've also used Clonezilla before, so perhaps there's a way to do this that allow me to grow the image as it's being cloned.

View 1 Replies View Related

Ubuntu :: "boot Sector Signature Not Found (unbootable Disk/partition)"

Jan 3, 2011

I recently installed meego on an asus eee pc, neat l ittle os. i had originally had grub set up booting into ubuntu netbook remix. win xp and the system restore partition. when i installed meego i was allowed to select what i wanted as far as boot options in the new boot loader (extlinux). windows and meego boot just fine but when i try to get into my already configured and homey install of ubuntu nbr it gives an error of

"boot sector signature not found (unbootable disk/partition)"

View 1 Replies View Related

Fedora :: Sfdisk Refuses To Work - Says Sda Is Busy ?

Feb 26, 2010

I have 2 HDs, an old one with LVM (sda) with two partitions, sda1 and sda2, and the new one without LVM (sdb). I want to format the old sda device. I tried with sfdisk, but it says that the sda is busy:

But there is no call in /etc/fstab to sda, I did a /sbin/swapoff -a, and this is the output of df:

lsof tells me no one is using sda, sda1 or sda2.

So, why does sfdisk refuse to work?

View 4 Replies View Related

Programming :: Scripting Sfdisk To Wipe All Partitions And Create New?

Apr 12, 2010

anyone have a script they'd be willing to share that auto detects and wipes all partitions off a drive and recreates a new one and then does a mkfs on it?

View 1 Replies View Related

General :: Partition Table From Fdisk - Cylinder Mode - Sector Mode - Expert Mode ?

Aug 30, 2010

Below is a print out of my partition Table from Fdisk, in Cylinder mode, Sector mode, and then in expert mode?

Why in expert mode does it look like Partitions 2 and 3 share the same sector / hd / Cylinders? Is this OK?

Code:

View 3 Replies View Related

Ubuntu Installation :: CD Install - Starts To Install Asks About The Partition Then The Keyboard

Nov 17, 2010

I downloaded Ubuntu and burned it to a CD-There was no problem with that part. It starts to install asks about the partition then the keyboard. Then it just stops and does nothing.

View 3 Replies View Related

Fedora :: FC9: Forgot - Partition Doesn't Work - Can't Login At The LUKS Login After Grub Starts

Feb 15, 2010

My computer was working this morning and both hard drives were working fine, then all of a sudden for about two hours I was stuck with this "problem", then after fumbling and moving and stablizing things, then Windows works? See below for details. I've finally reinstalled both hard drives, but the one with the Linux partition doesn't work: it says nothing is discovered on the disk. I can't login at the LUKS login after grub starts, therefore I can't get into Linux, but Windows works?! I used to be able to go directly into Grub when the computer starts, I forgot how to do that but it doesn't matter. If you need details I'd be glad to provide them. I just wondered why Linux doesn't work, but Windows does. I have Linux & Windows on two different separate hard drives

View 5 Replies View Related

Ubuntu Networking :: Wireless Starts And Stops And Starts And Stops?

Feb 10, 2010

Sometime after I upgraded to ubuntu 9.10 I've been having trouble with my wireless network connection.It will usually log on to the network, then disconnect a shortly after. Then try to connect again, usually successfully, then it cuts off again. Then connects again, then disconnects. FWIW, ubuntu 9.10 works on a different machine pretty consistently, so I don't think its a problem with the router.

View 2 Replies View Related

Debian Installation :: How To Copy USB Key Boot Sector To HD

Aug 20, 2010

I just installed squeeze from a usb key. Installation went flawlessly but now I need the usb key to boot. Nothing happens if I let the bios boot from the HD or if I force it to do so. When it boot up from the usb key, the HD is read and the boot up sequence continues. Grub seems to be installed in /boot/grub. I imagine that I have to copy the usb key boot sector to the HD but how?

View 3 Replies View Related

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 View Related

Ubuntu Installation :: No Boot Sector - Hit F1 To Retry

May 11, 2010

I have a rather puzzling error. I recently purchased an usb external hard drive with the intent of installing Ubuntu on it. I have had great success with installing various linux flavors on usb thumb drives but I need a little larger space for engineering applications that I use. Anyway, I removed my laptop's internal hard drive and installed ubuntu 9.10 on a recently formated external hard drive. Everything worked fine at first. Upon restarting I get an error that says "no boot sector" and it asks to hit either f1 to retry. When I hit retry, Grub loads most of the time. Occasionally it does not work. Is Grub just not installing correctly? I searched for this error but I found nothing that directly applied.

View 2 Replies View Related

Ubuntu :: Bug In Indicator Sector Of The Gnome Panel?

Sep 25, 2010

In the past one bug appereared to me several times (using 10.04 and 10.10, too) but I still cannot reproduce it in order to file it. After logging into Ubuntu or just while usnig Ubuntu a small gap appears at the indicator sector of the gnome panel. Did anyone else see this happening and can reproduce it? It's not a big thing but still it influences a smooth user expeience, in my opinion.

View 1 Replies View Related

Ubuntu Installation :: No Boot Sector On USB Device

Dec 19, 2010

My old Dell Inspiron 9300's CD Rom is no longer working. I've written the files to my 8GB USB device, and attempted to boot from it. Whenever I try, I get this "No boot sector on USB device". I'm also using Mac OS X to make the USB drive.

View 3 Replies View Related

General :: Write File To A Specific Sector?

Jun 28, 2010

I need to copy a file into a Flash memory which is connected to my computer via USB. The file must start at a specific sector.
Can anyone guide me how to do this? (it can be through a C program, a line command, or any other way)

View 8 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

General :: Want To Remove LILO On Boot Sector

Feb 24, 2011

Here's the set up.
1. Got an EXISTING LILO... VL 5.8 (/dev/hdc3)
2. Installed VL6.0 and installed its own lilo on Boot sector (/dev/hdc13)
3. Everytime I choose VL6.0 in my existing LILO (/dev/hdc3) it still goes to VL6.0's LILO. The question is, how can I remove the VL6.0 so if i choose this on my existing lILO. It will just boot straight.

VL6.0 LILO:
root:# cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
# Start LILO global section
boot = /dev/hdc13
#default = linux
#compact
#prompt
#timeout = 0 .....

View 3 Replies View Related

Programming :: Copy Files To Floppy In Specified Sector?

Jan 4, 2010

I am trying to make small kernel. I have written many programs and produce many .bin and .o files but what I want that to load every file from a specific location in specific sectors but don't know how to do that in linux , in dos same can be done by debug command.If It is not possible to achieve the specific location criterion please tell me how can I just copy many files serially to a floppy image.I have another question that if files are copied in floppy. How could I know in which sector the file has been loaded in floppy so that I can retrieve them by BIOS interrupt INT13.

View 7 Replies View Related

OpenSUSE Install :: Downgrade To 11.1 - Error Reading Sector

Jan 14, 2010

I was about to reinstall the opensuse 11.1 since 11.2 was giving me trouble and ran the 'check installation media' and it turned out every disc I burn gives me 'Error Reading Sector 1891680'. This CD-ROM is broken. Looks like there is a problem with installation. I already burned like 5 different DVDs.

View 9 Replies View Related

Ubuntu :: Mixing 512 & 4k Sector HD's In A Software RAID 5 Array

Mar 24, 2010

I currently have a mirror raid array with 2x 1TB HD's (Western Digital Caviar Green WD10EADS SATA). They are both the standard 512 byte sector HD's. I just ordered a new 1TB Hard Drive (Western Digital Caviar Green WD10EARS SATA) as I want to wipe the current mirror raid and use the 3 disks in a raid 5 array.

But to my suprise, the new 1TB HD is an "advanced format" HD with 4k byte sectors... Am I screwed or can this 4k byte sector HD be used in a software raid 5 array along with the 512 byte sector hard drives?

(The WD hard drive says you can jumper it to work with XP which can only use 512 byte sectors... there's also a utility you can run that does something to make it compatible with XP too.... Makes me wonder if these new drives are backwards compatible?)

View 1 Replies View Related

Ubuntu :: 10.04 LTS Crashes: End_request: I/o Error, Dev Sda, Sector XXXX

Apr 30, 2010

I just installed the new LTS version but it crashes sometimes an gives the error end_request: i/o error, dev sda, sector XXXX in terminal My PC was working just fine when I was under Karmic. I think it's a bug....

I run Ubuntu 64 bit on my Pentium D820 machine:
HD: Maxtor PATA 160Gb
MB: MSI 7387
GC: MSI TD256E (RX550)

View 9 Replies View Related

Ubuntu :: Repair The Boot Sector From A Live-CD With Grub 2?

Jun 18, 2010

The boot sector somehow got messed up on a friends computer while updating. I used to know how to do it with the old version, but now that they've updated it and changed everything , how do you repair the boot sector from a live-CD with Grub 2?

View 5 Replies View Related

Ubuntu Installation :: Win7 Has Overwritten Boot Sector?

Apr 21, 2011

I have been running a dual boot system with Windows XP and Ubuntu 10.10 64 bit with the dual boot selected by Grub (placed y an Ubuntu install).

Recently I have installed Window 7 Home on a spare disc. My Bios allows me to select which disc to boot.

The Win7 installation has overwritten the boot sector on the WinXP/Ubuntu dic so that it is now not bootable.

I can sse all my Ubuntu files with a Live Linux Disc, so I can get all my files back.

Is there any easy way to re-install Grub or should I just do a clean install of Ubuntu, perhaps to a blank partition?

View 3 Replies View Related







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