HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to know about the "seek" of one file in a bloc...
Operating System - Linux
1833303
Members
2959
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 02:57 AM
04-10-2003 02:57 AM
for example,one file in fd0, I what to dd seek=XXX, but how to know one file has been in the fd0, of course, it writen into the disk continuously before.
ps: I am making one bootable flash for embed linux.
Best Regards,
Frederick
ps: I am making one bootable flash for embed linux.
Best Regards,
Frederick
frederick van targero
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 10:03 AM
04-10-2003 10:03 AM
Re: how to know about the "seek" of one file in a block device
Hi.
What exactly do you mean with this ? I am not sure I fully understand your problem so I will not comment for now.
G.
What exactly do you mean with this ? I am not sure I fully understand your problem so I will not comment for now.
G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 10:24 PM
04-10-2003 10:24 PM
Re: how to know about the "seek" of one file in a block device
it is that the procedure for a boot-floppy building:
dd if=KERNEL of=/dev/fd0 bs=1k
dd if=rootfs.gz of=/dev/fd0 bs=1k seek=KERNEL_BLOCKS,
now I did the similar process in a DiskOnModule flash IDE disk, but one initrd.gz add behind the bzImage, for the cylinder of initrd.gz has been marked by lilo running, (I think), so far the flash has been fixed in one fireware mainboard, i can not access it by other system, neither no lilo programm inside, in other words, no way to run lilo again, but I have to make change for the initrd.gz. since I can not override the old file, so I wnat to dd(seek=xxx) the new initrd.gz inside to the old initrd.gz located. However, I must to know what is the seek of old file locate(the first cylinder or block).
Best Regards,
Frederick
dd if=KERNEL of=/dev/fd0 bs=1k
dd if=rootfs.gz of=/dev/fd0 bs=1k seek=KERNEL_BLOCKS,
now I did the similar process in a DiskOnModule flash IDE disk, but one initrd.gz add behind the bzImage, for the cylinder of initrd.gz has been marked by lilo running, (I think), so far the flash has been fixed in one fireware mainboard, i can not access it by other system, neither no lilo programm inside, in other words, no way to run lilo again, but I have to make change for the initrd.gz. since I can not override the old file, so I wnat to dd(seek=xxx) the new initrd.gz inside to the old initrd.gz located. However, I must to know what is the seek of old file locate(the first cylinder or block).
Best Regards,
Frederick
frederick van targero
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 11:01 PM
04-10-2003 11:01 PM
Solution
Hi.
The standard is to place it on first free block directly after the kernel image. So try using this approach, i.e. find the kernel size, divide it with 512 and round it up. Check if the next sector is really a compressed file system (you can use file on it, it shoul didentify it as gzip compressed data).
Hope this helps,
Goran
The standard is to place it on first free block directly after the kernel image. So try using this approach, i.e. find the kernel size, divide it with 512 and round it up. Check if the next sector is really a compressed file system (you can use file on it, it shoul didentify it as gzip compressed data).
Hope this helps,
Goran
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP