Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-07-2004, 06:53 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
Question problem while booting my new distrib from usb flash and hard disk

Hi Users!

Atually i have developed my own mini linux .... which only supports basic utilities ...... like shell and
some basic Commands......
and then i create an image of this linux and put this on my usb flash stick using command
dd if=myimage.img of=/dev/sda1
and then boot my system using that flash drive .... and it done well .....but the problem is .......
when i check for the size of my usb flash which is actually of 128MB it gives me size equal to that of
the image size i.e. do i get this thing resolved.........plz help me

and what if ..i create patitions on usb flash one a little greater than the size of the image and other
for the left space .....i have also tried this one ..but it dont let me boot even .....what could be the

i have to do same thing for external usb hard drive

Old 06-07-2004, 08:47 AM   #2
Registered: Apr 2004
Location: Pakistan
Distribution: RedHat
Posts: 46

Rep: Reputation: 15
The size of the partition is determined by its entry in the partition table entry. When you write the image it writes the size of the image in the partition table entry. First create a partition and see its size using fdisk , note tit down , now write the image and again use the fdisk to see the size , if it is changed than you can write a simple C program to change it back to its original size . I can provide you with the code , if you are interested . :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem while booting my new distrib from usb flash and hard disk mundri Linux From Scratch 1 06-07-2004 08:19 AM
problem while booting my new distrib from usb flash and hard disk mundri Linux User Groups (LUG) 1 06-07-2004 08:11 AM
Problem with USB Flash Disk dzent56 Mandriva 1 05-13-2004 02:44 AM
Usb flash disk read-only problem Darthomir Linux - Hardware 6 04-03-2004 09:04 AM
USB hard disk problem taoweijia Linux - Hardware 15 09-21-2003 09:50 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration