Re: Detect already installed partitions.
On Dec 30, 2008, at 6:24 AM, Wouter Verhelst wrote: On Tue, Dec 30, 2008 at 02:47:58PM +0530, Rabbul Nawaz wrote: Thanks for the quick respose. Installing libparted, and all its dependencies including all the libraries inside the rootfs environment would definetely increase the size of the rootfs. Moreover it would require a static compilation. Is there any other way, by which I can just get the partition-label information which is lighter than using libparted. parted actually reads data from the partition to get at the labels. AFAIK, this data is not available through the kernel. Take a look at the source code for the mount(8) command. It has some heuristics for figuring out things like the filesystem type and the label/UUID. I haven't done this myself, and maybe it uses libparted so it won't help you, but if it's self-contained it may be easier to hack those heuristics than to put up with the size of parted and friends... Rick -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Detect already installed partitions.
On Tue, Dec 30, 2008 at 02:47:58PM +0530, Rabbul Nawaz wrote: > Thanks for the quick respose. Installing libparted, and all its dependencies > including all the libraries inside the rootfs environment would definetely > increase the size of the rootfs. Moreover it would require a static > compilation. Is there any other way, by which I can just get the > partition-label information which is lighter than using libparted. parted actually reads data from the partition to get at the labels. AFAIK, this data is not available through the kernel. -- Home is where you have to wash the dishes. -- #debian-devel, Freenode, 2004-09-22 -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Detect already installed partitions.
On Tuesday 30 December 2008 13:34:12 Frans Pop wrote: > On Tuesday 30 December 2008, Rabbul Nawaz wrote: > > I am working on deepOfix, one of the distribution of GNU/Linux which > > follows debian based packaging [ http://code.deeproot.in/deepofix/ ]. I > > would like to know, the procedure how the debian-installer detects the > > existing partition labels and displays them. I mean when we select > > "manual partition", during the installation, the installer shows the > > existing partitions. I am able to get the partition table information > > from the /proc/partitions in the installer environment of deepOfix, but > > would like to display the partition-labels information also, as debian > > does. > > The partitioning program uses libparted to get details of the current > partitioning of the system and to make changes to the partitioning. The > interaction between the scripted part of partman and libparted is through > a C program called parted_server. > Hello FJP, Thanks for the quick respose. Installing libparted, and all its dependencies including all the libraries inside the rootfs environment would definetely increase the size of the rootfs. Moreover it would require a static compilation. Is there any other way, by which I can just get the partition-label information which is lighter than using libparted. -Rabbul Nawaz -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Detect already installed partitions.
On Tuesday 30 December 2008, Rabbul Nawaz wrote: > I am working on deepOfix, one of the distribution of GNU/Linux which > follows debian based packaging [ http://code.deeproot.in/deepofix/ ]. I > would like to know, the procedure how the debian-installer detects the > existing partition labels and displays them. I mean when we select > "manual partition", during the installation, the installer shows the > existing partitions. I am able to get the partition table information > from the /proc/partitions in the installer environment of deepOfix, but > would like to display the partition-labels information also, as debian > does. The partitioning program uses libparted to get details of the current partitioning of the system and to make changes to the partitioning. The interaction between the scripted part of partman and libparted is through a C program called parted_server. Cheers, FJP signature.asc Description: This is a digitally signed message part.
Detect already installed partitions.
Hello, I am working on deepOfix, one of the distribution of GNU/Linux which follows debian based packaging [ http://code.deeproot.in/deepofix/ ]. I would like to know, the procedure how the debian-installer detects the existing partition labels and displays them. I mean when we select "manual partition", during the installation, the installer shows the existing partitions. I am able to get the partition table information from the /proc/partitions in the installer environment of deepOfix, but would like to display the partition-labels information also, as debian does. I could not find much information by google. The installer environment of deepOfix has just busybox commands available. I guess if I could find the partition-label information through /proc. I also checked the /dev/disk/by-id & /dev/disk/by-path , but could not get the required information. Can some one help me out in this. I tried my best to explain, if it is not clear, please let me know, so that I can try to explain in a more lucid way. Regards, Rabbul Nawaz. -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org