search for: sdp2

Displaying 1 result from an estimated 1 matches for "sdp2".

Did you mean: sda2
2007 Jul 24
1
Custom kinit to find device by "label"
...E: mode_t = S_IFBLK or &0660; var ActualFSLabel: string; FileDescriptor: cint; ReadBytes: TsSize; DeviceFound: boolean; dev_minor: dev_t; begin Result := False; SetLength(ActualFSLabel, Length(RootFSLabel)); //loop through all devices that might have our root filesystem sda2 to sdp2 dev_minor := 2; while dev_minor < 243 do begin // last one is 242 if mknod(DEVICENAME, DEV_MODE, (DEV_MAJOR shl 8) or dev_minor) = 0 then begin WriteLn('Created device node "', DEVICENAME, '". dev_minor = ', dev_minor); end else begin Wri...